How to generate a HAR file in Firefox

A HAR file (HTTP Archive) is a file format that records the interactions between your web browser and a website. It captures detailed information such as each network request and response. HAR files are often requested by developers and support teams to diagnose bugs and other issues.

Typically, you will be asked to generate a HAR while reproducing a bug. This means starting a recording and then repeating the same steps that are known to cause an issue. All mainstream browsers are capable of recording HAR files.

Wrong browser?

Instructions

  1. Get ready to start recording the HAR file

    Go to the page or location where you want the recording to start.

  2. Press Ctl+Shift+E to open the Network panel of the Developer Tools

    You can also press F12 and look for the Network panel. If this is your first time opening the tools, then a panel will appear on the bottom side of the browser window. Otherwise, it will open in the last location you docked the panel.

  3. Ensure the recording has started

    Look at the row under the Network button. Next to the Filter URLs box you will see a pause or play symbol. This button toggles recording, and by default recording should have started (with pause button visible). You can click this button to stop recording if you want to restart at a different location.

  4. Reproduce the issue while keeping the tools panel open

    Fully reproduce your issue from start to end. You want to ensure all network events are captured.

  5. Right-click any row of the panel and click Save All As HAR

  6. Save the HAR file on your computer

    The standard dialog box will appear for you to select a location and filename of the HAR file. Save it to a location you will remember.

  7. Close the tools panel

    You can press F12 again, or click the X button in the upper-right corner of the tools panel.

Reference

License

Feel free to remix this content for your website.

Licensed under CC BY 4.0

Leave a Reply