API Request Builder
Build an HTTP request (method, URL, query, headers, auth, body) and copy it as cURL, fetch, HTTPie or Python requests.
Open toolConvert a JavaScript fetch() call into a curl command, or a curl command into fetch, HTTPie or Python requests, with safe shell quoting.
Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.
Conversions cover common options and are parsed as text; check the result before running it, especially commands that change data. Credentials in pasted commands stay on your device, but remove them before sharing the output.
Paste a fetch() call, for example from your code or DevTools' "Copy as fetch", and get an equivalent curl command. Method, headers, JSON.stringify bodies, URLSearchParams and string bodies are converted, and every value is single-quoted so quotes, $ signs and spaces can't break the shell. Variables in your code can't be known, so they become clearly marked placeholders.
Switch direction to turn a curl command into fetch, HTTPie or Python requests. Common curl options are understood: -X, -H, -d/--data/--data-raw/--data-binary, --data-urlencode, --json, -F form fields and files, -u basic auth, -b cookies, -A, -e, -G and -I. Options with no equivalent (such as -k, which disables certificate checks) are listed instead of silently dropped, and credential headers are flagged before you copy. Nothing is run or sent. Everything runs in your browser. What you paste is never uploaded, logged or stored.
Your code or text
fetch(url, options), curl (bash/zsh, -H, -d, --data-raw, --json, -F, -u, -X)
Processed in this browser
Instant, in-browser. Nothing is uploaded.
Your result
Ready to download or copy
Choose the direction.
Paste the fetch call or curl command.
Copy the converted code and check the notes below it.
Zero-upload architecture
Free, with no sign-up or watermark · Your files stay on your device
Launch the app and add your file. There is nothing to install and no account to create.
Paste the fetch call or curl command.
Copy the converted code and check the notes below it.
Build an HTTP request (method, URL, query, headers, auth, body) and copy it as cURL, fetch, HTTPie or Python requests.
Open toolQuote any text safely for bash (single, double, $'…' or minimal) and see how bash splits and expands a command line.
Open toolBreak a URL into scheme, host, port, path, query parameters and fragment, with decoded values and warnings about credentials and tracking parameters.
Open toolLook up any HTTP status code: its official name and RFC, what it means in plain language and when to use it.
Open tool