curl → code
Paste a curl command — from API docs or browser devtools — and get working Go, Python or Node.js code with headers, body and auth carried over.
From a copied command to code that ships
Every API doc gives you a curl example, and every browser lets you copy a request as curl. This converts that command into idiomatic code: Go with net/http, Python with requests, Node.js with the built-in fetch — method, URL, headers, body, basic auth, multipart fields and redirect behaviour all carried over.
The parser understands the flags that actually appear in the wild: -X, -H, every -d variant plus --json, -F for multipart, -u, -k, -L, --compressed, devtools' quoting and multi-line backslash continuations. Anything it recognizes but drops (like -o) and anything it doesn't know is listed under the output — nothing disappears silently.
Why does the generated code not set Accept-Encoding for --compressed?
Is my pasted command sent anywhere?
What happens with -k / --insecure?
Why does the Python version add allow_redirects=False for GET?
Related tools: HTTP headers, JWT decoder and Base64.