cURL converter
Turn a cURL command into fetch, Axios, Python, Go, PHP or HTTPie code.
Convert to
Missing a feature or found a bug in cURL converter? Tell me on X (@_andrewtran) or by email.
How to use cURL converter
- Paste a cURL command, such as one copied from your browser network panel.
- Choose the language to convert to.
- Copy the code or download it as a file.
Questions and answers
Is my command sent anywhere?
No. The command is read by your browser on this device, so any tokens or cookies in it stay with you. The request itself is never sent.
Which options are understood?
Method, headers, data in all its forms, JSON, forms with files, basic sign-in, cookies, user agent and referer. Options with no match in code, such as -o, are left out and named.
Does it handle commands copied from a browser?
Yes, including long commands split over several lines with backslashes and quoted with $'…'.
Related tools
HTTP request code generator
Build a request from a form and get it as cURL, fetch, Axios, Python, Go, PHP or HTTPie code.Query string builder
Build a properly encoded ?key=value query string from a list of parameters.UTM link builder
Build campaign links with utm_source, utm_medium and utm_campaign, encoded correctly.Conventional commit builder
Write well-formed commit messages with a type, scope, body and breaking-change footer.