How to open a HAR file

The quickest way to open a HAR file is to drop it on HAR Playground, which lists the failing, slow and insecure requests in your browser. You can also import it into browser DevTools, read it in a code editor or query it with jq.

Last updated:

Open HAR PlaygroundFree, no signup. Runs in your browser.

Option 1: open it online in your browser

  1. Go to HAR PlaygroundOpen HAR Playground. It runs in your browser, so the file is not uploaded.
  2. Drop or choose the fileDrag the .har or .json file onto the drop zone, choose it with the file picker, or paste the JSON.
  3. Read the findingsThe summary shows a health score and the problems found. Click a finding to filter the request table to the requests behind it.
  4. Inspect a requestClick any row for headers, query string, body, cookies and timings. Secrets are redacted by default for exports.

Option 2: import it into browser DevTools

  • Chrome and Edge: open DevTools, select the Network tab, then click Import HAR file in the toolbar, or drag the file onto the requests table.
  • Firefox: open the Network Monitor, open the settings menu and choose Import HAR.
  • Safari: open Web Inspector, select the Network tab and click Import, or drag the file onto Web Inspector.

Option 3: read it in VS Code or another editor

A HAR file is JSON, so any editor opens it. In VS Code, open the file and use Format Document to make it readable, then search for values such as "status": 500. This works for finding one thing and is slow for reading hundreds of requests.

Option 4: query it with jq

On the command line, jq answers specific questions about a large file. This lists every request that returned a 400 or higher:

List failed requests
jq -r '.log.entries[] | select(.response.status >= 400) | "\(.response.status) \(.request.method) \(.request.url)"' capture.har

Keep the file private

HAR files can contain cookies and tokens. Prefer tools that open the file locally, as HAR Playground and DevTools do, and sanitize the file before you share it.

Catch broken requests before your users do

TestChimp watches your QA posture on every pull request and feeds failures back to your coding agent until they are fixed.

Start your free trial

14-day free trial. No credit card required.