Ready to Execute
Click the blue ▶ Run button in the header bar or press Ctrl + Enter to compile and preview your results.
How to Strip Secrets From a HAR Before You Share It
The URL field most sanitisers miss, and what no sanitiser can promise
About HAR Sanitizer — Free Online Tool
HAR Sanitizer strips cookies, Authorization headers, credential-looking URL parameters and optionally every response body from a HAR before you share it.
Redacts a known list of sensitive headers, empties the cookie arrays, rewrites matching query and POST parameters, and reports how many of each it removed.
The file is processed in this tab and never uploaded, which would otherwise defeat the point of sanitising it.
Attaching a HAR to a bug report, sending one to a vendor’s support team, and sharing a network trace in a public issue tracker.
Also known as: har file sanitizer · remove cookies from har · redact har file · clean har before sharing
When to use it
A HAR from a signed-in session is a complete set of working credentials, and people attach them to public bug reports every day.
How it works
Known sensitive headers are replaced, cookie arrays emptied, credential-looking parameters rewritten in both the parsed list and the URL string, and bodies optionally dropped.
The URL Itself, Not Just The Parsed List
A HAR stores query parameters twice: as a parsed queryString array and inside request.url. Redacting only the array leaves the token sitting in plain sight in the field everybody actually reads. Both are rewritten here, which is the single most common gap in sanitisers that otherwise look thorough.
What This Cannot Promise
It removes what it can recognise: a known header list, the cookie arrays, parameters whose names look like credentials, and response bodies when you ask. A token in a response body under an unusual field name will survive, and so will anything in a format not parsed here. The summary says how many of each were removed so the figure can be checked. Read the output before you send it — a sanitiser is a first pass, not a guarantee.
Dropping Bodies Loses Evidence
Removing every response body is the safest setting and it can also delete the thing the bug report needed. If the problem is in a response, turn that option off and read through the bodies yourself before sharing. It is more work and it is the honest trade.
How to Use HAR Sanitizer in 4 Easy Steps
Follow this simple guide to process your files in seconds directly inside your browser tab.
Provide Input for HAR Sanitizer
Paste your payload, code snippet, or string into the HAR Sanitizer editor workspace. A redactor for HTTP Archive files, removing the credentials a Network panel export carries by default.
Configure Formatting & Validation Rules
Select indentation preferences, minification, encoding options, or validation rules. A HAR from a signed-in session is a complete set of working credentials, and people attach them to public bug reports every day.
Run In-Browser Engine
The engine executes HAR Sanitizer locally in your browser with microsecond latency and zero server transmission.
Copy or Download Output
Copy the sanitized, formatted, or generated output directly to your clipboard or download it for your project.
Why Use HAR Sanitizer on ShortTrick
Engineered for maximum speed, strict privacy, and frictionless digital productivity.
Zero Code or Token Leaks
Proprietary source code, API keys, database queries, and tokens processed in HAR Sanitizer never leave your browser.
Microsecond Performance
Optimized AST parsers and Web Crypto APIs process large payloads in HAR Sanitizer in milliseconds.
Syntax Validation & Formatting
HAR Sanitizer highlights syntax errors and enforces standard formatting conventions automatically.
Offline Ready
Once loaded, HAR Sanitizer functions entirely offline without requiring an active internet connection.
Frequently Asked Questions About HAR Sanitizer
Common questions regarding HAR Sanitizer, data privacy, file format compatibility, and usage limits.
Popular Searches & Related Tasks for HAR Sanitizer
Common search phrases, secondary format tasks, and workflows users reach for when using this tool.
Direct Variations & Search Synonyms (8)
Specific Workflows & Long-Tail Queries (15)
Semantic Standards & Technical Entities (20)
HAR Sanitizer compared with the closest alternatives
Only the specifications that actually differ between these 4 tools. Anything identical across all of them is left out rather than printed four times.
| HAR Sanitizer | HAR Viewer | JSON Formatter & Beautifier | JSON Validator | |
|---|---|---|---|---|
| Accepts | HAR, JSON, TXT | HAR, JSON, TXT | JSON, TXT | JSON, TXT |
| Returns | JSON, HAR | TXT | JSON | JSON |
Related Developer Tools Tools & Popular Utilities
Explore complementary browser-based tools with zero file uploads and instant in-memory execution.
More Developer Tools Tools
Popular Tools Across Other Categories
Related Reading & Tutorials
Guides, articles, and best practices for developer tools workflows.

How to Strip Secrets From a HAR Before You Share It
How to Find the Invisible Character Breaking Your Text
How to Read a HAR File and Find What Made a Page Slow

How to Make a Seating Chart That Keeps the Right People Apart
How to Count Words, Characters and Reading Time
