HAR File Sanitizer – Remove Passwords, Cookies & Tokens from HAR Files

A HAR file records everything your browser sent and received — including passwords, session cookies and API tokens in plain text. Before you attach one to a bug report, a forum post, a freelancer or an AI chat, clean it here first. The sanitizer finds and redacts the secrets automatically, in your browser: your HAR file is never uploaded anywhere.

🧹

Click or drop your .har file here

Exported from Chrome, Firefox, Edge or Safari DevTools — processed locally, never uploaded

Sanitized

🔒 100% private: the file is read and cleaned inside your browser. Always skim the sanitized file before sharing it — plain-text bodies are not auto-scanned.

What is a HAR file, and why is it dangerous to share raw?

HAR (HTTP Archive) is the standard recording of a browser’s network traffic. Developers export it from DevTools to debug slow pages and failed requests. But a HAR file is a near-complete transcript of the session: login requests include the typed password, every request carries session cookies, APIs pass tokens in headers and URLs, and JSON responses can contain personal data. Sharing a raw HAR in a public bug report, a support ticket or an AI chat can hand strangers everything they need to hijack the account. Sanitizing takes ten seconds and removes that risk.

What this sanitizer removes

LocationWhat gets redacted
Request and response headersAuthorization, Cookie, Set-Cookie, API keys and any header whose name signals a secret
CookiesAll cookie values (names are kept, so the file stays readable)
URL query parametersTokens, keys, session IDs and similar parameters
Request bodiesPassword, token, secret, card and similar fields in JSON and form-encoded bodies, including nested fields
JSON response bodiesThe same sensitive fields inside JSON responses

Everything else — URLs, methods, status codes, timings, sizes and the structure of the traffic — is preserved, so the sanitized file is still genuinely useful for debugging.

How to sanitize a HAR file

  1. Export the HAR. In Chrome: open DevTools (F12), go to the Network tab, reproduce the problem, then click the download icon “Export HAR”. In Firefox: Network tab, right-click any request, “Save All As HAR”.
  2. Drop the file above. The tool scans every entry in your browser — nothing is uploaded.
  3. Click “Sanitize HAR file”. You get a report of exactly how many secrets were redacted and where they were found.
  4. Download and skim. Open the sanitized file, give it a quick read for anything sensitive in plain-text bodies or unusual URLs, then share it safely.

Features

  • Deep JSON redaction — sensitive keys are found at any nesting level, not just the top.
  • Smart key detection — field names are split into words, so access_token, apiKey and refreshToken are caught while harmless fields like author are left alone.
  • Full report — counts per category plus a list of every redaction location.
  • Structure preserved — the output is a valid HAR file that DevTools and HAR viewers can still open.
  • Completely private — no upload, no server, no analytics on your file. It works offline once the page has loaded.
  • Free, no sign-up, no file-size limit beyond what your browser can hold in memory.

Related developer tools

More free in-browser tools are on the way in this section. Meanwhile, our image compressor and EXIF remover also run 100% locally for the same reason: your files should stay yours.

Frequently asked questions

Is this HAR sanitizer really free?

Yes. It is completely free with no sign-up and no file-size limit beyond your browser’s memory. Sanitize as many HAR files as you need.

Is my HAR file uploaded to a server?

No. The file is read and cleaned entirely inside your browser with JavaScript. Nothing is transmitted anywhere, which is exactly what you want when the file may contain live session tokens.

Will the sanitized HAR still be useful for debugging?

Yes. Only secret values are replaced with REDACTED. URLs, request methods, status codes, headers’ names, timings, sizes and payload structure are preserved, so a developer can still trace what happened.

What does the sanitizer not catch?

Plain-text (non-JSON) request and response bodies are left unchanged, base64-encoded bodies are skipped, and a URL path itself can occasionally contain something sensitive. That is why the tool asks you to skim the sanitized file before sharing it.

Does Chrome already sanitize HAR exports?

Recent Chrome versions offer a “Save all as HAR with content” versus a sanitized export option in some builds, but shared and older HAR files are usually raw. If you received a HAR from someone else, or exported it earlier, run it through this sanitizer before forwarding it.

Is this HAR sanitizer really free?

Yes. It is completely free with no sign-up and no file-size limit beyond your browser’s memory. Sanitize as many HAR files as you need.

Is my HAR file uploaded to a server?

No. The file is read and cleaned entirely inside your browser with JavaScript. Nothing is transmitted anywhere, which is exactly what you want when the file may contain live session tokens.

Will the sanitized HAR still be useful for debugging?

Yes. Only secret values are replaced with REDACTED. URLs, request methods, status codes, headers’ names, timings, sizes and payload structure are preserved, so a developer can still trace what happened.

What does the sanitizer not catch?

Plain-text (non-JSON) request and response bodies are left unchanged, base64-encoded bodies are skipped, and a URL path itself can occasionally contain something sensitive. That is why the tool asks you to skim the sanitized file before sharing it.

Does Chrome already sanitize HAR exports?

Recent Chrome versions offer a “Save all as HAR with content” versus a sanitized export option in some builds, but shared and older HAR files are usuall raw. If you received a HAR from someone else, or exported it earlier, run it through this sanitizer before forwarding it.

Scroll to Top