HAR to cURL Converter
Convert HTTP Archive (HAR) files from Chrome, Firefox, or Safari into ready-to-run cURL commands.
At a glance
HAR to cURL Converter is a free web tool that converts HTTP Archive (HAR) files exported from browser DevTools into reproducible cURL commands. It parses network requests, headers, cookies, and postData bodies with zero server uploads, keeping sensitive credentials and session cookies strictly private on your device.
100% Client-Side HAR to cURL Converter
Zero Server UploadsConvert HTTP Archive (HAR) files exported from Chrome, Firefox, or Safari DevTools into clean, reproducible cURL commands in browser memory.
Why Use This HAR to cURL Converter?
How to Use HAR to cURL Converter
Export & Upload HAR
In Chrome or Firefox DevTools, go to Network tab and click 'Export HAR...'. Drop or paste the file here.
Configure Filters & Options
Filter by method, specify URL substrings, and select formatting or credential redaction.
Copy or Download
Copy individual commands or download all reproducible cURL requests as a shell script.
Converting HAR Network Request to cURL Command
Demonstrates extracting an HTTP POST request from a HAR log entry into a clean, reproducible multi-line cURL command with headers and raw JSON body payload.
{
"request": {
"method": "POST",
"url": "https://api.example.com/v1/orders",
"headers": [
{ "name": "Content-Type", "value": "application/json" },
{ "name": "Authorization", "value": "Bearer token_abc123" }
],
"postData": {
"mimeType": "application/json",
"text": "{\"sku\":\"item-99\",\"qty\":1}"
}
}
}
curl -X POST \
"https://api.example.com/v1/orders" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer token_abc123" \
--data-raw '{"sku":"item-99","qty":1}'
Technical Specifications & Engine Details
| Specification | Details |
|---|---|
| Supported Formats | HAR, JSON, TEXT → CURL, SH, TEXT |
| Execution Mode | 100% Client-Side In-Browser (client) |
| Browser Requirements | Modern browser with JavaScript enabled. |
| Performance Constraints | 100% Client-Side. Runs locally in browser JavaScript memory. |
100% Client-Side Privacy Guarantee
All HAR file parsing and cURL command generation execute client-side in browser memory. Zero network logs leave your device.
Frequently Asked Questions
How do I export a HAR file from my browser?
Is my HAR file uploaded to any remote server?
How does the tool handle browser noise and telemetry headers?
Can I filter requests by endpoint or HTTP method?
Methodology
This tool runs entirely in your browser. The example above shows a representative input and the result it produces.
Last updated .