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.

Universal Switcher:
From:
To:

100% Client-Side HAR to cURL Converter

Zero Server Uploads

Convert HTTP Archive (HAR) files exported from Chrome, Firefox, or Safari DevTools into clean, reproducible cURL commands in browser memory.

Local Sandbox
Presets:
0 lines • 0 chars
Extraction Filters & Formatting
0 commands • 0 B
Ready

Why Use This HAR to cURL Converter?

100% Client-Side Privacy: Your session cookies, authorization headers, and confidential API logs remain entirely on your local device.
Multi-Entry Archive Processing: Ingest full HAR archives with hundreds of requests and filter by HTTP method or URL substring.
Automatic Header Cleanup: Removes browser telemetry headers (sec-ch-ua, sec-fetch-*) and HTTP/2 pseudo-headers for clean cURL execution.
Multi-Platform Formatting: Export commands with Bash backslash (\) continuations or Windows caret (^) syntax, or single-line commands.
Script Export: Copy commands with one click or download all converted requests as an executable .sh shell script.

How to Use HAR to cURL Converter

1

Export & Upload HAR

In Chrome or Firefox DevTools, go to Network tab and click 'Export HAR...'. Drop or paste the file here.

2

Configure Filters & Options

Filter by method, specify URL substrings, and select formatting or credential redaction.

3

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.

HAR Entry JSON Source
{
  "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}"
    }
  }
}
Generated cURL Command Processed
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

Technical specifications and engine details for HAR to cURL Converter
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.
Maintained by Pragyan Pahadi

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?
In Chrome, Firefox, or Edge, open DevTools (F12 or Cmd+Option+I), navigate to the Network tab, perform your actions, and click the 'Export HAR' arrow icon or right-click any request and select 'Save all as HAR with content'.
Is my HAR file uploaded to any remote server?
No. The HAR parser executes 100% client-side in your local browser sandbox. No cookies, auth tokens, or network payload data are ever sent over the internet.
How does the tool handle browser noise and telemetry headers?
By default, the tool automatically strips browser-specific client hints and fetch metadata headers (such as sec-ch-ua and sec-fetch-mode) and HTTP/2 pseudo-headers (:authority, :path) so your cURL commands remain clean and portable.
Can I filter requests by endpoint or HTTP method?
Yes. Use the 'Filter by Method' dropdown (GET, POST, PUT, DELETE, etc.) and 'Filter by URL' text box to isolate exactly the API endpoints you need.

Methodology

This tool runs entirely in your browser. The example above shows a representative input and the result it produces.

Last updated .