🎉 Requestly joins BrowserStack to build the future of application testing. Read more

How to generate HAR files in Chrome, Firefox & Safari?

Sagar Soni
Learn how to create HAR files using popular browsers (Chrome, Firefox, Safari) and Requestly for comprehensive website analysis.

HAR, short for HTTP Archive, is a format for tracking information between web browsers and websites. A HAR file can identify performance issues, such as bottlenecks, slow load times, and page rendering problems.

HAR exporting is available in most modern web browsers. In this blog, we’ll explain how to generate a HAR file in popular browsers for debugging website issues.

Google Chrome

  1. Open the Chrome menu (⋮ in the top-right) and go to More Tools > Developer Tools, or use the shortcut:

    • macOS: Shift + ⌘ + C

    • Windows/Linux: Shift + Ctrl + C

  2. Navigate to the Network tab.

  3. Check Preserve Log and Disable cache.

  4. Reload the page to capture the activity.

  5. Click the Export HAR icon (⬇️) to save the HAR file.

    Safari

    1. Enable the Develop menu: Go to Safari > Settings > Advanced and check “Show Develop menu in menu bar.”

    2. Visit the webpage you want to inspect.

    3. Click Develop > Show Web Inspector.

    4. Go to the Network tab and reload the page.

    5. Click Export in the top-right corner to download the HAR file.

      Firefox

      1. Open the developer console:

        • Click the menu (☰) > More Tools > Browser Console, or use:

          • macOS: Option + ⌘ + E

          • Windows/Linux: Shift + Ctrl + C

      2. Go to the Network tab and reload the page.

      3. Click the settings icon (⚙️) and choose Save All As HAR.

        Generating HAR file using Requestly

        If you prefer a faster, more user-friendly way to inspect network traffic, Requestly’s Traffic Inspector lets you generate HAR files with a single click.

        Steps:

        1. Open the Requestly Desktop App and connect the app you want to inspect.

        2. Requestly automatically begins capturing traffic.

        3. Click Download HAR to export the session.

        Bonus:

        • You can also save sessions in Requestly.

        • All saved sessions are accessible under the Sessions tab in the left menu.

        • Use them for offline debugging, sharing with teammates, or replaying traffic.

        Written by
        Sagar Soni
        Sagar is the co-founder and CTO of Requestly. When he’s not busy architecting the next big thing in software development, you’ll likely find him behind the wheel, cruising the streets and enjoying the thrill of the drive. For Sagar, it’s all about the code by day and the open road by night.

        Related posts