Options
HAR File Input
How to Convert HAR to cURL
- 1
Export HAR from Browser DevTools
Open Chrome, Firefox, or Edge DevTools (F12), navigate to the Network tab, and perform the actions you want to capture. Right-click in the request list and choose 'Save all as HAR with content' to download the complete HTTP archive file. - 2
Upload or Paste Your HAR File
Click 'Upload HAR' to select the file from your computer, or paste the raw JSON content directly into the input panel. The converter accepts HAR 1.2 format files of any size. - 3
Configure Conversion Options
Choose whether to include request headers, cookies, and whether to use long-form flags (--header vs -H). These options let you control the verbosity and readability of the generated cURL commands. - 4
Copy and Run the cURL Commands
Click 'Convert' to generate cURL commands for every request in the HAR file. Use 'Copy All' to grab the full output, then paste directly into your terminal to replay the exact network requests outside the browser.
Common Use Cases
API Debugging and Troubleshooting
Sharing Reproducible Bug Reports
Building Automation Scripts
Security and Penetration Testing
Why Convert HAR to cURL?
HAR (HTTP Archive) files are the standard format for recording network traffic in web browsers. Every major browser's DevTools can export HAR files, capturing request URLs, headers, cookies, POST bodies, response codes, and timing data. While HAR files are great for analysis, they are not directly executable. This converter transforms each entry in a HAR file into a ready-to-run cURL command that reproduces the original request from your terminal.
Developers use HAR-to-cURL conversion daily during API debugging, performance profiling, and collaboration. Instead of explaining a failing request in a support ticket, you can share a single cURL command that anyone can run. The converter handles GET, POST, PUT, DELETE, and PATCH methods, preserves custom headers and authentication tokens, and formats multipart form data correctly. If you need to go further, use the cURL to Code converter to turn those commands into Python, JavaScript, Go, or PHP code.
This tool processes everything in your browser. No HAR data is uploaded to any server, which is critical since HAR files frequently contain session cookies, API keys, and other sensitive information. For related workflows, try the Postman to cURL converter for Postman collections, or the JSON Formatter to inspect raw HAR file content before converting.
How It Compares
Browser DevTools let you right-click a single request and copy it as cURL, but that only works one request at a time and you lose the command as soon as you close the tab. HAR-to-cURL conversion processes an entire session of requests at once, preserving every API call, asset load, and redirect in executable form. This batch approach is significantly faster when you need to reproduce a multi-step workflow or debug a sequence of dependent requests.
Compared to paid API debugging tools like Postman or Insomnia, this converter requires no account, no installation, and no subscription. It runs entirely in your browser with zero data leaving your machine. For teams that need to quickly share network captures without setting up shared workspaces, HAR-to-cURL provides a lightweight, portable alternative that works with any terminal on any operating system.