Free curl converter. Paste a curl command and get equivalent code for JavaScript fetch, Python requests, Go net/http, PHP cURL, and Rust reqwest. Headers, bodies, basic auth, and common flags are translated automatically.
1Paste the curl commandDrop in a curl command, including multi-line ones with backslash continuations.
2Pick the targetSwitch between fetch, Python, Go, PHP, and Rust tabs.
3Copy the snippetEach tab has copy and download buttons. Check the warnings for ignored flags.