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, request and response headers, cookies, payloads, response bodies and detailed timings. Support teams ask for HAR files because they show exactly what happened between the browser and the server, which makes slow pages, failed API calls, CORS errors and redirect loops much easier to diagnose.
Because the format is JSON, you could read it in a JSON viewer, but a typical HAR is thousands of lines. This HAR viewer turns it into a request table like the DevTools Network panel, so you can find the failing or slow request in seconds.
How to export a HAR file
- Chrome and Edge: open DevTools (F12) → Network tab → tick Preserve log → reproduce the problem → click the download arrow (Export HAR), or right-click any request → Save all as HAR with content.
- Firefox: DevTools → Network → reproduce the issue → gear icon → Save All As HAR.
- Safari: enable the Develop menu in Settings → Advanced, open Web Inspector → Network → Export.
Recent Chrome versions remove cookies and authorization headers from exported HAR files by default. Older versions and other browsers may not, so check before you share.
How to analyze a HAR file
- Open the file. The summary line shows the number of requests, the total transferred size and the total load time.
- Choose Errors in the status filter to list 4xx and 5xx responses and requests that never completed (status 0, often blocked by CORS, an ad blocker or a network failure).
- Sort by Time to find the slowest requests, then click one and open Timings to see whether the delay is DNS, connecting, TLS, waiting for the server (TTFB) or downloading.
- Check Headers for wrong
Content-Type, missingAccess-Control-Allow-Origin, caching headers and redirects (Location). - Open Payload and Response to see what the client sent and what the API returned. JSON bodies are pretty-printed.
Reading HAR timings
| Phase | What a high value means |
|---|---|
blocked | The request waited in the browser queue, usually because too many connections were open to one host. |
dns | Slow DNS resolution. Consider dns-prefetch or a faster resolver. |
connect / ssl | TCP and TLS handshakes. High on every request means connections are not being reused. |
send | Uploading the request body. Only large for big uploads. |
wait | Time to first byte: the server is slow to respond. Look at the backend or the database. |
receive | Downloading the response. Large files or a slow connection. |
Is it safe to share a HAR file?
Not as exported. A HAR can contain session cookies, Authorization bearer tokens, API keys in query strings, and personal data in request and response bodies. Anyone with your session cookie may be able to sign in as you. Before sending a HAR to a vendor or posting it in a ticket, use Download sanitized HAR. It removes Cookie, Set-Cookie, Authorization, Proxy-Authorization and API-key style headers, clears the cookie lists, masks query parameters whose names look like tokens, keys, passwords or signatures, and masks password and token fields in form and JSON request bodies. Response bodies are kept so the recipient can still debug. Remove them as well if they contain personal data.
The sanitizing runs in your browser. The original file is never uploaded anywhere, which is the point: a HAR file is the last thing you want to paste into an online tool that sends it to a server.
Frequently asked questions
How do I open a HAR file?
Drop the .har file onto this page or choose it with the file button. It opens as a request table with status, type, size, time and a waterfall. You can also import a HAR into Chrome DevTools by dragging it onto the Network panel.
What does status 0 mean in a HAR file?
Status 0 means the browser never received a response: the request was blocked by CORS, an extension or ad blocker, cancelled by navigation, or failed at the network level. Check the console for CORS errors and the timings to see where it stopped.
Does a HAR file contain passwords?
It can. HAR files may include session cookies, Authorization headers, API keys and form data such as passwords from login requests. Use Download sanitized HAR to remove cookies and auth headers and mask secret query parameters before sharing.
Why are response bodies empty in my HAR?
Bodies are only included when you export with content (in Chrome, Save all as HAR with content). Some browsers also omit bodies for binary resources, very large responses, or requests served from cache.
What is the HAR file format?
HAR is a JSON format with a top-level log object that holds version, creator, pages and entries. Each entry has request, response, cache and timings objects. Version 1.2 is the one every major browser exports.
Is my HAR file uploaded?
No. The file is read with the browser File API and parsed in JavaScript on your device. Nothing is sent to a server.