HAR File Analyzer & Redactor
HAR (HTTP Archive) files are incredibly useful for debugging complex web and API issues, but they are also notorious security hazards. By default, when you export a HAR file from your browser's Developer Tools, it captures everything. This includes your active session cookies, Authorization headers containing live JWTs or OAuth tokens, and potentially passwords or PII submitted in POST request bodies. Sharing an unredacted HAR file is essentially handing over your active session to whoever receives it.
Our HAR File Analyzer & Redactor solves this by allowing you to sanitize your network traces 100% locally in your browser. Unlike server-side tools that require you to upload your sensitive traces, our tool processes the JSON data entirely on your device. You can visually inspect the timeline, filter requests by domain or status, and securely strip out dangerous tokens and cookies before securely sharing the redacted file with your support or development teams.
HAR Input
100% Client-SideDrag and drop your .har file here
Or click to select a file
Request Trace
| Method | Status | Domain | Path | Type | Time | Timeline |
|---|
Redact Sensitive Data
Select headers to strip before downloading.
This tool runs 100% in your browser; your data never leaves your device. Privacy details
What Is a HAR File and What Does It Contain?
A HAR (HTTP Archive) file is an industry-standard JSON format used by web browsers and HTTP clients to log interactions with a web server. When you navigate a website, your browser makes dozens or hundreds of requests for HTML documents, CSS files, JavaScript, images, and API data. A HAR file records the meticulous details of every single request and response in that timeline.
Inside the JSON structure of a HAR file, you will find exhaustive data: the exact URLs requested, DNS resolution times, TCP connection times, HTTP methods (GET, POST, etc.), status codes, request headers, response headers, and often the full text content of both the request payloads and the server responses. This makes it an unparalleled tool for diagnosing HTTP headers, performance bottlenecks, missing assets, and API failures.
The Security Risks Hidden in HAR Files
The exact comprehensiveness that makes HAR files useful is what makes them extremely dangerous if mishandled. Because a HAR file represents a literal recording of your browser session, it inherently captures your active authentication credentials.
When you are logged into a platform, your browser continually sends authentication proofs—such as session cookies or Authorization headers carrying bearer tokens—with every request. The HAR file records these proofs in plain text. If you send an unredacted HAR file to a support agent, a developer, or accidentally attach it to a public GitHub issue, anyone who opens that file can extract your tokens. Until those tokens expire, malicious actors can replay them to impersonate you, bypassing MFA and gaining full access to your account.
How to Export a HAR File from Chrome, Firefox, and Safari
Exporting a HAR file is built into modern browsers. Here is how to do it:
- Google Chrome & Microsoft Edge: Open Developer Tools (F12 or Right Click > Inspect). Navigate to the "Network" tab. Ensure the round record button at the top left is red. Check the "Preserve log" box if you are debugging an issue that involves a page reload. Reproduce your issue, then right-click any row in the network grid and select "Save all as HAR with content."
- Mozilla Firefox: Open Web Developer Tools (F12). Go to the "Network" tab. Reproduce your issue. Click the gear icon in the top right of the Network panel and select "Save All As HAR."
- Apple Safari: First, enable the Develop menu (Preferences > Advanced > Show Develop menu). Open the Web Inspector (Option+Command+I) and go to the "Network" tab. Reproduce the issue, then click the "Export" icon located at the top right of the network pane.
What Headers and Data Should Always Be Redacted
Before sharing a HAR file, you must strip away any data that could be used for account takeover or expose sensitive Personal Identifiable Information (PII). Using our redaction tool, you should target:
- Authentication Headers: The
Authorizationheader is the most critical to remove, as it often contains JWTs (JSON Web Tokens) or OAuth bearer tokens. You may also need to remove custom headers likeX-API-KeyorX-Auth-Token. Check your tokens with a secret scanner to understand their impact. - Cookies: The
Cookieheader in requests and theSet-Cookieheader in responses contain session identifiers. These must be removed. - Request and Response Bodies: If you are debugging a login failure, the request body might contain your raw password. Response bodies might contain private user data. If the person helping you only needs to see network timings and HTTP status codes, redact the bodies entirely.
- Query Parameters: Sometimes developers mistakenly put tokens in URL query strings (e.g.,
?token=abc...). While our tool focuses on headers and bodies, be mindful of URLs before sharing.
When in doubt, use a tool like a security headers builder to understand standard headers versus custom authentication mechanisms.
Why Client-Side HAR Redaction Is Essential
There are many online HAR viewers available, but uploading your HAR file to a third-party server is contradictory to security best practices. If a HAR file contains your live session cookies, uploading it to an untrusted server means you have just given that server your session.
Our HAR File Analyzer & Redactor operates entirely via client-side JavaScript. When you drag and drop your file, the browser's native File API reads it directly into your local memory. The filtering, table rendering, and string replacement logic all execute on your local CPU. When you click download, the sanitized JSON is generated entirely in the browser. Zero bytes of your trace are ever transmitted over the internet, guaranteeing complete privacy much like a secure log file anonymizer.
Using Cleaned HAR Files for Performance Analysis
Beyond debugging errors, HAR files are essential for web performance optimization. By filtering by domain in our analyzer, you can easily spot third-party scripts that are blocking the main thread or downloading excessively large payloads.
The timeline visualization helps identify "waterfall" bottlenecks—situations where assets are loading sequentially rather than in parallel. You can easily spot redirects (3xx status codes), oversized image files that might need stripping of EXIF metadata, and API endpoints with high latency. Once the sensitive data is redacted, you can safely attach these performance profiles to Jira tickets or GitHub issues for the broader engineering team to review.
How to Use the HAR File Analyzer & Redactor
- Export a HAR file from Chrome/Firefox DevTools.
- Drag and drop the .har file onto the analyzer.
- Review the request table and filter by domain to inspect traffic.
- Check which sensitive headers and bodies to redact in the Redact panel.
- Click 'Redact & Download' to save the cleaned HAR file.
Common Use Cases
- [object Object]
- [object Object]
- [object Object]
- [object Object]
- [object Object]
- [object Object]
Frequently Asked Questions
What is a HAR file?
A HAR (HTTP Archive) file is a JSON-formatted archive of a web browser's interactions with a site. It contains detailed information about HTTP requests and responses, including timings, headers, payloads, and cookies.
Why are HAR files a security risk?
Because HAR files record exact HTTP requests, they often contain active session cookies, Authorization headers (like Bearer tokens), passwords in request bodies, and API keys. If you share a raw HAR file, anyone with it can impersonate your active session or access your APIs.
What sensitive data is typically in a HAR file?
Common sensitive data includes 'Cookie' and 'Set-Cookie' headers, 'Authorization' headers containing JWTs or OAuth tokens, 'X-API-Key' headers, POST payloads containing login credentials or PII, and sometimes sensitive query parameters.
How do I export a HAR file from Chrome?
Open Chrome Developer Tools (F12), go to the Network tab, ensure recording is on (red dot), reproduce your issue, then right-click anywhere in the network requests grid and select 'Save all as HAR with content'.
How does this tool redact sensitive headers?
This tool parses the HAR JSON entirely within your browser and deletes the specified HTTP headers from every request and response entry before regenerating the JSON file for you to download.
Can I share a redacted HAR with support teams?
Yes, once you redact Authorization headers, cookies, and sensitive payloads, the resulting HAR file is generally safe to share with vendor support teams or developers for debugging network or performance issues.
What is the difference between request and response headers in a HAR?
Request headers are sent by your browser to the server (e.g., sending a Cookie to authenticate). Response headers are sent back by the server to your browser (e.g., Set-Cookie to establish a new session). Both can contain sensitive data.
Related Tools
Secret Scanner
Scan code and config files for leaked API keys, tokens, and secrets — entirely in your browser with zero uploads.
HTTP Header Analyzer
Parse and analyze HTTP response headers for security issues. Check CSP, HSTS, and more — locally in your browser.
EXIF Metadata Remover
Strip GPS and camera data from images locally in your browser. No uploads, 100% private.
Log File Anonymizer
Strip IPs, emails, API keys, and other PII from server logs. Regex-based scrubbing runs entirely in your browser.
Security Headers Builder
Generate HTTP security response headers for Nginx, Apache, Express, Caddy, and Cloudflare Workers.