cURL to Code
Convert cURL commands to fetch, axios, Python, Go, PHP or raw HTTP.
Runs on your machine. Nothing you paste is uploaded.
Get cURL to Code and 121 other tools. Free for 7 days, no account needed.

What it does
Paste a curl command and get the same request as JavaScript fetch, Node.js axios, Python requests, Go net/http, PHP cURL or a raw HTTP message. The method, URL, headers, JSON or form body, basic auth and cookies carry over, and multi-line commands with backslash continuations parse as expected.
Copy as cURL from browser dev tools works directly. Flags that only affect curl's own output, such as -s or -v, are dropped quietly, while options that can't be translated, like proxies, client certificates or file references, are listed as warnings so nothing goes missing without notice.
When you would reach for it
- Turn a request copied from the browser's Network tab into fetch code for a frontend.
- Port a curl example from API documentation into a Python script.
- Convert a webhook test command into Go code for an integration test.
- See the raw HTTP message a curl command would send while debugging headers.
Also found by searching
- curl
- convert
- fetch
- axios
- python
- requests
- go
- php
- http
- request
- code