โcurl Converter
Loading...
Copying curl commands from API docs or testing tools and manually rewriting them as code is tedious. Paste any curl command and this tool instantly converts it to fetch, axios, or Python requests.
How to Use
- 1Enter curl command
Paste your curl command in the input area. Backslash line continuations and both single and double quotes are fully supported.
- 2Review parsed info
The URL, method, headers, and body are parsed instantly and shown as summary badges.
- 3Choose output format
Select fetch, axios, or Python requests from the output tabs.
- 4Copy the code
Click the copy button to copy the converted code to clipboard.
Tips
- ๐กUse "Copy as cURL" in Postman or Insomnia and paste directly here.
- ๐กIf the -d value is valid JSON, it is automatically recognized and converted to JSON.stringify() or json=.
- ๐กThe -u user:pass option is automatically converted to an Authorization: Basic header.
- ๐กThe -F (form-data) option is converted to a FormData object, making it easy to generate file upload code instantly.