فارسی

Sanitize a HAR File Before Sharing

Redact cookies and common secrets from a HAR file. Review the output before sharing.

Use this tool in your browser without installing software.

About this tool

A HAR file records network requests and responses and can contain cookies, tokens, or passwords. This tool replaces common sensitive values with [redacted]. When body cleanup is enabled, it masks recognized fields in request forms and JSON and removes captured response content. The file structure and timings are preserved. Everything runs in the browser. Review the output before sharing, since other sensitive information may remain.

How to use it

  1. 1

    Choose the HAR file or paste its text into the box.

  2. 2

    Pick which parts to strip: cookies, headers, URL parameters or bodies.

  3. 3

    Run the sanitizer, review the output, then download or copy it.

If the answer looks wrong

  • It says the JSON is not valid.

    Only part of the file was probably pasted. Select the whole HAR or use the file picker instead.

  • It says the data is not a HAR.

    The file must be an object with log and an entries array. Use Save all as HAR with content in the Network tab so the whole file is written.

  • Nothing was redacted.

    Check that the sanitiser options are on. If a parameter has an unusual name, review its value in the output by hand.

Frequently asked questions

What is a HAR file and where does it come from?

A HAR is a JSON file that records network requests and responses. In Chrome or Firefox, open the Network tab, reproduce the problem, then pick Save all as HAR with content from the tab menu. Support often asks for exactly this file when a request fails.

What gets stripped?

Request and response cookies, auth headers such as Authorization, Cookie and X-Api-Key, secret URL parameters such as token and api_key, and password fields in form or JSON bodies. Other names such as password, secret, session and signature are recognised too. Body cleanup also removes captured response content.

Are the values removed or replaced?

Each value is replaced with [redacted]. That is better than deleting the field, because the file keeps its structure and request count for debugging while the real value is no longer visible.

Is the output still a valid HAR?

Yes, the log and entries structure is kept and only some field values change. The JSON stays valid, so you can open it in the same developer tools or a HAR viewer.

Is my file uploaded anywhere?

No, reading and cleaning happen entirely in the browser and no request is sent to a server. Still, review the sensitive parts of the file yourself before sharing it.