cURL to Code Converter
Convert cURL commands to fetch, axios, Python or PHP.
Runs in your browserFree, no sign-up
Loading tool…
How to use it
- Paste the cURL command.
- Pick the language.
- Copy the code.
About this tool
Paste a cURL command copied from browser dev tools or API docs and get the same request in JavaScript fetch, Node axios, Python requests or PHP. Headers, methods, JSON bodies, form data and basic auth are supported.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
Where do I get a cURL command?
In Chrome DevTools, right-click a request in the Network tab and choose Copy as cURL.
Developer
All developerMore tools like this
DeveloperCron Expression ExplainerRead a cron schedule in plain English and see the next runs.Open →DeveloperChmod CalculatorWork out Linux file permissions in numbers and letters.Open →DeveloperIP Subnet CalculatorCIDR to network, broadcast, mask and host range.Open →DeveloperHTTP Status CodesEvery HTTP status code with what it means and when to use it.Open →DeveloperUser Agent ParserSee the browser, OS and device behind a user-agent string.Open →DeveloperFake Data GeneratorTest data: names, emails, phones, addresses as JSON, CSV or SQL.Open →DeveloperJWT Generator (HS256)Create and sign JSON Web Tokens for testing.Open →Developer.gitignore GeneratorBuild a .gitignore for Node, Next.js, Python, Java and more.Open →