Blog · Engineering
What is a HAR file and How it is structured
The information about network requests made by the client and server inside the browser is contained in HAR files, also known as HTTP Archive files. These files are formatted in JSON and are mostly used to analyze issues with request and response performance, sluggish API calls, page rendering, or load times.
HAR file details
HAR file format uses a JSON structure and to visualize its contents you can use tools like HAR Viewer or network viewer.
To analyze the performance of a site, you can export the HAR file by following the steps below.
-
First, open the Network tab in Chrome DevTools.
a] Open Google Chrome Browser
b] At the top right corner click on Three Dots > More Tools > Developer Tools > Network Tab
- After opening the network tab, you can see the small export icon (⬇️) which can be used to export the HAR file.
- To capture site loading content, make sure network log recording is enabled, and then refresh or reload the page whose network requests you want to analyze. The red circle icon (🔴) indicates that network log recording is on.
- That’s all — now you can export the HAR file to analyze it.
How to export HAR with sensitive data
Chrome sanitizes HAR exports by default, so cookies, Set-Cookie, and Authorization headers may be excluded. If you need the full session data for debugging, enable the sensitive data option before exporting.
-
Open Chrome DevTools and go to Settings.
-
In Preferences, scroll to the Network section.
-
Enable Allow to generate HAR with sensitive data.
-
Go back to the Network tab and reload the page so the requests are captured again.
-
Export the HAR file using the download/export icon. Chrome will now include the sensitive request data in the HAR export.
Warning: Only export HAR files with sensitive data when it is necessary, and share them carefully because they can contain cookies, auth tokens, and private user information.
Published blog cards
Browse other published topics from the blog library.
Debugging Production With Two HAR Files: Working vs Broken
It works for you and fails for one customer. Capture a HAR from each, diff them, and the cause is usually obvious within minutes. A practical method.
Read blog → AI AgentsGive Your AI Agent an API Instead of a Browser: HAR to MCP Server in 10 Minutes
Browser automation makes agents read pages like humans — slow, expensive, and brittle. Here is how to turn a HAR file into an MCP server your Claude Code agent calls directly.
Read blog → EngineeringHow to Reverse-Engineer a Web App's Auth Flow: Cookies, JWTs, Refresh Tokens, and PKCE
Most guides to finding a site's private API stop at the Network tab. The hard part is auth. Here is how to read a token exchange out of a HAR file and reproduce it.
Read blog →