What is a HAR file?
A HAR file (HTTP Archive, extension .har) is a JSON recording of a browser session's network traffic. Each entry stores one request: the URL, method, request and response headers, cookies, query string, request body, response status, timing breakdown, and usually the response body. Developers and support teams use HAR files to see exactly what a browser sent and received when something broke, such as a failed login, a slow page, or an API error.
That completeness is also the risk: a HAR file captures your live session cookies and tokens, so treat it like a password until it has been sanitized.
How to export a HAR file
- Chrome / Edge: open DevTools (F12 or Cmd+Option+I), go to the Network tab, tick Preserve log, reproduce the problem, then click the download arrow (Export HAR) in the Network toolbar.
- Firefox: open DevTools, go to Network, reproduce the problem, then right-click any request and choose Save All As HAR.
- Safari: enable the Develop menu (Settings, Advanced), open Develop, Show Web Inspector, go to Network, reproduce the problem, and click Export.
Then open the file here to check what it contains and download a sanitized copy before you send it anywhere.
Reading the request list
- Status: 4xx and 5xx responses are highlighted;
(failed)means the request never got a response (blocked, cancelled, or a network error). - Type: document, fetch (XHR/API calls), script, stylesheet, image, font, media, or other, taken from the browser's resource type or the response MIME type.
- Size: the decoded response body size. Time: the full request duration, from start to the last byte.
- Total time is the wall-clock span from the first request starting to the last one finishing.
- Binary responses (images, fonts) are stored Base64-encoded in the HAR; paste one into Base64 decode to inspect it.
How to use
- Open a
.harfile with the upload button (or paste its JSON, or load the sample). - See every request: method, status, type, size and time, plus totals and failed requests. Filter by URL, method or status.
- Click a request to inspect its request and response headers, query string and bodies. Secret values are tagged.
- Check the warning: it counts the cookies, auth headers, tokens and passwords inside the file.
- Click Download sanitized HAR to save a copy with every secret replaced by
REDACTED. Tick the box to also drop response bodies.
Examples
Sanitizing a request
GET /v2/cart?currency=EUR&access_token=tok_live_51Hx authorization: Bearer eyJhbGciOi... cookie: session_id=9f2c1e7a
GET /v2/cart?currency=EUR&access_token=REDACTED authorization: REDACTED cookie: REDACTED
JSON request body
{"cartId":"c_88","password":"hunter2"}{"cartId":"c_88","password":"REDACTED"}FAQ
What is a HAR file?
A HAR (HTTP Archive) file is a JSON log of every network request a browser made while a page loaded: URLs, methods, status codes, headers, cookies, timings, and often the request and response bodies. Support teams ask for HAR files to debug login, loading, and API problems.
How do I open a HAR file?
Open it here with the upload button: the requests appear as a sortable list with full headers and bodies, and nothing leaves your browser. You can also drag a .har file into the Network tab of Chrome, Edge, or Firefox DevTools. Because it is JSON, any text editor opens it too, but it is hard to read that way.
Is it safe to share a HAR file?
Not as-is. A HAR file can contain session cookies, Authorization headers, API keys, and tokens that let anyone who has the file act as you. In October 2023 attackers hijacked customer sessions using tokens taken from HAR files uploaded to Okta's support system. Sanitize the file first and share the sanitized copy.
What does the sanitizer remove?
Every cookie value; Authorization, Cookie, Set-Cookie, and any header whose name contains token, secret, session, auth, csrf, or api-key; matching query-string parameters (access_token, code, key, signature, and similar) in URLs, redirects, and page titles; matching fields in JSON and form request bodies and JSON responses; and anything that looks like a JWT. Values become REDACTED; names, URLs, timings, and status codes stay so the file is still useful for debugging.
Doesn't Chrome already sanitize HAR exports?
Partly. Since late 2024 Chrome exports a sanitized HAR by default, but that only drops cookies and the Authorization header. Tokens in URLs, custom token headers, and secrets in request bodies stay in the file. Firefox, Safari, and older Chrome versions include everything.
Is my HAR file uploaded?
No. The file is read, analyzed, and sanitized entirely in your browser, and the sanitized copy is downloaded straight from memory. The file never leaves your browser.