How to use the Postman Collection to cURL Converter
- 1. Export the collectionIn Postman, choose Export → Collection v2.1 and paste the JSON.
- 2. Fill in variablesAdd values such as baseUrl or token; they override the collection's own.
- 3. ConvertCopy the commands, or download them as a .sh or .bat file.
What gets converted
Every request in the collection, including those inside folders, becomes one cURL command, with the folder path as a comment. {{variables}} are replaced from the collection and from the values you add, and any left unfilled are listed. Bearer, basic and API-key auth set on the collection or a folder is applied to each request unless the request overrides it. Raw JSON, URL-encoded forms, multipart forms with files, and GraphQL bodies are all supported. Everything runs in your browser; nothing you enter is uploaded.
Quoting is the part that usually breaks. For bash, values go in single quotes with apostrophes escaped; for Windows cmd, double quotes are doubled and ^ and % are escaped. We ran the generated bash commands with real curl against a test server and checked the method, URL, headers and body of every request.
Worked example
The sample collection, Student API, has 4 requests: a GET with query parameters, a JSON POST containing an apostrophe (Asha's first course), a URL-encoded login that turns auth off, and a multipart photo upload. It converts to 4 cURL commands. The GET and POST carry the collection's bearer token, the login sends email=asha%40example.com without auth, and the upload uses --form 'photo=@/path/to/photo.jpg'.
Limits
- Pre-request and test scripts can't become cURL; run those parts in Postman or Newman.
- Change file paths after
@to files on your computer. - Dynamic variables such as
{{$timestamp}}are left for you to fill in.
Frequently asked questions
Is my token safe?
The conversion happens in your browser and nothing is sent anywhere. Still, don't share the output if it contains real tokens.
Does it accept old v1 collections?
No. Re-export as v2.1 from Postman first.
Is the Postman to cURL converter free?
Yes. You can open the Postman to cURL converter and fill in everything without signing up. When you convert the collection for the first time, we ask once for your name and WhatsApp number; after that it, and every other Uncodemy tool, opens straight away.