cURL converter
Paste a cURL command from API docs or your browser's network tab. Get clean fetch, axios or Python requests code with headers, body and auth carried over.
cURL flags it understands
| Flag | Meaning |
|---|---|
-X, --request | HTTP method, like POST or DELETE |
-H, --header | A request header |
-d, --data, --data-raw | Request body |
--json | JSON body, with JSON headers set |
-u, --user | Basic auth, turned into an Authorization header |
-b, --cookie | Cookies |
-G, --get | Send the data as a query string |
-A, --user-agent | The User-Agent header |
How it works
- Understands the usual flags-X, -H, -d and its variants, --json, -u for basic auth, -b for cookies, -G for query strings, and line breaks with backslashes.
- JSON stays JSONA JSON body becomes a real object in the code, so you can edit it easily.
Questions
Where do I get a cURL command?
In Chrome or Edge, open the Network tab, right-click a request and choose Copy as cURL.
Are my tokens safe?
The command never leaves your browser. Still, replace real tokens before you share code.
More tools
Built something with it?
Show it in the server, get a code review, or ask the people who use these tools every day.
online now · members