cURL Converter
Turn a cURL command into fetch, Axios, Python requests, Go or PHP code, or fill in a form to get cURL, fetch, Axios or HTTPie.
Runs in your browser. Nothing leaves this device.
How to use cURL Converter
- 1Paste a cURL command, or switch to the form and fill in the request.
- 2Pick the language you want.
- 3Copy the code.
Questions
Does it run the request?
No. It only reads the command and writes the same request in another language. Nothing is sent anywhere.
Can I paste “Copy as cURL” from Chrome or Firefox?
Yes. Quotes, $'…' strings, line breaks with backslashes and --data-raw are all understood.
What happens to -u user:password?
fetch gets a Basic Authorization header, Axios and Python get their auth option, Go uses SetBasicAuth and PHP uses CURLOPT_USERPWD.
Are my tokens safe?
They stay in your browser. Still, swap real tokens for placeholders before sharing code.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.