# HAR Sanitizer

> Strip cookies, Authorization headers, sensitive query values, and IP addresses from HAR files before sharing. Parses locally; nothing is uploaded.

[bfotkit](/) Runs in your browserCategories ▾[All tools 307](/en/tools/)[Text tools9](/en/tools/text-tools/)[Image tools27](/en/tools/image-tools/)[PDF tools20](/en/tools/pdf-tools/)[Social media tools97](/en/tools/social-media-tools/)[Security tools8](/en/tools/security-tools/)[Coding tools25](/en/tools/coding-tools/)[CSS tools12](/en/tools/css-tools/)[Color tools6](/en/tools/color-tools/)[Miscellaneous tools103](/en/tools/miscellaneous-tools/)

[All tools ↗](/en/tools/)[EN](/en/tools/har-sanitizer/)[PT](/pt-br/ferramentas/sanitizador-har/)[DE](/de/werkzeuge/har-bereiniger/)[ID](/id/alat/pembersih-har/)[RU](/ru/instrumenty/sanitizer-har/)

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

Or choose a .har fileSanitize HAR

What to remove

Cookies (request and response) Authorization and Cookie headers Sensitive query values (?token=…, ?key=…) Client and server IP addresses

This is not valid HAR JSON: a HAR file is an object with a top-level log.entries array.

Sanitized HARCopy JSONDownload .harClear

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.

[All tools 307](/en/tools/)[Text tools 9](/en/tools/text-tools/)[Image tools 27](/en/tools/image-tools/)[PDF tools 20](/en/tools/pdf-tools/)[Social media tools 97](/en/tools/social-media-tools/)[Security tools 8](/en/tools/security-tools/)[Coding tools 25](/en/tools/coding-tools/)[CSS tools 12](/en/tools/css-tools/)[Color tools 6](/en/tools/color-tools/)[Miscellaneous tools 103](/en/tools/miscellaneous-tools/)

[Coding toolsPrivate JSON formatter and text cleanup tools↗](/en/tools/private-json-text-cleanup/)[Coding toolsURL Slug Generator↗](/en/tools/url-slug-generator/)[Coding toolsBase64 Encoder/Decoder↗](/en/tools/base64-encoder-decoder/)[Coding toolsURL Encoder/Decoder↗](/en/tools/url-encoder-decoder/)[Coding toolsHTML Encoder/Decoder↗](/en/tools/html-encoder-decoder/)[Coding toolsJSON Formatter↗](/en/tools/json-formatter/)[Coding toolsJSON Validator↗](/en/tools/json-validator/)[Coding toolsJSON Tree Viewer↗](/en/tools/json-tree-viewer/)

[Browse all tools →](/en/tools/)

[bfotkit](/)[All tools](/en/tools/)[Privacy Policy](/en/privacy-policy/)[Terms & Conditions](/en/terms-and-conditions/)[About Us](/en/about-us/)[Contact Us](/en/contact-us/)

Useful tools. No fuss. © 2026 BFOTKit[bfotkit.com ↗](https://bfotkit.com/)
