A HAR (HTTP Archive) file is a JSON-formatted log of all network requests a browser makes to load a webpage. It records complete request and response data, timing details, headers, cookies, and payloads, which makes it useful for debugging and risky to share before scrubbing credentials.
Need to inspect or scrub a
.harfile right now? Drop it into our free, 100% client-side HAR File Sanitizer & Viewer — it never uploads your file and automatically strips cookies, bearer tokens, and auth headers before you share it.
That's usually the point where someone opens DevTools only after the bug has happened, grabs a screenshot, and sends a message like “the page is slow” or “checkout is broken.” That report rarely has enough context to resolve anything. The useful part isn't the complaint. It's the network trace that shows what the browser did, in order, with timings and failures attached.
The practical answer to what is an HAR is simple. It's the browser's exportable record of a page session. When a deployed app behaves differently for a reviewer than it does locally, a HAR file is often the fastest way to pin down whether the problem lives in the network layer, the server response, caching, redirects, or a broken client request.
What a HAR File Is For
A HAR file exists because vague bug reports waste time.
“The page is slow” could mean a backend route is stalling, a third-party script is hanging, an image is oversized, or a redirect chain is dragging down first render. “The button is broken” could mean the click never sent a request, the request failed, or the browser got a response the UI didn't handle. Without the network trace, the team is guessing.
The HAR format gives the missing context. It's a JSON-formatted archive standard built to log a browser's full interaction with a website, using the .har file extension. The format came from the W3C Web Performance Working Group and was designed so browsers could export HTTP transaction data including headers, cookies, responses, and request timing. The original spec was abandoned before final publication, but HAR still became the de facto utility for troubleshooting slow load times, rendering issues, and request failures across major browsers like Chrome, Firefox, Safari, and Edge, as described in Wikipedia's HAR file format overview).
When a HAR file is the right tool
A HAR file is useful when the issue depends on real browser behavior, not just app code.
- Performance complaints: A reviewer says a deployed page feels slow.
- Intermittent bugs: A request fails only for certain users, cookies, or cache states.
- Asset loading problems: CSS, fonts, or scripts don't arrive when expected.
- API confusion: The frontend sends one thing, the backend returns another.
Practical rule: If the bug involves loading, fetching, redirecting, caching, or timing, a HAR file usually belongs in the debugging process.
What it gives that screenshots don't
A screenshot captures appearance. A HAR captures sequence.
That distinction matters. The browser can export the exact order of requests, the transfer durations, and the response details for each resource. Because major browsers support HAR export directly in DevTools, it's a standard way to reconstruct what happened during a page session without adding extensions or custom logging. For mid-level devs, that's the main value. A HAR file turns a fuzzy complaint into something a developer can resolve.
The Structure of a HAR File
A slow page report lands in Slack. The screenshot looks normal, the console is clean, and the bug only appears for one client account. At that point, the HAR file stops being an abstract export and becomes the record of what the browser did.

HAR is plain JSON with a predictable hierarchy. The top-level object is usually log, and inside it the fields that matter first are creator, browser, pages, and entries.
| Field | What it holds | Why it matters |
|---|---|---|
log |
The root container | Everything useful sits under it |
creator |
Tool that generated the file | Explains browser or DevTools quirks |
pages |
Loaded page records | Helps when one capture includes multiple navigations |
entries |
Individual HTTP transactions | Most debugging work happens here |
pages gives session context. entries gives evidence.
Each object in entries represents a single request and response cycle. That is the unit that matters during diagnosis. If the complaint is "checkout hangs after submit," the useful work is finding the exact POST, matching it to the response, and checking what happened before and after it.
The fields worth scanning first are usually:
request. Method, URL, headers, cookies, query params, and sometimes the request body.response. Status code, headers, redirect target, and content metadata.timings. How long each network phase took.startedDateTime. When the request began relative to the rest of the session.
This structure is also why raw HAR sharing creates risk. request and response objects often contain session cookies, bearer tokens, internal endpoints, personal data in query strings, and form payloads that were never meant to leave the browser session. Teams often treat HAR as a harmless debug artifact because it is "just JSON." It is often closer to a full transaction log.
Header inspection matters here for the same reason it matters in HTTP clients and scraping workflows. Differences in auth headers, origin, referer, or cache directives often explain why one browser session fails and another works. If you want a practical refresher on how header behavior affects requests, Python requests headers for scraping is a useful comparison point.
For teams that regularly collect bug reports from clients or stakeholders, structure matters operationally too. The more you rely on raw HAR exports, the more often you need to review captures for secrets before anyone shares them. A context-aware feedback workflow, like the one described in this guide to contextual website feedback for review teams, reduces that exposure because it captures intent and page context without handing around a full network log.
A good rule is simple. Read entries as a sequence of browser decisions tied to a user action, and treat the file itself as sensitive data until it has been reviewed or sanitized.
How to Generate a HAR File
Generating a HAR file is straightforward, but timing matters. If recording starts after the page has already loaded, the capture misses redirects, early requests, and initial failures.

Chrome and Edge
Use this sequence:
- Open DevTools with
F12orCtrl+Shift+Ion Windows, or the equivalent shortcut on macOS. - Go to the
Networktab. - Make sure recording is active.
- Enable log preservation if the issue involves redirects or navigation.
- Start from a clean state if needed by clearing existing requests.
- Reload the page or reproduce the bug.
- Right-click in the request list and choose
Save all as HAR with content.
The critical step is starting before navigation. If a reviewer loads the page first and records second, the capture often loses the request that caused the problem.
How to export a HAR file in Firefox
- Open the page where the bug occurs and press
Cmd+Option+E(Mac) orCtrl+Shift+E(Windows/Linux) to open Firefox Network Monitor. - Click the gear icon in the top-right corner of the Network panel and enable Persist Logs so redirects stay in the capture.
- Reproduce the issue from start to finish.
- Click the gear icon again and select Save All As HAR to download the
.harfile.
Safari
Enable the Develop menu in Safari settings if it is not visible, open Web Inspector (Cmd+Option+I), switch to the Network tab, reproduce the issue, and export the network log as a HAR file.
A few habits reduce bad captures:
- Keep reproduction narrow: Don't record ten unrelated tabs and then ask someone else to sort it out.
- Reproduce once cleanly: Extra reloads clutter the waterfall.
- Name the file clearly: Include route or bug context in the filename.
- Capture the failing flow: Login, form submit, checkout step, or asset load. Whatever breaks.
Record first. Navigate second. That single habit avoids a lot of dead-end HAR files.
For teams that need a cleaner reviewer flow than “open DevTools and export a file,” PinDrop's guide for deployed website feedback is worth reviewing. It shows a lighter way to collect anchored feedback on live pages when the person reporting the issue isn't a developer.
What to Look For When Analyzing a HAR File
A bug report says "checkout hangs after I click Pay." The HAR matters only if it helps isolate that exact failure. Start with the request sequence around the user action, then narrow to the request that changed state, failed, or stalled long enough to match the symptom.

Read the waterfall first
The waterfall gives the fastest read on what kind of problem you have. It shows request order, overlap, queueing, redirects, and whether the browser spent time waiting on the network or on the server.
A few patterns show up often:
- A blocking script near the top of the page that delays rendering or later requests.
- Redirect chains before the main document or API call settles on the final URL.
- One oversized asset that dominates transfer time.
- 4xx or 5xx responses tied directly to the reported action.
- Repeat requests that still download everything even though caching should have reduced the cost.
If you want a second reference focused on how to analyze web performance bottlenecks, that walkthrough stays close to real waterfall review instead of abstract format details.
Map timing phases to likely causes
The timing fields are where HAR analysis becomes useful. You do not need every field memorized. You need a working interpretation of what the slow phase usually means.
| Timing phase | If it dominates | Likely direction to inspect |
|---|---|---|
dnsLookup |
Host resolution delay | DNS records, hostname choice, resolver behavior |
connect |
Slow connection setup | TLS handshake, new connection cost, proxy behavior |
send |
Slow request upload | Large payload, slow client upload, request body issues |
wait |
High TTFB | Server processing, app logic, database calls, upstream APIs |
receive |
Slow response download | Large response body, compression gaps, bandwidth limits |
Use the largest phase to decide who should investigate first. A request with high wait time usually points to server work. A request with high receive time often means the response is too large, poorly compressed, or both.
That ownership split matters. Frontend changes will not fix a slow query or an overloaded third-party API.
A slow request is only the start. The useful question is which phase owns the delay.
Validate the request, not just the status code
A 200 can still represent a broken flow. APIs return error objects inside successful HTTP responses. HTML routes can return the wrong page after a redirect. Cached responses can mask a deployment issue that only appears on a cold session.
Check the request and response as a pair:
- Find the triggering request: tie it to the click, submit, route change, or asset load that reproduced the bug.
- Inspect response content and headers: confirm the payload shape, content type, cache behavior, and redirect target.
- Compare adjacent requests: a failed preflight, CSRF mismatch, or blocked script often explains why the "main" request looks fine.
- Review initiators if available: they help separate the root request from the fallout.
Look for security and privacy signals while you debug
Teams often treat HAR analysis as a pure performance task and miss the security angle sitting in the same file. Raw entries can expose auth headers, cookies, session identifiers, query parameters, form input, internal endpoints, and third-party calls the reporter never meant to share.
That changes how the file should be reviewed. If the issue can be explained from timing, status, and request metadata, avoid passing around a full export with bodies included. For agencies and client teams, a privacy-first website feedback workflow reduces how much session data gets copied into tickets and shared across inboxes.
A HAR is still one of the best tools for diagnosing web bugs. It just needs disciplined reading. Start with the action, isolate the request, map the slow phase, verify the response, and treat the file itself as sensitive data while you work.
Sharing HAR Files and the Security Risks
A client reports a checkout bug, exports a HAR, and drops it into a shared ticket. The bug report is useful. The file can also carry session cookies, auth headers, form fields, query strings, internal endpoints, and third-party request data that nobody meant to distribute.
That risk gets ignored because teams treat HAR files as routine debugging artifacts. In practice, a raw HAR is closer to a session recording at the network layer. If the capture includes request and response bodies, it may expose login state, personal data, API behavior, and tokens that still work.
What gets exposed
The problem is not the format itself. The problem is how casually teams share it.
A raw export can include:
- Authentication material: cookies, bearer tokens, CSRF tokens, and signed headers
- User-submitted data: search queries, form inputs, email addresses, and account details
- Internal application details: private API routes, staging hosts, feature flags, and service responses
- Third-party traffic: analytics calls, payment requests, support widgets, and ad-tech endpoints
Some vendor articles on HAR files focus heavily on troubleshooting and barely address the privacy impact of passing full captures around. Keysight's guide to HAR files describes the format and its debugging use, but that is only half the operational story. For support teams, agencies, and client-facing dev shops, the harder problem is deciding when a HAR should not be shared in raw form.
That is the practical answer to what is an HAR. It is a useful debug artifact, and it is also a bundle of request-level data with real exposure risk.
Why raw sharing is a bad habit
The usual failure mode is simple. Someone needs help fast, exports everything, and sends the file to a vendor, account manager, freelancer, or group inbox.
At that point, access control gets sloppy. The recipient may only need the failing request, timing data, and a screenshot of the UI state. Instead, they get a full session archive.
Raw sharing creates predictable problems:
- Reviewers send more than the issue requires: full captures include unrelated requests from the same session
- Sanitization is inconsistent: bodies and headers are left intact because nobody has time to inspect every entry
- Distribution spreads quickly: ticket attachments, forwarded emails, and chat uploads create copies that are hard to track
- Retention is unclear: the HAR stays in help desks, shared drives, and inboxes long after the bug is fixed
Treat a HAR like sensitive session data. That standard is stricter than many teams use, but it matches what the file often contains.
For client review and routine website feedback, asking non-technical users to open DevTools and export a network archive is usually the wrong workflow. A privacy-first website feedback workflow keeps the report tied to page context instead of pushing raw browser session data through tickets and email.
Frequently asked questions about HAR files
What is the .har file extension?
.har stands for HTTP Archive, a standard JSON-based log format web browsers use to export recorded HTTP requests, response headers, status codes, and load timings.
Do HAR files contain sensitive information?
Yes. A raw HTTP Archive file records request and response headers and payloads, which frequently include session cookies, bearer tokens, passwords submitted in forms, and private API responses. Always sanitize a .har file or strip authentication headers before sharing it outside a trusted security channel.
How do you open a .har file?
Drag the file directly into Chrome or Firefox DevTools under the Network tab to inspect the waterfall, or open it in any code editor to read the raw JSON. For a full walkthrough of viewers and common pitfalls, read our guide on how to open a HAR file.
A Better Workflow for Contextual Feedback
HAR files are still useful. They're just a poor default for routine feedback.
Most reviewers aren't trying to debug a timing phase. They're trying to say “this text is wrong,” “the modal doesn't close,” or “fix pin 4 on the pricing page.” For that kind of work, a full network archive is too much artifact and too little focus.

What reviewers actually need to send
A useful feedback workflow captures the exact spot, the route, and enough context for the developer or agent to reproduce the issue. It doesn't need to bundle every request the browser made during the session.
That's why anchored pins are a better fit for many deployed review cycles:
- Pin on the exact element: The feedback stays attached to the UI instead of floating in a screenshot doc.
- Capture page context: Route, DOM state, and target element matter more than raw request logs for most frontend feedback.
- Keep reviewer steps minimal: No DevTools, no file export, no guessing which artifact to attach.
What helps teams ship faster
The strongest workflow is the one that survives handoff.
When feedback is anchored to a deployed page, a teammate or coding agent can triage it, resolve the right item, reply in context, and close the loop without interpreting a blob of browser telemetry. That's especially useful in indie, solo, and agency work where the reviewer just wants a link, a pin, and a clear path to shipped fixes.
For teams working on preview URLs and staging reviews, feedback on Vercel preview deployments shows what that looks like in practice. The important part isn't the host. It's the shift in workflow. Context stays attached to the UI, not buried in an archive.
PinDrop keeps feedback anchored to the exact spot on any deployed page, so reviewers can leave a pin, developers can resolve it with full context, and teams can ship without asking clients to export raw HAR files. It works with live links, captures the page state that matters, and fits neatly into editor-driven workflows with agents and MCP clients. Try PinDrop if the current process still relies on screenshots, email threads, or risky file attachments.

