Clean, filter, and sanitize HAR files before generating API and performance tests.
HAR Forge is a local-first tool for QA, automation, and performance workflows where a browser-recorded HAR file has too much noise and you only want the requests that matter before importing it into k6 Studio, har-to-k6, Playwright, or another test tool.
Recording a browser flow as a HAR file is useful, but the exported file usually contains a lot more than the test flow itself.
A single capture can include:
- static assets such as CSS, JavaScript, images, fonts, and source maps;
- preflight
OPTIONSrequests; - analytics, tracking, and third-party calls;
- unrelated routes from the same session;
- cookies, tokens, authorization headers, and sensitive payload data.
That noise makes generated API and performance tests harder to read, maintain, and trust.
HAR Forge helps you turn a noisy browser capture into a cleaner HAR file that is safer to inspect, share, and use as input for test generation.
- Upload or drag and drop a
.harfile. - Filter requests by URL, host, or path.
- Use contains or regex matching.
- Keep matching requests or drop matching requests.
- Remove
OPTIONSrequests. - Remove static assets.
- Remove third-party requests based on the selected base host.
- Preview total, kept, and removed request counts.
- Inspect post-filter requests in a table with method, status, host, path, type, size, time, and category.
- Manually exclude individual requests from the final export.
- Sanitize sensitive data before export.
- Download a cleaned
clean.harfile.
Before filtering:
184 requests
├─ API requests
├─ static assets
├─ OPTIONS/preflight requests
├─ analytics and tracking calls
├─ third-party domains
├─ unrelated routes
└─ sensitive headers, cookies, tokens, and payload values
After filtering with HAR Forge:
23 relevant requests
├─ selected API flow kept
├─ noisy requests removed
├─ secrets sanitized
└─ clean.har ready for k6 Studio, har-to-k6, Playwright, or another test tool
- Record a browser flow and export it as a
.harfile. - Open the HAR in HAR Forge.
- Choose what should be kept or dropped.
- Remove common noise such as
OPTIONS, static assets, and third-party calls. - Sanitize secrets before export.
- Download
clean.har. - Import the cleaned file into your test generation workflow.
HAR Forge is useful for:
- QA engineers preparing browser captures for API or performance testing;
- automation engineers generating tests from HAR files;
- performance engineers working with k6 Studio or
har-to-k6; - developers who need to inspect or share HAR files without leaking secrets.
HAR Forge runs entirely in the browser.
Files are not uploaded to a server, and all parsing, filtering, sanitization, and export steps happen locally.
Sanitization redacts common sensitive fields such as:
AuthorizationCookieSet-CookieX-CSRF-Tokenaccess_tokenrefresh_tokenid_tokenpasswordsenhatokenapi_keyclient_secret
Install dependencies:
npm installRun the local dev server:
npm run devRun tests:
npm run testBuild for production:
npm run build- Vite
- React
- TypeScript
- Tailwind CSS
- Vitest
- Visual allowed-hosts selection.
- More presets for k6 and API-only workflows.
- Import and export reusable filter presets.
- Better before/after reports for cleaned HAR files.
- Example HAR files for local testing and demos.