Redact cookies, credential headers and bodies from a HAR structurally rather than by pattern, keeping every header name, path, status and timing.
The original file never leaves your browser — redaction happens here, before you download or copy anything. Check what the file contained first; the HAR viewer lists that in detail. Redaction removes what has a known place in the format, so a secret pasted into a URL path or hidden in a response body may survive it.
Waiting for a HAR file
Everything happens in your browser. The original is never uploaded.
Removes: The value of every cookie in both directions, keeping the names.
What it costs: Almost nothing. A session cookie is the single most dangerous thing in a HAR and never helps diagnose anything.
Removes: The values of Authorization, Proxy-Authorization, API key headers and similar, keeping the header names.
What it costs: Almost nothing. That a request carried a bearer token is the useful part; the token itself is not.
Removes: The values of query parameters whose names suggest a secret — token, key, password, signature.
What it costs: Low, unless the failure is in how a token was generated.
Removes: The value of every query parameter, keeping the names.
What it costs: High. The failing request is often identified by one of these, so this makes the file safe and frequently useless.
Removes: Everything your browser sent in a request body.
What it costs: Moderate. A malformed payload cannot be diagnosed without it, but a payload is also where personal data usually is.
Removes: Everything the server sent back, where the capture recorded it.
What it costs: Moderate, and this is usually the largest part of the file. Status, headers and sizes are kept.
Removes: The IP each host resolved to.
What it costs: Low for a public site. For internal infrastructure this is the part worth removing.
Removes: Applies the text patterns to URLs as well, catching a token in a path rather than a query.
What it costs: Low, though a path segment that looks like a token may be an ordinary identifier.
Every header name, URL path, status, timing and size is kept on purpose: a redacted HAR that cannot diagnose anything is one nobody will produce. That means the output still describes your application’s structure — which endpoints exist, which hosts it talks to — so it is safe to attach to a ticket your team can see, not necessarily to a public one.
HAR Privacy Redactor runs entirely on your device — redaction happens in your browser, so the unredacted capture is never sent anywhere.
You’re on the Free plan. Compare plans
Redaction here is structural, not textual. A cookie's value is replaced because it is the value field of a cookie object — not because it looked like a secret. That distinction is the whole reason this exists rather than running a find-and-replace over the JSON: a session cookie is usually a plain-looking string that no pattern would flag, and a pattern aggressive enough to catch it would destroy half the file.
A HAR stores the query string twice — the full URL and a parsed queryString array of the same parameters — and both copies are redacted. Redacting only the URL leaves every value sitting in the array, which is a mistake that makes redaction look like it worked.
What is kept is deliberate: every header name, every URL path, every status, every timing and every size. A redacted HAR that cannot diagnose anything is a HAR nobody will bother producing, so each switch states what it costs you — and two of them are labelled as costing diagnostic value, because removing every query value makes a capture safe and frequently useless.
Because a session cookie is usually a plain-looking string. A pattern cannot tell it from an ordinary value, and a pattern aggressive enough to catch it would destroy half the file. Replacing the value field of a cookie object works on every cookie regardless of what it looks like.
Yes. The structure is preserved and the output is verified to still be a valid HAR before you download it — a redacted file no tool can open has not solved the problem it was made for.
Because they do. Removing every query value makes the capture safe and frequently useless, since the failing request is often identified by one of them. Response bodies are the same trade-off. Those two are labelled so the decision is made deliberately.
Every header name, every URL path, every status code, every timing and every size. That is enough to diagnose almost anything a HAR is captured for, which is the point — but it does still describe your application's structure, so a redacted HAR is safe for your team rather than for a public issue.
Only with the text-pattern switch on, and even then only if it has a recognisable shape. A token pasted into a path segment that looks like an ordinary identifier will survive. Read the output before sharing it.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab