Paste or upload a Postman Collection v2.0/v2.1 export and get ready-to-run cURL commands — instantly, entirely in your browser.
Convert an exported Postman Collection into ready-to-run cURL commands directly in your browser. Paste the Collection v2.0 or v2.1 JSON, or upload the exported JSON file, and the converter processes every request—including requests inside nested folders. You can copy a single generated command, copy the complete result, or download all commands as a shell script or text file.
Converting one request or a full collection? Postman can display a cURL code snippet for one open request. This tool is useful when you want to convert an entire exported collection, preserve its folder structure and obtain multiple cURL commands in one operation.
.sh or .txt.If you need cURL for only one request, open that request in Postman and use its code-generation or code-snippet option, then select cURL. If you need every request in a collection, exporting the collection and using this bulk converter is faster.
| Postman Data | cURL Output |
|---|---|
| HTTP method | GET, POST, PUT, PATCH, DELETE, OPTIONS and HEAD are preserved in the command. |
| URL and query parameters | The endpoint and enabled query parameters are included in the generated URL. |
| Headers | Request headers are converted to cURL header arguments. |
| Request body | Raw JSON or text, URL-encoded fields and multipart form-data are mapped to suitable cURL arguments. |
| Authentication | Bearer token, Basic auth and API key configurations are converted when supported. |
| Nested folders | Requests inside folders and subfolders are discovered, with their folder paths retained for identification. |
Assume a Postman request sends a JSON body to https://api.example.com/users, uses the POST method, includes a Bearer token and sends {"name":"Naveen"}. The generated command follows this structure:
curl --request POST 'https://api.example.com/users' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{"name":"Naveen"}'
Replace placeholder variables and credentials before running the command. The precise formatting can differ depending on the headers, body mode and authentication stored in the collection.
Postman variables such as baseUrl, token or userId are preserved rather than silently replaced. This prevents the converter from guessing sensitive or environment-specific values. Before running a command in a terminal, replace unresolved variables with real values or adapt the output to read them from shell environment variables.
Bearer tokens are represented as an Authorization header, Basic authentication can be represented using -u user:password, and API keys are placed in the configured header or query string. Raw JSON and text bodies, URL-encoded fields, and multipart form-data are converted. File fields in multipart requests may still require you to confirm the local file path before execution.
baseUrl before running the command.Conversion runs in your browser, so the collection is not intentionally uploaded for processing. Even so, handle API keys and tokens carefully and review the generated output before sharing it. The converter supports common Postman collection structures, body modes and authentication types, but Postman scripts, dynamic variables, certificates, proxy settings and some custom authentication flows may require manual changes.
baseUrl are preserved in the output. Replace them with actual values or shell environment-variable references before executing the command..sh shell script or .txt file.