HAR File Sanitizer & Analyzer Online
Remove cookies, auth headers, tokens, JWT signatures and passwords from a HAR file, analyze requests and timings, or turn entries into curl, k6, Postman.
Result
Press “Run” to see the result.
A HAR file exported from the browser DevTools records every request of a page, including session cookies, Authorization headers, API keys in query strings and passwords in form posts. Support teams ask customers for HAR files all the time, and leaked HARs have been used to hijack sessions. action=sanitize (default) returns a cleaned HAR plus a report of what was redacted: all cookie values (Cookie, Set-Cookie and the cookies arrays), authentication headers (Authorization, X-Api-Key, CSRF tokens…), query and form parameters and JSON fields whose names look secret (token, password, secret, session, api_key, code, sig…), JWT signatures (the header and payload stay readable, like Cloudflare's HAR sanitizer), bearer tokens and well-known key formats (AWS, GitHub, Google, Stripe, Slack, OpenAI, PEM private keys) anywhere in headers, URLs and bodies. Add your own names with keys, keep some with allow_keys, or drop all bodies with strip_bodies=1. action=report only lists what would be redacted.
action=analyze summarizes the capture: number of requests, transfer and content bytes, total time, status classes and failed requests, bytes by type (document, script, stylesheet, image, font, XHR), first-party domain and third-party domains, the slowest and largest requests, cache hits and 304s, text responses served without compression, and DNS / connect / TLS / wait / receive times. waterfall=1 adds a per-request timeline and format=svg draws it as an SVG waterfall. URLs in the report are sanitized too.
action=convert turns entries into ready-to-run curl commands, a k6 load-test script, a Postman v2.1 collection, or code in any curl-convert language (python, fetch, node, go, php…). Pick entries with entries=0,3,5-7, filter (URL substring), methods or xhr_only=1; secrets are redacted first unless sanitize=0. Send the HAR as a file field file, as har (JSON or string) or as the raw JSON body, up to 20 MB (and your plan's file limit). Nothing is stored or logged.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/har-tools" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"report","har":{"log":{"entries":["… 3 entries: a page with a session query parameter and cookies, a login POST with a Bearer JWT and a password, a third-party script …"]}}}'const res = await fetch('https://apibox.io.vn/v1/har-tools', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"action": "report",
"har": {
"log": {
"entries": [
"… 3 entries: a page with a session query parameter and cookies, a login POST with a Bearer JWT and a password, a third-party script …"
]
}
}
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/har-tools",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"action": "report", "har": {"log": {"entries": ["… 3 entries: a page with a session query parameter and cookies, a login POST with a Bearer JWT and a password, a third-party script …"]}}},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/har-tools');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"action":"report","har":{"log":{"entries":["… 3 entries: a page with a session query parameter and cookies, a login POST with a Bearer JWT and a password, a third-party script …"]}}}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Is the HAR stored anywhere?
No. It is processed in memory for this request and discarded. Still, prefer HARs from test accounts and run action=report first if you are unsure.
Why is the JWT payload still readable?
Without the signature a JWT cannot be replayed, while the header and payload (user ID, expiry, scopes) help debugging. Use keys or strip_bodies if the payload itself is sensitive.
Can it miss a secret?
Yes, if a secret sits under an unusual name in an unknown format. Add names with keys, review the report and the cleaned file before sharing it.