HAR to cURL Converter
Convert Chrome or Firefox HAR files into copy-paste cURL commands.
Loading tool...
What is HAR to cURL Converter?
A HAR to cURL Converter takes an HTTP Archive (HAR) file exported from Chrome DevTools or Firefox Network Monitor and turns any captured request into an equivalent cURL command. Instead of hand-copying URLs, headers, cookies, and bodies, you paste the HAR, click a request, and get a shell-safe command that reproduces the exact call. Because HAR files contain live credentials, the tool can mask Authorization headers, API keys, and cookies before you share the command, and it strips headers like Content-Length that break replay. Everything runs locally in your browser.
Key Benefits
- Reproduce API bugs by replaying the exact captured request instead of hand-writing commands
- Share complete request context with backend or support teams in one paste-able line
- Mask Authorization headers and cookies so secrets never leak into tickets or chats
- Automatic shell quoting keeps commands valid no matter what characters the body contains
- Free, private, and offline - the HAR never leaves your device
Common Use Cases
- β’Sending a failing API request to a backend developer who needs to reproduce it
- β’Converting OAuth or session-dependent requests into commands for Postman or terminal testing
- β’Documenting API calls for integration guides without exposing credentials
- β’Debugging third-party API integrations by inspecting what the browser actually sent
- β’Building regression tests from real production traffic captures
How to Convert a HAR File to cURL
- Export the HAR file: Open Chrome DevTools or Firefox Network Monitor, reproduce the request, right-click the network log, and choose Save all as HAR with content.
- Paste the HAR: Open the HAR file in a text editor, copy its contents, and paste the JSON into the input box. The request list appears instantly.
- Pick a request and set masking: Click the request you need, then choose whether to mask auth headers, cookies, or all header values before sharing.
- Copy the cURL command: Copy the generated command to your clipboard or download it as a shell script, then run it in any terminal.
Key Features
- Parses standard HAR 1.2 exports from Chrome, Firefox, and Edge DevTools
- Searchable request list with color-coded HTTP method badges
- Optional masking for Authorization headers, cookies, or every header value
- Shell-safe single-quote escaping so the command always pastes cleanly
- Drops Content-Length automatically and includes request bodies via --data-raw
- Runs entirely offline - HAR data never leaves your browser