247999.XYZ Tools / Clean text / Browser log cleaner
Sign inCreate account

HAR file sanitizer: remove cookies and tokens

Clean an exported HAR network log before sending it to support: remove cookies, authorization headers, selected URL parameters and request or response bodies. Runs in your browser.

Find /orders/ORDER-42 in the example. Check the response for “Order ready for Rowan”. Select All response bodies if the recipient does not need that text. Review the path separately.

Up to 16 MiB and 10,000 requests. Review the cleaned log before sharing it.

Help with this task

What a browser log can reveal

A HAR can include URLs, form values and response text. Chrome’s sanitized export omits sensitive headers such as Cookie and Authorization. A sensitive-data export can include them. Check both kinds for private information in paths and bodies.

What it removes

  • Cookies in requests and responses.
  • Login and API headers such as Authorization, API keys, CSRF and session tokens.
  • URL parameters you choose, with likely secrets (tokens, codes, signatures, emails) ticked for you.
  • Request bodies (form posts, including passwords), and optionally all response bodies.
  • Images, fonts and media to make the file much smaller, plus email and IP addresses.

Recent versions of Chrome offer a sanitised HAR export that leaves out cookies and authorization headers. This tool also covers other browsers, older exports and the rest of the list.

IP removal covers IPv4 and IPv6 in readable HAR values, including forwarding headers and bracketed or zone-qualified IPv6. It does not decode addresses hidden in base64, binary data or other encoded content. Local IPv4 addresses beginning with 0 or 127 are kept for debugging. Review the cleaned log before sharing it.

Review requests without sharing the whole log

The host table groups recorded requests by hostname, showing response-body bytes and cookie or authentication presence. These are facts from the file, not a live network measurement or a tracker classification. The separate JSON review report contains host totals and up to 100 request details you select. Query strings, credentials, fragments, bodies and header values are excluded. Paths are excluded by default; include them only after checking for private details. Hostnames can also reveal internal services.

Questions

Before sharing a support log: remove cookies, login headers and request bodies, then check the remaining URLs and response text for account names or private messages. For a smaller text excerpt, use the personal info redactor.

Is the file uploaded?

No. It's cleaned in your browser.

Will support still be able to debug the problem?

Usually yes: timings, URLs, status codes and headers stay. If they need a specific response body, turn off "All response bodies" and keep only that.

I already sent an uncleaned HAR file.

Sign out of that site everywhere (or change your password) to end the sessions it contains.

Try the bug-report guide with a sample HAR