What a HAR file is and why you might need to open one
A HAR file is a record of everything your web browser sent and received during a browsing session. HAR stands for HTTP Archive. It captures the requests your browser made, the responses it got back, the time each took, and the headers and content involved — but it is stored as plain text in a format called JSON.
You might need to open one because a website support team asked you to record your browsing activity and send it to them for troubleshooting, or because you are investigating why a page loads slowly or fails. A HAR file shows exactly what happened during that session, which helps identify whether the problem is on your end, the website's end, or somewhere in between.
The file itself is not an executable program — it will not run anything. It is just data. You can open it in any text editor, but the data inside is dense and hard to read as raw text. The easiest way to look at it is to use a dedicated HAR viewer, which organizes the information into readable tables and timelines.
Key Takeaways
- A HAR file is a text record of web browser activity that you can open in any text editor, but a dedicated viewer makes it much easier to read.
- The fastest option is to drag and drop your HAR file into a web-based viewer like HAR Viewer or Waterfall, which requires no installation.
- If you want to keep the file private and not upload it to a website, you can open it in a text editor like Notepad, VS Code, or Sublime Text.
- Some browser developer tools can also import and display HAR files, letting you see the data in the same interface you use for live debugging.
Using a web-based HAR viewer (fastest method)
The quickest way to open and read a HAR file is to use a free online viewer. These tools let you upload or paste your HAR file and see the data organized into readable tables showing each request, response time, file size, and status code.
Go to harviewer.com or toolbox.googleapps.com/apps/har_analyzer/ in your browser. On HAR Viewer, click the upload button or drag your HAR file directly into the page. The tool will display a timeline of all requests, sorted by type (images, scripts, stylesheets, API calls, and so on). You can click any request to see its full headers, cookies, and response body.
The Google HAR Analyzer works the same way — upload or paste the file contents, and it shows you a summary of load times, file sizes, and any errors. Both tools run entirely in your browser and do not store your file on their servers after you close the page, though if privacy is a concern, check the tool's privacy statement first.
Opening a HAR file in a text editor
If you prefer not to upload your file to any website, you can open the HAR file directly in a text editor on your computer. Since a HAR file is plain JSON text, any text editor will work.
On Windows, right-click the HAR file, select "Open with", and choose Notepad. On Mac, right-click (or Control-click) the file, select "Open With", and choose TextEdit. On Linux, right-click and select "Open With" and pick your default text editor, or open a terminal and type cat filename.har to view it in the terminal itself.
For a better experience, use a code editor like Visual Studio Code (free, all platforms), Sublime Text (free trial, all platforms), or Notepad++ (free, Windows only). These editors format JSON with color-coding and indentation, making it much easier to scan through the data. Download and install one, then right-click your HAR file, select "Open With", and choose the editor.
The downside of reading a HAR file in a text editor is that the data is still dense — you will see raw JSON with nested objects and arrays. A dedicated viewer organizes this into tables and timelines, which is why most people find that easier to work with.
Importing a HAR file into browser developer tools
If you are already familiar with your browser's developer tools, you can import a HAR file directly into them. This lets you see the network activity in the same interface you use for live debugging.
Chrome and Edge: Open Developer Tools (F12 or Ctrl+Shift+I on Windows, Cmd+Option+I on Mac). Go to the Network tab. Right-click anywhere in the Network panel and select "Save all as HAR with content" to export, or look for an import option (this varies by version). Some versions do not have a direct import button, so you may need to use a viewer instead.
Firefox: Open Developer Tools (F12). Go to the Network tab. Right-click in the Network panel and select "Save All As HAR". Firefox does not have a built-in import feature, so you will need to use a web-based viewer or text editor to read a HAR file someone else sent you.
Safari: Open Develop menu (enable it in Preferences > Advanced if you do not see it). Go to Show Web Inspector. Click the Network tab. Safari can export HAR files but does not have a native import feature either.
What to look for inside a HAR file
Once you have opened the file in a viewer or editor, you will see a list of requests. Each request shows the URL that was requested, the HTTP method (usually GET or POST), the response status code (200 means success, 404 means not found, 500 means server error), and how long the request took.
If a website is loading slowly, look for requests that took a long time — the viewer will usually sort by duration. If a page is failing to load, look for requests with status codes in the 400s or 500s, which indicate client or server errors. If you see a 403 or 401, the request was blocked due to permissions. A 404 means a file the page tried to load does not exist on the server.
You can also see the size of each file downloaded. If one image or script is unusually large, that might explain slow loading. The viewer will usually show you a waterfall chart, which displays all requests as a timeline — this makes it easy to see which requests happened in parallel and which ones blocked others from starting.
Sharing a HAR file with support safely
Before you send a HAR file to a website's support team, understand that it contains sensitive information. It includes cookies (which can be used to hijack your session), authentication tokens, API keys if you were logged in, and the full content of pages you visited. Never post a HAR file publicly or send it to someone you do not trust.
If a support team asks for a HAR file, ask them for a secure way to send it — many companies have a secure upload portal or can give you a temporary email address for sensitive files. If you are posting in a public forum, redact the file first by opening it in a text editor and removing or replacing sensitive values like session cookies, API keys, and personal information before you save it.
Some HAR viewers have a "redact" or "sanitize" feature that automatically removes sensitive headers and cookies. Check whether the viewer you are using offers this before uploading.
Frequently Asked Questions
Can I open a HAR file on my phone?
Yes, but it is awkward. You can email the file to yourself, download it on your phone, and open it in a text editor app. For a better experience, use a web-based HAR viewer in your phone's browser and upload the file there. Most viewers work on mobile, though the interface may be cramped on a small screen.
What if the HAR file is too large to open?
Very long browsing sessions can create HAR files that are tens of megabytes in size. If your text editor freezes or crashes, try a code editor like VS Code, which handles large files better. Alternatively, use a web-based viewer, which can often handle larger files. If the file is still too large, you can open it in a terminal and use commands like head or tail to view just the beginning or end.
Does opening a HAR file run any code or install anything?
No. A HAR file is plain text data. Opening it in a text editor or viewer will not execute anything or change your computer. It is safe to open.
Can I edit a HAR file and save the changes?
Yes, you can edit it in a text editor and save it, but you need to be careful about the JSON format. If you add or remove a comma or bracket incorrectly, the file will no longer be valid JSON and viewers will reject it. Unless you know what you are doing, it is safer to view the file as-is rather than edit it.
What is the difference between a HAR file and a network log?
A HAR file is a standardized format that any tool can read. A network log is a generic term for any record of network activity. Some browsers export their network logs as HAR files, while others use their own format. HAR is the most portable option because it works across browsers and tools.