Free tool

HAR Sanitizer: Review Before Sharing

Sanitize a HAR file locally: remove cookies, credentials, queries and bodies, then review retained hosts, paths and timestamps before downloading the export.

Sanitize a HAR file, then inspect what remains

Choose a HAR 1.2 file, select Review sanitized HAR, read every preview part, and confirm you reviewed the retained URLs before downloading. The file is parsed and rebuilt in a local browser worker; it is not uploaded, and its recorded requests are never replayed. No signup is required.

This tool accepts up to 20 MiB, 10,000 requests, and 32 levels of nesting. It creates a separate sanitized.har download and does not change the original file on your device.

HAR 1.2, up to 20 MiB and 10,000 requests. Choose a shorter capture if a limit is exceeded.

Collect reports on your own site with ContextCapture

ContextCapture adds a bug report widget to your website. Testers send a screenshot, their environment and their notes from the page, reports save to your inbox and, when the site’s destination is GitHub, open as issues in the repository you pick.

Use the same evidence habits on your own site: testers report from the live page, and each report saves to your inbox.

What this export removes and keeps

The worker builds a new HAR 1.2 document from an allowlist. It keeps each entry’s method, status, supported HTTP version, numeric sizes and timing fields, and a valid timestamp converted to ISO format. It keeps recognized MIME types and only a normalized Content-Type header without parameters. Unknown methods become OTHER; unsupported media types become application/octet-stream; invalid timestamps become the Unix epoch.

Timing values are normalized for HAR 1.2 compatibility: unavailable required send, wait, and receive phases become numeric zero; unavailable optional phases become -1. Total time is derived from available phases, counting SSL only within connect. If the sum cannot be represented as a finite number, the timing values become unavailable. Two bounded ContextCapture extension fields retain unknown total and required-phase timing when our tools reopen our sanitizer’s export. Other HAR readers may ignore these fields and show the derived numeric time, including zero; that does not prove an instant request.

It drops cookies, authorization and other headers, query strings and fragments, URL credentials, request and response bodies, page titles, comments, cache contents, and arbitrary extension fields. URLs with unsupported schemes or more than 2,048 characters fall back to a neutral request address; unsupported redirect URLs are cleared. It retains HTTP(S) hostnames and paths, which may still identify a person or client.

Rebuilding the HAR preserves useful network evidence, but the export cannot replay the original session or guarantee anonymity. Chrome also offers a sanitized HAR export; either export still needs a human review before sharing.

A synthetic before-and-after example

This is an illustration of one request, not a customer recording. It shows why removing the query is insufficient when an account identifier is part of the path.

Before

https://user:[email protected]/accounts/4401/checkout?session=example#payment

Headers: Authorization, Cookie, Content-Type: application/json; charset=utf-8. A request body and response body are present.

After local export

https://staging.example.test/accounts/4401/checkout

Only Content-Type: application/json remains. Cookies, credentials, query, fragment, and bodies are removed; method, status, size, and timing evidence remain.

The hostname staging.example.test and account path /accounts/4401/checkout still need review. A real account ID there would make this export unsuitable to share as-is.

Illustration of private fields being sifted from network records while a person checks a retained path with a magnifying glass
Illustration: automated field removal comes first; a person still reviews the retained evidence.

Review checklist before download

  1. Read every preview part, including the first and last. The preview is chunked; one screen is not the whole export.
  2. Inspect every retained request and redirect hostname and path for names, account IDs, tokens, or internal locations. Check them in context rather than relying on the removed query alone.
  3. Review timestamps and status, size, and timing metadata for information your recipient should not receive. The sanitizer preserves valid timestamps and supported numeric evidence.
  4. If anything is sensitive, capture again with test data or keep the HAR private. Check the downloaded file before attaching it; the original and sanitized files are separate.

Decide whether a HAR attachment is necessary

A retained path can outweigh removed fields

Suppose the useful finding is “POST returned 500 after Place order,” but the preview still contains /customers/[email protected]/orders/4401. Do not attach that export merely because its cookies and query strings are gone. Capture a shorter test-data session, or share a reviewed request summary with method, status and timing instead. The analyzer’s copied summary omits URLs, headers and bodies; it may be enough for the first handoff.

Chrome’s Network export guidance describes its own sanitized HAR option, but retained request destinations still deserve review before either kind of HAR leaves your device.

From capture to a reviewed bug report

Use Chrome DevTools Network to capture and export the relevant session. To identify what failed, use the HAR analyzer first. Then sanitize the original file here, review the complete preview, tick the review box, and download sanitized.har.

Attach only the reviewed export when the recipient needs request-level evidence. Add the tested browser, release, expected result, actual result, and reproduction steps to a bug report. The sample report shows how to keep observations separate from a proposed cause.

Updated October 10, 2026. Method: removal and retention details above reflect the current sanitizer implementation; Chrome’s Network reference documents HAR capture and its own export controls.

Examples for your team

Builder example

A builder removes authorization headers, cookies, query values, and response bodies before sharing a checkout trace.

Start your 14-day free trial

Agency / QA example

An agency reviews remaining URL paths for client names or identifiers before exporting a sanitized staging trace.

Start your 14-day free trial

Capture the next report with ContextCapture

Start a 14-day free trial. The beta plan is $7.99 per month for unlimited projects and reports, with up to 5 team members.