JSON to HAR Converter Online

Convert JSON request/response data to HAR (HTTP Archive) format online instantly. Free tool for developers to package HTTP session data into the standard HAR 1.2 format. Runs in your browser.

Drag & drop or paste your JSON
Loading editor...
Loading editor...

What is JSON to HAR Conversion?

JSON to HAR conversion wraps JSON-described HTTP request and response data into the HAR 1.2 (HTTP Archive) standard format. HAR is the format used by browser DevTools, Postman, Charles Proxy, and other network tools to record and replay HTTP sessions. A JSON to HAR converter lets you take raw request/response JSON and package it into a valid HAR file that these tools can import and analyze.

Why Convert JSON to HAR?

Use a JSON to HAR converter when you want to create HAR files programmatically from JSON data, share HTTP session recordings with tools that require HAR format, or convert API test data into a format that performance and debugging tools understand. HAR files can be imported into Chrome DevTools, WebPageTest, and Lighthouse for analysis.

How Our JSON to HAR Converter Works

Paste your JSON (a single request/response object or an array of them) into the input editor and click Convert. The tool wraps each entry in a proper HAR 1.2 structure with the required log, creator, and entries fields. All required HAR fields are populated with the values from your JSON, and missing fields are filled with sensible defaults.

Features You Get

  • Produces valid HAR 1.2 format compatible with all major browser DevTools.
  • Accepts a single request/response object or an array of entries.
  • Missing required fields are filled with sensible defaults automatically.
  • Upload support: load a .json file or drag-and-drop.
  • One-click copy: grab the HAR output with the Copy button.

How to Use the Tool

  1. Paste your JSON request/response data into the input editor, or upload a file.
  2. Click Convert to generate the HAR output.
  3. Click Copy to copy the HAR to your clipboard.
  4. Use Clear to reset both editors.

Common Use Cases

  • DevTools import: creating HAR files that can be dragged into Chrome or Firefox DevTools for replay.
  • Performance testing: packaging API call data into HAR for WebPageTest and Lighthouse analysis.
  • Debugging: wrapping API responses in HAR format to share with teammates using network analysis tools.
  • Documentation: creating HAR recordings of API flows for documentation and testing purposes.

Example Conversion

Input (JSON)

{
  "request": {"method": "GET", "url": "https://api.example.com"},
  "response": {"status": 200, "statusText": "OK"}
}

Output (HAR)

{
  "log": {
    "version": "1.2",
    "entries": [...]
  }
}

Frequently Asked Questions

Related Converters