Sanitize a HAR file before you send it
A HAR file holds your cookies, tokens and passwords. Drop it here and get back a copy that is safe to send to a support team. Everything runs in this tab. Nothing is uploaded.
Drop a .har file here
or pick one from your computer
What it finds and removes
Seven kinds of secret, found by field name and by shape. Each is replaced with [redacted]. No field is deleted, so the file still imports into Chrome DevTools.
| Type | Where it looks | Result |
|---|---|---|
| Cookies | Cookie and Set-Cookie headers, request and response cookies arrays | session=[redacted] |
| Authorization | Authorization and Proxy-Authorization headers, Bearer and Basic values anywhere | Bearer [redacted] |
| JWTs | Headers, URLs, query strings, form and JSON bodies, response bodies | eyJ... becomes [redacted] |
| API keys | AWS AKIA, GitHub ghp_ and github_pat_, Stripe sk_live_ and rk_live_, Slack xox, Google AIza, Azure storage, Service Bus and Cosmos master keys, api_key and x-api-key | x-api-key: [redacted] |
| Passwords and secrets | Form fields and JSON keys named password, passwd, pwd, secret, token, otp, plus user:password@ in URLs | "password":"[redacted]" |
| Session IDs | sessionid, sid, jsessionid, phpsessid in query strings and ;jsessionid= path parameters | /app;jsessionid=[redacted] |
| CSRF and auth headers | X-CSRF-Token, X-XSRF-TOKEN, X-Auth-Token, X-Access-Token and similar | X-CSRF-Token: [redacted] |
What it cannot do
It lowers the risk. It does not make a HAR file harmless. Read the list before you download.
- It finds secrets by name and by shape
- A secret with an unusual field name and no known prefix will not be found. Read the list before you download, and open the file in a text editor if the case is sensitive.
- Personal data stays
- Email addresses, names, IP addresses, URLs and page content are not removed. Only the secret types above are.
- Base64 bodies
- A response body marked base64 is decoded and scanned only when its type is text, JSON, XML, JavaScript or a form. Images, fonts and other binary bodies are left as they are and are not scanned. The page tells you how many it skipped.
- Cookie values all go
- Every value in a cookie header or cookies array is replaced, because cookie names rarely tell you which cookie is the session. Cookie names stay.
- Revoke first if a token already left
- Cleaning a copy does not help with a copy you already sent. If a raw HAR went to a vendor, sign out of those sessions and rotate the keys.
A stolen session still looks like a user
Sanitizing is the step before you share. This is what it cannot cover, and what camada can and cannot add.
1
A leaked session looks like a normal user
A stolen session token, used from a new place, makes valid requests. The first few look normal. Only what the session does next can give it away.
2
What camada can and cannot see here
In an app that runs the camada SDK, Watchkeeper reviews traffic every few minutes. A hijacked session that starts scraping or probing can be found and blocked on later requests. camada does not see cookie values, Authorization values or request bodies. It does not see inside a vendor support system, or a HAR you emailed.
3
Sanitize first, then share
This page is the step before sharing. It removes the secrets so the file is safe to send. Nothing in it replaces rotating a key you already exposed.
Questions about HAR files
More free tools: all developer tools.
- Why are HAR files risky to share?
- A HAR file records every request in a browser session, including cookies, Authorization headers and form posts. A session token in a HAR can often be replayed to act as the signed-in user. In October 2023 Okta said that an attacker who reached its customer support system could see HAR files that customers had uploaded, and that session tokens in those files were used to hijack some customers' sessions.
- Does my HAR file leave my computer?
- No. The file is read, scanned and cleaned by a script in this tab, in a Web Worker. The page makes no request that carries your file or anything from it. The cleaned copy is built in memory and saved by your browser. You can check the Network panel in DevTools while you use it.
- Will Chrome DevTools still open the cleaned file?
- Yes. The output keeps the HAR 1.2 structure: log.version, creator, entries, request, response, timings, headers as name and value pairs, and cookie arrays. Secrets are replaced with the text [redacted] and no field is deleted. Where a value changed, headersSize or bodySize becomes -1, which the format allows for unknown.
- Can I keep the JWT claims and drop only the signature?
- Yes. Turn on the option to keep JWT header and payload. The token then reads header.payload.[redacted]. Support can read the claims, and nobody can replay the token. Note that claims can hold an email address or a user ID.
- What if I want to keep one value?
- Every group and every item has its own switch, all on by default. Turn off an item and the download keeps exactly that value, wherever it appears.
- How large a file can it handle?
- The work runs in a worker, so the page stays responsive and shows progress. In our test a 100 MB file took about two seconds to scan and about two to clean on a recent laptop, with a progress bar the whole time. Your browser needs enough free memory to hold the file and its parsed copy.
Use it from an AI agent
This page is also Markdown at /tools/har-sanitizer.md. Agents can also run the check itself, without the form.
sanitize_harin this tab, through WebMCPTakes
har, keep_jwt_claims?. Remove cookies, bearer tokens, JWTs, API keys, passwords, session IDs and CSRF tokens from a HAR file, in this browser tab. Returns what was found by kind and the cleaned HAR as JSON text. Nothing is uploaded.What leaves this tab: Nothing. The HAR is cleaned in this tab.
The MCP server needs no key. Every agent tool on this site is listed in the server card and on the tools page.
Related tools
- JWT decoder
Decode JOSE headers and payload claims in your tab with zero network calls. Verify HS256, RS256, and ES256 signatures and flag alg:none.
- Breached password check
Check if a password appears in known data breaches. Your browser hashes it and sends only five characters of the hash.
- CSP & security headers
Fetch live response headers or paste curl output. Flag unsafe-inline CSP rules, check HSTS and nosniff, and hash inline scripts.
Watch what a session does, not only what it holds.
Install the SDK on the Free plan to score 100,000 events a month with no card.
Free needs no card. A 14-day trial of Starter or Growth needs a card. Nothing is charged today. Cancel before the trial ends (the date is shown in the app) and you pay nothing. Otherwise the plan's monthly price starts on day 15.