Build a correctly quoted curl command from a request form
HTTPie Command Generator
Write the friendlier HTTPie version of a request without learning its item syntax first.
Loading tool…
How to use httpie command generator
Fill in the request, or load a curl command.
Copy the http command.
Run it in a terminal with HTTPie 3 or later installed.
What this tool does
- Writes headers as Name:value items and form fields as name=value items.
- Uses --form for URL-encoded bodies and --multipart with name@path for files.
- Sends JSON and text bodies byte for byte with --raw.
- Maps Basic auth to -a, redirects to --follow and timeouts to --timeout.
How the result is verified
The command is built from the same parsed request as the curl output and is split again with a shell tokenizer during testing to check the quoting.
Frequently asked questions
Why use --raw instead of key=value pairs for JSON?
--raw sends the body exactly as written, so nested objects, numbers and booleans arrive unchanged. HTTPie's item syntax can express them, but it is easy to get wrong for deep data.
Is HTTPie the same as curl?
Both send HTTP requests from a terminal. HTTPie has shorter syntax and coloured, formatted output; curl is installed almost everywhere.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Turn a curl command into fetch, Axios, Python or HTTPie, and back
JavaScript fetch() code for any request, with JSON, forms and auth
Send GET, POST, PUT, PATCH and DELETE requests from your browser