Paste a curl command and get the equivalent HTTP-request code in Python, fetch, Go, Rust and more — all in your browser.
Loading the converter…
curl command into the left box — headers, -d data, -u auth and all.A curl command is the lingua franca for describing an HTTP request — most API docs and browser "Copy as cURL" menus give you one. This tool turns that command into ready-to-paste code: curl to Python (requests), curl to JavaScript fetch, curl to Go (net/http), plus Node (fetch and axios), Rust, PHP, Java, Ruby, C#, Swift, Kotlin, Dart, R, Elixir and PowerShell. It reads the method, URL, query string, request headers, form fields, JSON or raw bodies, and basic auth, and writes idiomatic code for the library you choose.
Most "curl converter" sites POST your command to a backend. That is a problem, because a real curl command is usually copied straight from an API console and carries live secrets — an Authorization: Bearer … token, an API key header, a session cookie. This tool parses the command on your device with the curlconverter engine and a self-hosted tree-sitter Bash grammar compiled to WebAssembly. There is no server round-trip and no CDN call.
No. This is the whole point of doing it client-side. Whatever is in your curl command — tokens, keys, cookies, passwords — is parsed locally and never transmitted. Open your browser's network tab while you convert and you will see no request carrying your data. Once the page has loaded, the converter works offline.
The command is tokenised with the same Bash grammar curlconverter uses, so quoting, line continuations and the common flags round-trip well. Exotic shell constructs, or curl options that have no counterpart in the target library, may be simplified or dropped — so read the generated code before you run it, especially anything security-sensitive.