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.
Understanding Continuous Integration and Continuous Delivery (CI/CD)
A practical guide to CI/CD workflows, automation, and reliable software delivery.
Read blog → DevelopmentDeno vs Node - a side by side comparison
Compare runtime models, developer experience, and tradeoffs across Deno and Node.
Read blog → DataDeep Dive Into ClickHouse
Explore how ClickHouse works, where it shines, and what teams should know before adopting it.
Read blog →