Home › Programmer & Developer Tools › HAR to Load Test

HAR to Load Test Script

Turn a recorded HAR file into a load-test script for k6, Artillery, JMeter, or Locust. Every captured request becomes a step — method, URL, headers, and body — so you can replay a real user flow under load. Filter out static assets, scope to one domain, include or strip headers, and redact auth tokens and cookies so secrets stay out of the script. Everything runs in your browser; the file is never uploaded. Note this generates a script to run yourself — it does not run the load test.

How to use HAR to Load Test

  1. Record the flow in your browser DevTools Network tab, then “Save all as HAR”.
  2. Drop the .har file in (or paste the JSON).
  3. Pick a target: k6, Artillery, JMeter, or Locust.
  4. Tune the options — skip static assets, choose a domain, include headers, and keep “Redact auth” on.
  5. Copy or download the script, then run it with the real tool (e.g. k6 run script.js) on your machine or CI.

Frequently asked questions

Does this actually run the load test?
No. It generates a script only. Running a load test requires the tool’s own runner — k6, Artillery, JMeter, or Locust — which executes on your machine or CI, not in the browser. The tool gives you a correct starting script to run there.
Are my auth tokens included in the script?
Not when “Redact auth & cookies” is on (the default): Authorization, Cookie, API-key and similar headers are replaced with a REDACTED placeholder. The HAR itself is parsed locally and never uploaded, but redaction keeps secrets out of the script you share or commit.
Why are some requests missing from the script?
By default “Skip static assets” drops CSS, JS, images, fonts, and media so the test focuses on documents and API calls. WebSocket requests are also excluded because they can’t be replayed as plain HTTP. Turn the option off to include everything, or pick a single domain to narrow the scope.
Do I need to edit the generated script?
Usually yes. Real flows need correlation — extracting a CSRF token or session ID from one response and feeding it into the next — plus realistic think-time and your target VU/duration. The generated script is a faithful replay skeleton; add correlation before relying on the results.

More Programmer & Developer Tools

  • JSON Validator — Validate, parse, and prettify JSON — load it from a URL or curl command, or convert a Python dict (single quotes, True/False/None) to JSON. Identifies syntax errors with precise line number reporting.
  • Code Beautifier — Automatically format your JavaScript, CSS, and HTML with customizable indentation and style rules.
  • Minifier — Reduce bundle sizes by removing whitespace, comments, and optimizing code structure for production.
  • SQL Formatter & Beautifier — Pretty-print and indent SQL queries across dialects (PostgreSQL, MySQL, T-SQL, BigQuery, and more) with configurable keyword casing.
  • XML Formatter — Beautify and validate XML with configurable indentation, or minify it to the smallest valid output — entirely in your browser.
  • JSON Diff — Compare two JSON objects (or Python dicts) structurally to spot added, removed, and changed keys — or switch to line and word mode for plain text and code.
  • RegEx Tester — Build and test regular expressions in real-time with syntax highlighting and match group visualization.
  • Base64 Converter — Quickly encode and decode strings or files to Base64 format for safe data transmission.