PRIVACY & TEST DATA · BFOTKIT

HAR file sanitizer: strip sensitive data before sharing.

Remove cookies, authorization headers, and other credentials from an HTTP Archive (HAR) file so you can share a reproducible request log without leaking session data.

HAR file
What to remove
Sanitized HAR

The file is parsed and cleaned entirely in this browser tab. Nothing is uploaded to a server.

GUIDE

How to sanitize a HAR file

Load the HAR file

HAR files are JSON exports from browser DevTools or API clients, and they routinely contain cookies, session tokens, and bearer headers. Paste the JSON or choose the .har file from your device; the tool parses it locally and reports how many request entries it found.

Choose what to remove

Cookies are stripped from request and response objects. Authorization and Cookie headers are removed from header lists. Sensitive query parameters such as token, key, and session values get their values replaced with a placeholder while keeping the parameter name, so the request structure stays debuggable. IP addresses in the standard _resourceType-level fields are blanked.

Keep reproducibility in mind

Sanitizing changes what a request needs to replay: an endpoint behind authentication will fail without the stripped headers, which is exactly the point. Replace them with valid test credentials on your side when you hand the file to someone who is meant to reproduce authenticated flows.

Review before sharing

After sanitizing, expand a few entries and confirm nothing sensitive remains — long-lived tokens can also hide in post bodies or unusual headers this tool does not touch. Download the cleaned .har and share it only after that manual spot check.

HELP / FAQ

HAR sanitizer questions

What is a HAR file?

An HTTP Archive: a JSON snapshot of the requests a page or app made, exported from browser DevTools or a proxy. Developers exchange them to debug slow or failing requests.

What does the sanitizer remove?

Cookies from requests and responses, Authorization and Cookie headers, values of query parameters whose names look like tokens or keys, and recorded IP addresses. The request structure, timings, and status codes are kept so the file stays useful for debugging.

Can it miss sensitive data?

Yes. Credentials can hide in post bodies, custom headers, or unusual parameter names. Treat the output as sanitized, not safe: open the file and search for your token format before sending it anywhere.

Is my file uploaded?

No. Parsing and cleaning happen in this browser tab, and the download is generated locally.

EXPLORE BY CATEGORY · BFOTKIT

More tools like this

Pick a category to see every tool in it — then open one and discover related tools.

Browse all tools