Skip to main content
Generating a HAR File

This article explains how you can generate a HAR file.

Cheyenne V. avatar
Written by Cheyenne V.
Updated yesterday

A HAR file is a text file that contains information about a web page's network requests. It can be used to troubleshoot performance issues, debug JavaScript, and analyze web traffic.

To create a HAR file, you can use the developer tools in your web browser. The steps for creating a HAR file vary depending on the browser you are using. Please see below for how to generate a HAR file:


Creating a HAR File in Google Chrome

  1. Open Google Chrome.

  2. Go to the web page you want to create a HAR file for.

  3. Right-click on the page and select "Inspect".

  4. In the developer tools that open, click on the "Network" tab.

  5. Make sure that the "Preserve log" checkbox is checked.

  6. Click on the "Start recording" button.

  7. Navigate to the web page that is causing the issue.

  8. Once you have reproduced the issue, click on the "Stop recording" button.

  9. Right-click on any of the requests in the list and select "Save all as HAR with content".

  10. Save the file to a location of your choice.


Creating a HAR File in Mozilla Firefox

  1. Open Mozilla Firefox.

  2. Go to the web page you want to create a HAR file for.

  3. Click on the "Tools" menu and select "Web Developer".

  4. In the Web Developer menu, select "Network".

  5. Make sure that the "Enable logging" checkbox is checked.

  6. Click on the "Start logging" button.

  7. Navigate to the web page that is causing the issue.

  8. Once you have reproduced the issue, click on the "Stop logging" button.

  9. Right-click on any of the requests in the list and select "Save all as HAR".

  10. Save the file to a location of your choice.


Creating a HAR File in Microsoft Edge

  1. Open Microsoft Edge.

  2. Go to the web page you want to create a HAR file for.

  3. Click on the three dots in the top right corner of the browser window and select "More tools".

  4. In the "More tools" menu, select "Developer tools".

  5. In the Developer tools that open, click on the "Network" tab.

  6. Make sure that the "Enable logging" checkbox is checked.

  7. Click on the "Start capturing" button.

  8. Navigate to the web page that is causing the issue.

  9. Once you have reproduced the issue, click on the "Stop capturing" button.

  10. Right-click on any of the requests in the list and select "Save all as HAR".

  11. Save the file to a location of your choice.

Once you have created a HAR file, you can open it in a text editor or a web analytics tool to view the information about the web page's network requests.


Creating a HAR File in Safari

  1. Open Safari.

  2. Go to the web page you want to create a HAR file for.

  3. Click on Settings

  4. Select Advanced

  5. Click Show Develop menu (afterward, close the window)

  6. Select Develop in the menu

  7. Select Show Web Inspector

  8. Select Network tab

  9. Within the Networks tab, select Preserve log option, by clicking on

  10. Refresh the page to replicate the error and allow Safari to record the browser-website interaction.

  11. Once the page is loaded, click on Export in the top right in the window of the Network tab.

  12. Select the Console tab and screen capture the errors


💡 Tip

Need more help? Feel free to reach out to us via Live Chat or check out our Customer Community.

Find answers and get help from Meltwater Support and Community Experts.


Did this answer your question?