cURL Converter
Convert a curl command into fetch, axios, Python, PHP, Go or Laravel HTTP.
Runs entirely in your browser.
Your data never leaves this device and is never sent to our servers.
Generated code
API documentation gives you a curl command; your application is written in something else. This converter parses the command — method, headers, body — and re-emits it as working client code in the language you need.
It only ever transforms text. The command is never executed and the request is never made.
How to use it
- Paste the complete curl command.
- Choose your target language.
- Copy the generated code.
Not working as you expect? Report a problem with this tool.
Frequently asked questions
Does this actually send my request?
No. It parses the command and generates source code. Nothing is executed and no request leaves your browser — a tool that fetched arbitrary URLs on your behalf would be a security problem.
Will my auth header be included?
Yes, headers are carried across. Replace any real token with a placeholder before sharing the generated code.
Which curl flags are supported?
-X for the method, -H for headers, and -d / --data / --data-raw for the body. Multi-line commands with backslash continuations are handled.