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

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
Open the Chrome menu (⋮ in the top-right) and go to More Tools > Developer Tools, or use the shortcut:
macOS:
Shift + ⌘ + CWindows/Linux:
Shift + Ctrl + C
Navigate to the Network tab.
Check Preserve Log and Disable cache.
Reload the page to capture the activity.
Click the Export HAR icon (⬇️) to save the HAR file.

Safari
Enable the Develop menu: Go to Safari > Settings > Advanced and check “Show Develop menu in menu bar.”
Visit the webpage you want to inspect.
Click Develop > Show Web Inspector.
Go to the Network tab and reload the page.
Click Export in the top-right corner to download the HAR file.

Firefox
Open the developer console:
Click the menu (☰) > More Tools > Browser Console, or use:
macOS:
Option + ⌘ + EWindows/Linux:
Shift + Ctrl + C
Go to the Network tab and reload the page.
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:
Open the Requestly Desktop App and connect the app you want to inspect.
Requestly automatically begins capturing traffic.
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.
Frequently Asked Questions
What is a HAR file used for?
It helps diagnose network issues like slow requests, failed resources, redirects, and performance bottlenecks.
How do I generate a HAR file in Chrome?
Open DevTools, go to Network, enable Preserve Log and Disable cache, reload the page, and export the HAR.
How do I generate a HAR file in Safari?
Enable the Develop menu, open Web Inspector, go to Network, reload the page, and export the HAR.
How do I generate a HAR file in Firefox?
Open DevTools, switch to the Network tab, reload the page, then choose Save All As HAR from the settings.
Do HAR files include sensitive information?
Yes. They may contain cookies, tokens, request bodies, and browsing details. Always scrub or share carefully.
Can I generate HAR files without browser DevTools?
Yes. Tools like Requestly capture traffic automatically and let you export HAR files in one click.
Why is Preserve Log important when capturing HAR?
It keeps network history even after redirects or navigation, ensuring complete capture.
Does disabling cache affect the HAR file?
Yes. It forces the browser to fetch fresh resources so the HAR reflects actual network activity.
Contents
- Google Chrome
- Safari
- Firefox
- Generating HAR file using Requestly
- Frequently Asked Questions
- What is a HAR file used for?
- How do I generate a HAR file in Chrome?
- How do I generate a HAR file in Safari?
- How do I generate a HAR file in Firefox?
- Do HAR files include sensitive information?
- Can I generate HAR files without browser DevTools?
- Why is Preserve Log important when capturing HAR?
- Does disabling cache affect the HAR file?
Subscribe for latest updates
Share this article
Related posts











