Developer Tools
cURL to HTTPie Converter
Convert a curl command into the equivalent HTTPie command. Handles method, headers, query, JSON, form, multipart, basic and bearer auth, follow, and TLS flags.
HTTPie command
(paste a curl command to see the HTTPie command)
HTTPie item syntax
HTTPie replaces curl's long flag lists with short item tokens. Each token sits on the command line right after the URL.
Header
Name:Value
Same as curl -H 'Name: Value'.
Query parameter
key==value
Same as appending ?key=value to the URL.
JSON string field
key=value
HTTPie wraps the value in JSON quotes. Default Content-Type is application/json.
JSON raw field
key:=value
key:=42, key:=true, key:=[1,2]: HTTPie inserts the value as a literal JSON token.
Form field
key=value with --form
Switches Content-Type to application/x-www-form-urlencoded.
File upload
field@/path/to/file with --multipart
Same as curl -F 'field=@/path'.
Common flag mapping
- curl -L -> http --follow
- curl -k -> http --verify=no
- curl -u user:pw -> http --auth user:pw
- curl -o out.bin -> http --download --output out.bin
- curl --max-time 30 -> http --timeout 30
Method inference
HTTPie defaults to GET when there is no body, and POST when one or more items send a body. The method is only emitted when curl specifies -X or when the inferred method differs from the default.
How to use
- Paste a curl command into the input. Click Load sample for a working example, or pick a Preset (GET with query, POST JSON, form-urlencoded login, basic auth, multipart upload, DELETE with bearer, or PUT with redirects).
- Pick the HTTPie command name on the right: http for the default, https to force the https scheme on relative URLs, or httpie cli if you installed HTTPie via the Python entry point.
- Read the HTTPie command box. Every curl flag has been mapped to the matching HTTPie item, body mode, or top-level option.
- Open the Parsed request panel to see the URL, the items HTTPie will emit, and the method pill. Use it to spot any header or body field that did not translate the way you expected.
- Click Copy command to put the HTTPie line on your clipboard. Watch the notes panel for anything HTTPie handles implicitly (compression, default Content-Type, default method) or any curl flag with no HTTPie equivalent.
About this tool
cURL to HTTPie Converter takes a curl command (as pasted from API documentation, browser DevTools 'Copy as cURL', a Stack Overflow answer, or a shell prompt) and emits the equivalent HTTPie command. HTTPie is a friendlier command-line HTTP client whose request syntax fits on one short line: each header, query parameter, and body field becomes a single 'item' token like Name:Value, key==query, key=string, or key:=42 for raw JSON. The converter understands the curl flags that appear in real-world commands. Method flags (-X, --request, -G/--get, -I/--head) become an HTTPie method or fold the body into the query string. -H / --header pairs become Name:Value items. -d / --data, --data-raw, --data-binary, --data-ascii, and --data-urlencode pick the right HTTPie body mode: a flat JSON object becomes key=value (string) and key:=value (raw) items so HTTPie reconstructs the same payload, a urlencoded form becomes --form with key=value items, and an opaque or nested body is sent through stdin with echo so the exact bytes survive. -F / --form parts become --multipart with field@path for file uploads. -u / --user maps to --auth, and an Authorization: Basic base64 header is decoded back into user:password so HTTPie handles the credentials cleanly. -L/--location maps to --follow, -k/--insecure maps to --verify=no, -o/--output maps to --download --output, --max-time maps to --timeout, and --proxy is split into the http and https variants HTTPie expects. The Content-Type header is suppressed when HTTPie will set it automatically for the body shape (so you do not get a duplicate). The parser uses the same POSIX-style shell tokenizer the other curl-to-* tools in this catalog use: single quotes stay literal, double quotes respect the standard backslash escapes, $'...' ANSI-C quoting expands the common control codes, and backslash-newline line continuations are folded into one logical command. A parsed request panel lists every item the converter emitted (URL, headers, body fields, file uploads) so you can audit the translation before running it. A notes panel flags anything HTTPie handles differently (curl's --compressed is implicit; --connect-timeout collapses into HTTPie's single --timeout; unsupported flags are listed so you can decide whether you needed them). All parsing, mapping, and command assembly runs in the browser; the curl command, the URLs and bodies inside it, and any credentials you pasted never leave the device.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
cURL Command Parser
Decode curl: method, URL, headers, body, basic auth, cookies, and flag-by-flag explanations.
Open tool
DevelopercURL to Fetch Converter
Convert curl into fetch, Node fetch, axios, or XHR JavaScript.
Open tool
DevelopercURL to Python Converter
Convert curl into Python requests, http.client, or urllib code.
Open tool
DevelopercURL to Postman Converter
Turn curl commands into a downloadable Postman Collection v2.1 file.
Open tool
DeveloperFetch to cURL Converter
Convert fetch() and axios calls to a copyable curl command for any shell.
Open tool
DevelopercURL Command Builder
Form-driven builder that emits curl, PowerShell, HTTPie, wget, fetch, and raw HTTP/1.1.
Open tool