← All text tools

HAR / Postman Collection to cURL

Reads a HAR file or a Postman collection and lists every request as a ready-to-run cURL command with headers, body, form data and authentication.

  • Free
  • No sign-up
  • Works on any device

About HAR / Postman Collection to cURL

Debugging a failing API call often starts with replaying it from a terminal. This tool takes a HAR file saved from the browser, or a Postman collection v2 export, and writes one cURL command per request. It keeps the method, URL, headers, raw or urlencoded bodies, multipart form fields and bearer, basic or API-key authentication, and it walks through Postman folders. HTTP/2 pseudo-headers and Content-Length are dropped because curl adds them itself. Postman variables stay as text for you to fill in before running.

How to use HAR / Postman Collection to cURL

  1. Paste the HAR or Postman JSON, or open the file from your computer.
  2. Tick the options you want: one option per line, --compressed, or leaving out browser noise headers.
  3. Copy the commands or download them as a shell script and fill in any Postman variables before running.

Why use this tool?

Also known as

Frequently asked questions

Which Postman collection versions work?

Collections exported in the v2.0 and v2.1 formats, which store requests in an item list, are read. Older v1 files use a different layout and are not supported.

Why are some browser headers missing from the cURL command?

Pseudo-headers that start with a colon and Content-Length are removed because curl sets them itself. You can also hide noise headers such as User-Agent and Sec-Fetch values with the matching option.

Is it safe to paste a HAR file here?

The file is processed in your browser and never uploaded. It can still contain cookies, tokens and passwords, and so can the generated commands, so treat the output as secret and delete it when done.

Is HAR / Postman Collection to cURL free?

Yes. HAR / Postman Collection to cURL on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.