How to generate a HAR file?

How to generate a HAR file?

HTTP Archive (HAR) stores all web requests made by the browser, including:
  1. The request and response headers and bodies.
  2. Connection, response, and download times.
  3. Failed requests or network errors. 
HAR files help troubleshoot issues related to speed, caching, performance analysis, and security assessments. Please follow the steps below to generate a HAR file based on your browser.

Prerequisite: Be on the page where you encountered the issue.

For Google Chrome

  1. Right-click the page > Inspect or you can press the following shortcut keys:
    1. F12 or Ctrl+Shift+I for Windows and Linux OS.
    2. Cmd+Option+I for macOS.


  2. Navigate to the Network tab, enable Preserve Log to retain logs across page navigations and redirections, and click the record  button. Refresh the page and repeat the action that caused trouble to capture the issue as output.




  3. Right-click any of the files listed and click Save all as HAR with content


For Firefox

  1. Press the following shortcut keys:
    1. F12 or Ctrl+Shift+E for Windows and Linux OS.
    2. Cmd+Option+E for macOS.
  2. Navigate to Network tab, click  icon, and select Persist Logs to retain logs across page navigations and redirections.


  3. Reload the page and redo the action that initially caused trouble. Right-click any of the files listed and click Save All As HAR


For Microsoft Edge

  1. Right-click the page > Inspect or press the following shortcut heys:
    1. F12 or Ctrl+Shift+I for Windows and Linux OS.
    2. Cmd+Option+I for macOS.
  2. Navigate to Network tab, enable Preserve Logs, and refresh the page and once again perform the action to record the issue as output. 
  3. Click the down arrow icon  or right-click in the network log and select Save all as HAR with content


For Safari

  1. Check if you have the Develop menu listed in the menu bar. If not, go to Safari > Settings > Advanced > Show features for web developers
  2. Go to Develop > Show Web Inspector or press Cmd+Option+I.
  3. Right-click the page > Inspect > Network tab.
  4. Reload the page and repeat the action to record the issue.
  5. Click the Export tab.


Once the HAR files are exported, save them in the desired location. These files can be used to analyze and troubleshoot the issue.