What is a HAR file, and what to strip before you send one
A HAR file records every request your browser made, cookies and tokens included. See a real one, how to capture it, and what to remove before you share it.
Felipe Lira
in short
A HAR file is a JSON log of every network request a browser made while DevTools was recording: URLs, headers, cookies, request bodies, response bodies, and timings. It can carry live session tokens, so strip cookies, auth headers, query strings, and bodies before you send one. Debugging usually needs only the method, URL, status, and timing.
on this page
A HAR file is a JSON log of every network request your browser made while its developer tools were recording, with each URL, header, cookie, request body, response body, and timing. Support teams ask for one because it shows exactly what failed. It can also contain live session tokens, so read it and strip it before you send it.
Below is a real HAR file we captured from our own sites, what each part holds, how to capture one in Chrome, Edge, and Firefox, what to remove first, and the short list of fields that debugging actually needs.
What is a HAR file?
HAR stands for HTTP Archive. It is a JSON file with one top-level log object, which holds the browser name, the pages visited, and an entries array with one entry per request. The field names come from the HAR 1.2 draft specification. That W3C draft was never published and is marked as abandoned, but Chrome, Edge, and Firefox still export the format.
Each entry pairs a request (method, URL, headers, cookies, query string, posted data) with a response (status, headers, cookies, and the body in content.text), plus timings that split the request into blocked, DNS, connect, SSL, send, wait, and receive.
What is inside a real HAR file
On 11 November 2026 we recorded two HAR files from our own sites with Playwright's HAR recorder in Chromium, with response content embedded. The first covers our home page and pricing page on gethinto.com. The second covers the sign-in page of our app while signed out. No customer data is in either one.

The marketing pages set no cookies at all. The sign-in page was different. Before anyone signed in, 44 of its 162 requests carried a Cookie header, and one response from our sign-in provider set five cookies. One of them is HttpOnly and expires in ten years. Anyone holding that file holds those values.
That is a signed-out visit. Record a HAR file while signed in and the same fields hold your session cookie, or a bearer token in an Authorization header if the app uses one.
Why HAR files get so big
Most of a HAR file is response bodies. Scripts, stylesheets, fonts, images, and API responses are all copied into the file, and binary files such as fonts and images are stored as base64 text.

The two-page capture from gethinto.com has 90 requests and weighs 2.5 MB, and 85% of that is response bodies. The sign-in capture has 162 requests and weighs 5.6 MB, and 91% of it is response bodies. The method, URL without its query string, status, and duration of every request come to about 5 KB and 11 KB, about 0.2% of each file.
How to capture a HAR file in Chrome, Edge, and Firefox
Open the developer tools before you reproduce the problem. Requests that happened before the Network panel was open are not in the file.
Chrome and Edge
- Open DevTools (F12, or Cmd+Option+I on a Mac) and select the Network panel.
- Check Preserve log, so a redirect or reload does not clear the list.
- Reproduce the problem, then stop.
- Click Export HAR (sanitized) in the Network panel's action bar, or right-click a request and choose Copy, then Save all as HAR (sanitized).
Since Chrome 130, the default export leaves out the Cookie, Set-Cookie, and Authorization headers, according to What's new in DevTools 130. To include them you must turn on Allow to generate HAR with sensitive data in DevTools settings and pick Export HAR (with sensitive data). The steps are in Chrome's Network features reference. Microsoft documents the same options for Edge in its browser trace guide. Only use the sensitive export when the person debugging asks for it and the bug is about sign-in or cookies.
Firefox
- Open the Network Monitor (Ctrl+Shift+E, or Cmd+Option+E on a Mac).
- Turn on Persist Logs in the menu of other actions on the toolbar.
- Reproduce the problem.
- Choose Save All As HAR from the same menu.
The Firefox network monitor documentation describes no sanitized export, so treat a Firefox HAR file as if it contains everything.
What to strip before you send a HAR file
Strip anything that lets someone act as you, and anything about other people. Open the file in a text editor and search for these:
- Cookie and Set-Cookie headers, plus the
cookiesarrays on requests and responses. - Authorization headers and custom auth headers, such as an API key header. Chrome's sanitized export removes only the three standard headers above.
- Query strings. Reset links, OAuth callbacks, and some APIs put tokens in the URL, and the URL is not a header.
- Request bodies (
postData). A sign-in form or a GraphQL mutation keeps what you submitted. - Response bodies (
content.text). API responses can hold names, emails, and internal IDs.
Replace the values, not the names, so the file is still valid JSON and still opens. Then send it through the vendor's support portal, not a public link.
In October 2023, Okta disclosed that an attacker with a stolen credential viewed files customers had uploaded to support cases, and that HAR files can contain cookies and session tokens. Its root cause report says files from 134 customers were accessed, and that session tokens from those HAR files were used to hijack the Okta sessions of five customers.
What debugging actually needs from a HAR file
Four fields per request show which call failed and when: the method, the URL without its query string, the status code, and the duration. Add console errors and you have the order of events. The headers, cookies, and bodies carry the risk.
We had to make this exact cut when we built Hinto Signal, our in-app support SDK, which records a text timeline of what signed-in customers did. The privacy docs list what it keeps and what it never collects:
| Part of the request | In a HAR file | In Hinto Signal |
|---|---|---|
| Method, status, duration | Yes | Yes |
| URL | Full, with query string | Redacted, query string stripped by default |
| Request and response headers | Yes | Never |
| Cookies | Yes, unless sanitized | Never |
| Request and response bodies | Yes | Never |
| Form values and keystrokes | In posted form data | Never |
| Console warnings and errors | No | Yes, with redacted arguments |
Redaction runs in the browser before anything leaves it, and it scrubs emails, bearer tokens, and sensitive query parameters. When a ticket comes in, a Hinto investigation reads that timeline next to Sentry errors and your code, and records what it could not check.
If you do need a HAR file, ask for the sanitized export, say which page and steps to record, and delete the file when the ticket closes.
Questions
- Is it safe to share a HAR file?
- Only after you have checked it. A HAR file can hold cookies, Authorization headers, tokens in URLs, form data, and full response bodies. Okta reported in 2023 that session tokens in HAR files uploaded to its support system were used to hijack the sessions of five customers. Export the sanitized version, search the file for tokens and personal data, and send it through the vendor's own support channel.
- Can a HAR file contain my password?
- Yes, if you signed in or submitted a form while recording. The HAR format stores what the browser posted in each request's postData field. Chrome's sanitized export documents removing only the Cookie, Set-Cookie, and Authorization headers, so a password in a form body can still be there. Record without signing in when you can.
- Why is my HAR file so big?
- Because it usually embeds every response body: HTML, scripts, stylesheets, fonts, images, and API responses. In our own captures, response bodies were 85% of a 2.5 MB file from two marketing pages and 91% of a 5.6 MB file from one sign-in page.
- Does Chrome's sanitized HAR export remove everything sensitive?
- No. Chrome's documentation says the sanitized export leaves out the Cookie, Set-Cookie, and Authorization headers. Query strings, custom auth headers such as an API key header, request bodies, and response bodies are not on that list.
