Guide
About this curl converter & parser
Paste any cURL command from API documentation or Chrome DevTools ("Copy as cURL") to inspect the parsed HTTP method, base URL, query parameters, headers, cookies, basic auth, and body payload. Convert the command into clean, copy-ready code for JavaScript fetch, TypeScript, Node Axios, Python requests or httpx, Go net/http, Rust reqwest, or formatted multiline cURL. Everything runs 100% locally in your browser without executing the request or sending credentials to any server.
How to use the curl converter & parser
- 1.Paste a cURL command into the input area or load one of the built-in samples.
- 2.Review the Parsed Request inspector on the right to verify the method, query parameters, headers, cookies, and body.
- 3.Choose a target language tab on the left (JS fetch, TS fetch, Axios, Python, Go, Rust, or Formatted cURL).
- 4.Optionally enable "Redact secrets in output" to replace tokens, API keys, cookies, and passwords with <REDACTED> before copying.
Important details
Supported shell dialects and flags
The tokenizer supports Bash/Zsh single quotes, double quotes, ANSI-C $'...' escapes used by Chrome DevTools, PowerShell backtick continuations, and Windows cmd caret (^) escaping. Common cURL flags including -X/--request, -H/--header, -d/--data/--data-raw/--data-urlencode, --json, -F/--form, -G/--get, -I/--head, -u/--user, -b/--cookie, -A/--user-agent, -L, -k, --compressed, and --max-time are parsed automatically.
100% local and never executes requests
Unlike an HTTP client that fires live network calls, this converter only parses the command text in-memory and generates source code. Authorization headers, bearer tokens, session cookies, and request bodies stay on your device.
Automatic credential detection and redaction
When Authorization headers, API keys, cookies, basic auth credentials, or common token patterns are detected, the tool highlights them and lets you toggle redaction so you can share generated snippets safely in issues or chat.
Frequently asked questions
Does this tool execute the cURL request or send my API keys anywhere?
No. Parsing and code generation happen entirely in your browser tab. No HTTP requests are sent and no input is uploaded to a server.
Does it work with Chrome DevTools "Copy as cURL"?
Yes. Both "Copy as cURL (bash)" (including $'...' ANSI-C escapes) and "Copy as cURL (cmd)" are supported.
How does -G / --get affect -d / --data flags?
Matching curl behavior, when -G or --get is present, data arguments are appended to the URL query parameters rather than sent in the request body.
References: curl manpage, MDN: Using the Fetch API