Convert a cURL command
Paste a curl command and get it back as JavaScript fetch, Python requests and a raw HTTP request. Your headers and tokens never leave the page.
- Free, no account
- Nothing is uploaded
- Runs in your browser
How it works
- 1 What goes in A cURL command
- 2 It runs in your browser On your own device. Nothing is uploaded, there is no queue and no account, and it keeps working with the network switched off.
- 3 What comes back The same request in your language
What it does
Copy a request out of your browser's network tab as cURL, paste it here, and read it back in the language you are actually writing. The shell quoting is parsed properly, so a JSON body with nested quotes survives the trip.
This page does the work itself. Your command is handled by the browser and never sent anywhere — there is no server here to send it to.
Questions
Is it safe to paste a command with an Authorization header?
Safer than anywhere with a server, because this page has none — the parsing happens in the tab and nothing is transmitted. This matters more than it sounds: "copy as cURL" from a browser includes every cookie and bearer token the request carried, and the popular online converters receive all of it.
Which curl flags are understood?
The ones that change the request: -X, -H, -d and its variants, --json, -u, -b, --url, -F for form fields, and -L. Flags that only change curl's own behaviour — -s, -v, -k, --compressed — are recognised and ignored, except that -k is called out, since disabling certificate verification is not something to port into code by accident.
Why does the Python output use a dict for the body?
When the body parses as JSON, requests is given json= rather than data=, which sets the content type and the encoding for you. When it does not parse, the body is passed through as a string exactly as curl would send it.
More developer tools
-
Developer
Text ⇄ binary
Translate text to binary, hex or octal and back again, in UTF-8.
-
Developer
Base64
Encode text or a file to Base64 and decode it back, with URL-safe output and data URIs.
-
Developer
SHA hashes
Compute SHA-1, SHA-256, SHA-384 and SHA-512 for text or a file, using your browser's own crypto engine.
-
Developer
Unix time
Convert Unix time to a date and back, in UTC and your own timezone at once, with seconds and milliseconds.
-
Developer
URL encode
Percent-encode a URL or a single value and decode it back, with the encodeURI and encodeURIComponent distinction made explicit.
-
Developer
UUID
Generate v4 random or v7 time-ordered UUIDs in bulk, from your browser's cryptographic random source.
-
Developer
JWT decoder
Read a JWT's header and payload, with expiry checked against the clock.
-
Developer
Regex tester
Test a JavaScript regular expression against your own text, see every match and capture group, and read the pattern back in plain English.
-
Developer
Cron expressions
Turn a cron expression into plain English and see its next five run times, in your own timezone and in UTC.