Browser-based developer tool · the capture never leaves this tab

HAR File Analyzer

Open a HAR file saved from Chrome, Firefox, Edge or Safari developer tools. Browse the requests with a waterfall, filter by type, status, domain or text, find the slowest, largest, duplicated and failed requests, and download a copy with cookies, auth headers and tokens redacted before you share it.

HAR file

A .har file up to 300.0 MB. Response bodies stay in memory only.

Drop a .har file here or click to choose

Chrome: Network, then Save all as HAR with content

HAR File Analyzer and Sanitizer

Operator: Abdulla Al Fahad. How tools are built and checked

When a page is slow or a call fails only for one customer, the quickest evidence is a HAR file: a JSON record of every request the browser made, with timings, headers, cookies and often the response bodies. Reading that JSON by hand is miserable, and sending it to anyone is risky, because a HAR saved from a logged-in session contains the session cookie, the bearer token and whatever was typed into the forms.

This analyzer opens a HAR in your browser and turns it into something readable: a request table with a phase-by-phase waterfall, filters, and lists of the slowest, largest, duplicated and failed requests. A separate tab builds a sanitized copy with cookies, authentication headers, tokens in URLs and secrets in request bodies replaced by [REDACTED], so the file you attach to a ticket is not a copy of your login.

Key features

  • Request table with status, method, URL, type, transferred size, total time and a waterfall bar split into blocked, DNS, connect, send, wait and receive
  • Filters for resource type, status class (2xx to 5xx and no response), domain and free text, plus sorting by start, slowest, largest or status
  • Insights: ten slowest, ten largest, every failed request, repeated requests with the bytes they cost, and totals by domain and by type
  • Sanitizer with separate switches for cookies, auth headers, URL tokens and body secrets, and an option to drop all response bodies
  • Handles captures up to 300 MB; the table is paged 150 rows at a time and the sanitized file is written one request at a time

What a HAR holds and what the sanitizer redacts

A HAR file is JSON with a log object holding a list of entries. Each entry has a request (method, URL, headers, cookies, query string, optional post data), a response (status, headers, cookies, content with size, MIME type and sometimes the body text) and timings in milliseconds. Chrome, Edge, Firefox and Safari all export it from the Network panel; in Chrome use Save all as HAR with content, because the plain option omits bodies. A file that is not valid JSON, or has no log.entries list, is rejected with a message saying which.

The analyzer reads each entry into a small row and keeps the full file in memory only so the sanitizer can rewrite it. The resource type comes from Chrome's _resourceType field when present and otherwise from the MIME type and file extension. Size is the decoded body; the transferred size is Chrome's _transferSize when the file has it, otherwise the body plus header bytes, otherwise the body size. Timings of -1, which mean not applicable, are treated as zero. The SSL time is part of connect in the HAR format, so the waterfall draws it inside the connect segment, and it is listed separately in the row details.

The summary cards show the capture span (first request start to last request end), the DOMContentLoaded and load times from the first page entry when the file contains them, and the number of failed requests, counting status 0 (no response, often a blocked or cancelled request) and every status of 400 or above. Duplicates are requests with the same method and URL, and for POSTs the same first 200 characters of body.

The sanitizer works on field names and value patterns. Header names such as Authorization, Proxy-Authorization, X-API-Key, X-CSRF-Token and anything containing token, secret, auth, session or password are redacted when auth headers are switched on; Cookie and Set-Cookie headers and the cookies lists go with the cookie switch. Query parameters named like token, api_key, signature, password, code, sid or key are redacted in URLs, in the parsed query string, and in the Referer, Location and redirect fields. Bodies are parsed as JSON or form data and sensitive keys are replaced; free text is scanned for JWTs, Bearer and Basic values and a handful of well-known key formats. Response bodies stored as base64 are decoded when their MIME type is text-like (JSON, text, JavaScript, XML, form data), scrubbed and encoded again; base64 bodies of any other type, such as images, are left as they are and the page counts them so you can decide to drop response bodies instead. URL paths are also checked: a segment that is a JWT, a known key format or a random-looking token of 24 or more mixed characters, such as /reset/<token>, is replaced, while ordinary slugs, UUIDs and plain numbers are not.

How it works

Opening a file reads it as text, parses it once and builds one row per entry. Filtering, sorting and the insight lists are computed from those rows, which are much smaller than the file, so the page stays responsive even with several thousand requests. The waterfall is an inline SVG per row, scaled to the longest request end in the current filter, so narrowing the filter zooms the bars.

To sanitize, each entry is copied, its sensitive fields are replaced, and the result is serialised and pushed onto a list of strings that becomes the download Blob. The page yields to the browser every hundred entries so a progress count can update and the tab does not freeze. The original object is never modified, so you can sanitize again with different switches.

When this helps

  • Finding the one call that takes 4 seconds in a capture of 300 requests, by sorting slowest first and reading its wait and receive phases
  • Showing a vendor that the same GraphQL query is sent seven times on page load, and how many kilobytes that wastes
  • Listing every 404 and blocked request on a marketing page before a launch
  • Redacting a capture of a failing payment flow before attaching it to a support ticket

Opening a file

  1. Export a HAR from your browser's Network tab, with content if you want bodies.
  2. Drop it onto the file box. Parsing a large file takes a few seconds.
  3. Use the Requests tab to filter and sort, and click a row to see its URL, protocol, size and timing phases.
  4. Open Insights for slowest, largest, failed and duplicate requests, and the domain and type breakdowns.
  5. Open Sanitize, choose what to redact, and press Sanitize and download.
  6. Search the downloaded file for any secret you know about before sending it.

Example

One request in a capture

GET https://shop.example/api?token=abc123&q=hats
Authorization: Bearer eyJhbGciOi...
Cookie: session=9f2c
Response 200 application/json
{"access_token":"xyz","name":"Bob"}

After sanitizing with the default switches

GET https://shop.example/api?token=[REDACTED]&q=hats
Authorization: [REDACTED]
Cookie: [REDACTED]
Response 200 application/json
{"access_token":"[REDACTED]","name":"Bob"}

The page then reports how many cookie values,
auth headers, URL parameters and body values
were replaced.

Tips for best results

  • Record with the cache disabled and Preserve log on if you want to see everything a cold load costs.
  • Filter to one domain first; third-party scripts often hide the real cost in a long tail of small requests.
  • Read the wait phase as the server's think time and receive as the download. A long connect on many requests points to connections not being reused.
  • If the file is huge only because of response bodies, turn on Remove all response bodies when sanitizing; the result keeps every timing and header.
  • Sanitize first, then compare the size of the two files. A large drop tells you how much body text was in the original.

Limits

Redaction is pattern-based. A secret stored under an ordinary name such as data or payload, or inside a base64 body that is not text, is not recognised. Always search the sanitized file for your own tokens before sharing it.

A HAR saved without content has no response bodies, so the analyzer can still show timings and sizes but cannot show what the server returned.

Timings come from the browser. A request that was served from the cache, or one that was blocked by an extension, can show a time of zero or a status of 0 even though nothing failed on the network.

The total of the Transferred card adds each request's transferred size. Compressed responses and HTTP/2 header compression make it differ from the page weight a tool such as Lighthouse reports.

Common errors and how to fix them

"The JSON has no log.entries list"
The file is JSON but not a HAR. Export again from the Network tab, choosing the HAR option rather than copying the cURL command or the response.
"This is not valid JSON"
The file was truncated or edited. Browsers write HAR as one JSON document, so re-export it; if it came through email, check it was not cut off.
The file is larger than 300 MB
Capture a shorter session, filter the Network panel before saving, or export without response content and use that copy for the analysis.
"The sanitized file could not be built"
The browser ran out of memory while writing the copy. Turn on Remove all response bodies, or work from a smaller capture.

Best practices

  • Share the sanitized file, not the original, and keep the original only as long as you need it.
  • Rotate any token that was in a capture you sent before sanitizing, since it may already have been copied.
  • Name captures by date and scenario so a later reader can match them to a ticket.

What stays on your device

The file is read with the browser's own file API and parsed in this tab. The page makes no request containing any part of the capture, the analysis is computed locally, and the sanitized download is generated from memory. Closing or reloading the tab discards everything.

Because the whole capture is held in memory so that it can be sanitized, very large files need a machine with spare memory. If the tab slows down, load a smaller capture.

Frequently asked questions

Can it open HAR files from tools other than a browser?

It reads any file with the standard log.entries structure, including exports from Charles and Fiddler. Chrome-specific fields such as _transferSize and _resourceType are used only when present.

Will the sanitized file still open in Chrome DevTools?

Yes. It keeps the HAR structure and all timings; only the values of sensitive fields are replaced with [REDACTED], and optionally response bodies are removed.

Why are some requests marked with status 0?

A status of 0 means the file records no response: the request was blocked, cancelled, failed at the network level, or was an extension or mixed-content block. They are counted as failed.

Is Charles Proxy or HTTP Toolkit needed for this?

Not for reading a capture you already have. This page opens HAR files from browser developer tools; it does not record traffic or act as a proxy.