About
A recording, not a measurement
Last updated 24 November 2026
A HAR file is what one browser wrote down while a page loaded. It is a witness statement, not a speed test: precise about what happened on that connection, silent about everything else.
How the file is read
The file is JSON with a log object and an entries list. The page reads it with the browser's own parser. If the JSON is malformed, the reader names the line and the column, because the parser's own message says what went wrong but not where. If the file is valid JSON but not a HAR, or a version other than 1.1 or 1.2, the page says that and stops rather than guessing.
Each entry becomes one request: its method and URL, the host and path, the status, the resource type, the transfer size and the decoded size, its recorded start and its duration. When Chrome's _resourceType is present it is trusted; otherwise the MIME type and the file extension decide whether something is a document, a script, a stylesheet, an image, a font, an XHR, a fetch, media or wasm.
The arithmetic
A HAR timing has seven fields: blocked, dns, connect, ssl, send, wait and receive. The connect figure already includes the SSL handshake, so the page subtracts ssl from connect before it draws them as two separate pieces. A negative value means the browser did not record that phase; it is treated as zero, and the original value is shown as not recorded in the detail panel. If the entry's own time is larger than the sum of its phases, the entry's time wins and the bar is scaled to it.
The load span is the distance from the earliest request start to the latest request end, not the page's onLoad value. Both are shown: the span is what the file can prove, onLoad is what the page reported. The two often differ, and the difference is usually work that started after the load event.
Naming the suspect
For each of the five slowest requests, the page finds the phase that took the largest share. Waiting means the server was slow to send its first byte. Download means the body was heavy for the wire. DNS, TCP and TLS mean the first connection cost more than it should. Queue means the request waited behind others. That is a description of the recording, not a verdict on the cause: a slow database and a slow reverse proxy both look like waiting.
What the masking does
The export makes a deep copy of the file in memory and replaces values in four places. Header names on a fixed list, including Authorization, Proxy-Authorization, Cookie, Set-Cookie, X-Api-Key and a group of vendor token headers, lose their value while keeping the scheme where there is one. Cookie values are replaced and their names and attributes are kept. Query parameters and JSON or form fields named access_token, token, api_key, secret, password, signature, session and their neighbours lose their value, in the URL, the query list and the request body. JSON response bodies are walked with the same rule.
It is a safety net, not a guarantee. A secret in a header with a private name, or in a free-text field called note, will not be recognised. Read the masked copy before you post it somewhere public.
Where it stops
- It does not replay any request, so it cannot tell you what the server does today.
- It cannot see a cache that answered before the browser, or a network problem outside the recorded connection.
- It does not measure rendering, layout or JavaScript execution time, which a HAR does not contain.
- It reads the sizes the browser recorded. A missing transfer size is not the same as a zero one, though both can end up looking small.
- Masking follows names, not entropy. An unusual field name will pass through.
Who made it
Pikkola Lab builds small tools that keep the work in the browser. This is tool No. 68. Write to hello@pikkola.com with a recording that reads badly, and say which row looks wrong.