What is a HAR file?

A HAR file (HTTP Archive) is a recording of the requests a web page made: every URL, its headers, cookies, status, timings and often the response content. Browsers save them from the Network panel of their developer tools, and support teams often ask for one when a site misbehaves.

Because a HAR records everything, it also holds your cookies, login tokens and sometimes passwords. Anyone with those values could act as you on that site, so a HAR shouldn't be shared as it is.

How to save a HAR file

  1. Open your browser's developer tools (F12, or Cmd+Option+I on a Mac) and go to the Network panel.
  2. Reload the page or repeat the steps that cause the problem.
  3. Right-click the list of requests and choose Save all as HAR. In Firefox it's in the gear menu of the Network panel.

Viewing a HAR file

Open the file to see:

  • How many requests the page made, their total size, how long they took from the first to the last, and how many domains they went to.
  • A table of every request with its method, URL, status, type, size and time. Click a column to sort by it, and filter the list by part of the URL.
  • The request and response headers of a request when you click its row.

Requests that never got an answer, such as blocked or cancelled ones, show a dash as their status.

Cleaning up a HAR file before sharing

Pick what to remove, then download the cleaned copy:

  • Cookies: the values of the Cookie and Set-Cookie headers and of the cookie lists.
  • Authorization headers: Authorization, API key, CSRF and session headers and others that carry credentials. The scheme stays, so Bearer abc becomes Bearer [REDACTED].
  • Tokens in URLs and form data: values of parameters like token, access_token, code, password, api_key or session in URLs, redirects, form fields and JSON request bodies, plus anything shaped like a JSON Web Token anywhere in the file.
  • Response bodies: the content the server sent back, which can contain personal data.

Each value becomes [REDACTED] while its name stays, and the URLs, statuses and timings are untouched, so the file still shows what went wrong. The number next to each option tells how many values it changes. A tool can't know every name a site uses for its secrets, so look over the cleaned file before you send it.

How it works

The HAR file is read and cleaned entirely in your browser. Nothing is uploaded, so your cookies and tokens never leave your device.

Features

  • Summary of requests, size, time and domains
  • Sortable, filterable table of every request
  • Request and response headers per request
  • Removes cookies, credentials, tokens and response bodies
  • Keeps names, URLs and timings for debugging
  • Downloads a cleaned HAR file
  • Runs in your browser