Postman to cURL Converter
Convert Postman requests or full collections (including nested folders) to cURL commands — live preview, per-request list.
About this ToolHow it works, benefits & use casesTap to collapse
Paste a Postman request, a single collection item, or an entire exported collection, and get back equivalent cURL commands. The converter understands the Postman v2.1 shape: it reads the method and URL (whether the URL is a raw string or the structured object with protocol, host, path and query parts), turns headers into -H flags, handles bearer and basic auth, and converts request bodies — raw payloads become -d, urlencoded fields are joined, and form-data fields (including file uploads) become -F flags. For a full collection it walks nested folders recursively, emitting one cURL command per request with a numbered comment header, and lists every request individually in a collapsible per-request view so you can grab just the one you need. The output is a runnable shell script you can copy, download as request.sh, share via URL, or pipe to a cURL-to-code tool.
How to Use
- 1Paste a Postman request, item, or full collection JSON into the input — or click "Load example" for a demo collection.
- 2Click "Convert to cURL"; the stats line tells you whether it was a single request or a collection and how many requests were found.
- 3For collections, open the per-request list to read each command individually (the first is expanded by default).
- 4Copy the combined cURL output, or download it as a request.sh shell script.
- 5Optionally share the input via URL, or pipe the output to the cURL to Code tool.
Key Benefits
- Handles single requests, single items, and full collections in the Postman v2.1 format
- Recursively walks nested collection folders, one cURL command per request
- Reads both raw-string URLs and the structured URL object (protocol/host/path/query)
- Converts headers to -H, raw bodies to -d, urlencoded and form-data (with file uploads) to the right flags
- Supports bearer and basic auth, emitting Authorization or -u as appropriate
- Per-request collapsible list so you can copy just one command from a big collection
- Output is a runnable request.sh script; shareable URL and pipe-to-tool support
Common Use Cases
- Turning a saved Postman request into a cURL command to run in a terminal or CI step
- Exporting a whole collection to a shell script of reproducible API calls
- Sharing a precise reproduction of a request with someone who does not use Postman
- Extracting a single request from a large collection via the per-request view
- Converting to cURL and then piping into a cURL-to-code generator for another language
A request, a collection, or a single item
Paste a Postman request to convert.
Was this tool helpful?
Share Your Experience
Help others discover this tool!
Related tools
Yes. Paste a full exported collection and the converter walks its items recursively, including nested folders, producing one cURL command per request with a numbered comment header. The stats line reports the request count, and each command is also listed individually in a collapsible per-request section.
Raw bodies are emitted as a -d argument (with single quotes escaped), urlencoded bodies are URL-encoded and joined into a single -d string, and form-data fields become -F flags — with file-type fields rendered as -F 'key=@path' so cURL uploads the file. The mode declared in the Postman body is what drives this.

