HAR to cURL converter

Open a HAR file in HAR Playground, click a request and copy it as a cURL command or a fetch call. The command is built from the redacted capture, so tokens and cookies appear as placeholders you can fill in.

Last updated:

Open HAR PlaygroundFree, no signup. Runs in your browser.

How to convert a HAR request to cURL

  1. Open the HARDrop the file on HAR Playground. Nothing is uploaded.
  2. Pick a requestSearch or filter the table, for example status:500, then click the row.
  3. Copy as cURL or fetchIn the request details, click Copy as cURL or Copy as fetch.

What the output looks like

cURL for one request
curl 'https://api.example.com/orders' \
  -X POST \
  -H 'content-type: application/json' \
  -H 'authorization: [REDACTED:bearer:a1b2]' \
  --data-raw '{"cartId":"c_123"}' \
  --compressed

The redaction placeholder shows where a secret was. Replace it with a real token before you run the command, and keep real tokens out of tickets and chat.

Why not use Copy as cURL in DevTools?

Chrome and Edge DevTools can copy a live request as cURL, but only while the page is open and the request is still in the panel. With HAR Playground you can convert requests from a file a teammate or customer sent you, and the secrets are already removed.

Catch broken requests before your users do

TestChimp watches your QA posture on every pull request and feeds failures back to your coding agent until they are fixed.

Start your free trial

14-day free trial. No credit card required.