Tool guide
About this tool.
An HTTP request is a method, a URL, headers and an optional body. The builder assembles one from form fields: it adds query parameters, encodes the body as JSON, form data or raw text, and adds Bearer, API key or Basic authentication.
It writes the request as a cURL command, a JavaScript fetch call, a raw HTTP/1.1 message and Python requests code, ready for a terminal, a browser console or a script.
Nothing is sent: the tool only writes code.
- Prepare a reproducible API call for a bug report, documentation or a teammate.
- Switch a call between cURL, fetch and Python without retyping headers.
- Check how a JSON or form body and authentication end up on the wire.
Enter the URL and choose the method. Add query parameters and headers, one per line.
Choose a body format and enter the body; JSON is validated and minified.
Choose an authentication method and fill in its fields. Password fields are not saved in drafts.
Choose an export, then copy or save the snippet. All shows a request summary and every format.
- POST https://api.example.com/items with JSON {"name":"Ada"} → Content-Type: application/json is added.
- Query lines page=2 and tag=local → https://api.example.com/items?page=2&tag=local.
- Bearer token abc → Authorization: Bearer abc, unless you typed an Authorization header yourself.
- API key in the query → ?X-API-Key=value is appended to the URL.
- Basic auth ada and secret → Authorization: Basic YWRhOnNlY3JldA==.
- Export Raw HTTP → POST /items HTTP/1.1 with Host and Content-Length headers.
- No request is sent and nothing is uploaded. The snippets contain your credentials, so share them with care.
- Headers you type take precedence over the generated Content-Type and Authorization headers.
- cURL output uses single-quoted POSIX shell arguments and --globoff, so brackets and braces in a URL stay literal, and --head for HEAD; on Windows, run it in Git Bash or WSL, or adapt the quoting for PowerShell.
- fetch drops headers that browsers control, such as Host, Connection and Content-Length, and browsers block cross-origin calls that the server does not allow with CORS.
- GET and HEAD requests cannot carry a body in fetch.
- Raw HTTP output uses HTTP/1.1 with CRLF line endings and a Content-Length counted in UTF-8 bytes.
- Multipart forms and file uploads are not supported.