Turn curl Commands into Working Code
API documentation, bug reports and browser DevTools all speak curl. Your application does not. This converter reads a curl command the way a shell would, including single and double quotes, $'...' strings and line continuations, and writes the same request as JavaScript fetch, Axios or Python requests code.
What Gets Translated
- Method: taken from
-X, or inferred the way curl does (POST when there is a body, HEAD with-I). - Headers and cookies: every
-H, plus-b,-Aand-e. - Bodies: JSON becomes an editable object; form-encoded and raw bodies stay exact.
- File uploads:
-F file=@photo.jpgbecomesFormDataor Pythonfiles=. - Auth:
-u user:passbecomes a Basic auth header, Axiosauthor Pythonauth=.
Watch for Secrets
Commands copied from DevTools usually include session cookies and bearer tokens. Conversion happens entirely in your browser, so nothing is uploaded, but remember to move those values into environment variables before committing the generated code.
Related Tools
Tidy a JSON body with the JSON Formatter, decode an Authorization token with the JWT Decoder, or escape query values with the URL Encoder.

