Export and Analyze HAR Files
You'll learn how to export browser network activity as HAR files for documentation, collaboration, and deeper investigation.
What is a HAR File?
A HAR (HTTP Archive) file is a standardized JSON format that captures every detail of your browser's network activity: requests, responses, headers, timings, content, and more. Think of it as a complete transcript of everything that happened between your browser and servers during a recording session.
Why Export HAR Files?
When troubleshooting performance issues or reporting bugs, screenshots aren't enough. A HAR file lets you:
- Share reproducible data with colleagues or support teams
- Analyze offline using specialized tools
- Archive network behavior for compliance or auditing
- Compare different sessions side-by-side
How to Export from DevTools
In the Network panel (which you've been using to inspect requests and track third-party resources):
- Perform the actions you want to capture
- Right-click anywhere in the request list
- Select "Save all as HAR with content" (or "Export HAR")
- Save the
.harfile to your computer
The exported file captures everything: request URLs, headers, cookies, timings, response bodies, and even cached resources.
Analyzing HAR Files
You can:
- Re-import into DevTools by dragging the file onto the Network panel
- Use online analyzers like Google's HAR Analyzer or WebPageTest
- Parse programmatically since it's JSON (useful for automated testing)
- Share with vendors or CDN providers when diagnosing external service issues
HAR files are powerful for pinpointing exactly when and why a resource took 5 seconds versus 500ms, especially when the issue isn't immediately visible in live debugging.
Key Takeaway: HAR files export complete network activity as portable JSON archives, enabling offline analysis, collaboration, and detailed performance investigations beyond real-time DevTools inspection.