curl to Code Converter
Paste a curl command — get equivalent, ready-to-run code in JavaScript fetch, axios, Python requests and Go net/http. Handles multi-line commands, headers, auth, JSON and form data. Everything runs in your browser.
About this tool
The curl command is parsed with a real shell-style tokenizer — single quotes, double quotes with escapes, and backslash line continuations all work, so you can paste commands straight from API docs or Chrome DevTools "Copy as cURL". Supported flags include -X, -H, -d/--data/--data-raw/--data-urlencode, --json, -u, -F (multipart), -G, -L, -k, -m, -A, -e, -b and --compressed; unknown flags are skipped with a warning. JSON bodies are pretty-printed and converted to native literals per language.
Your commands (including any tokens or credentials in them) never leave the page — there is no server, no upload, and no tracking of tool inputs.