Skip to content

HAR → cURL Converter

Paste HAR JSON or upload a .har file, pick one or more requests, and get ready-to-run curl commands. Sensitive headers (Authorization, Cookie, and similar) are redacted by default. Everything runs in your browser — nothing is sent to a server.

HAR to cURL controls

or paste JSON below

How it works

HAR (HTTP Archive) files are JSON exports of browser network activity. Paste HAR JSON or upload a .har file, then Parse to list requests. Select one or more entries and convert them into curl command lines you can run in a terminal.

By default, sensitive headers such as Authorization and Cookie are replaced with REDACTED in the output so you are less likely to paste secrets into chats or tickets. Uncheck redaction only when you intentionally need the raw values locally.

Parsing never uploads the HAR to Formattly — conversion stays in your browser.

When to use this tool

Tips

Frequently asked questions

What is a HAR file?

HAR (HTTP Archive) is a JSON format that records HTTP requests and responses from a browser session. Developers export HAR from DevTools to debug network calls, share repros, or convert traffic into scripts such as cURL.

Does my HAR leave my browser?

No. Parsing and conversion run entirely in your browser with JavaScript. Your HAR is not uploaded to a server. Redact sensitive headers is on by default so Authorization and Cookie values are replaced with REDACTED in the cURL output.

How do I export a HAR from Chrome DevTools?

Open DevTools (F12 or Ctrl+Shift+I), go to the Network tab, reload or reproduce the requests, then right-click in the request list and choose Save all as HAR with content. You can paste that JSON here or upload the .har file.

Is this HAR to cURL converter free?

Yes. The Formattly HAR to cURL converter is free to use with no signup required.

Why are some headers shown as REDACTED?

Redaction is enabled by default to reduce accidental leakage of Authorization, Cookie, and similar headers when you copy cURL into tickets or chat. Turn the option off only if you need the original values on your own machine.