Home › Programmer & Developer Tools › HAR Compare / Diff

Compare Two HAR Files (Diff)

Load two HAR captures and diff them request by request. The tool pairs requests by method and URL, then shows what was added, removed, or changed — with status, transfer-size, and timing deltas color-coded so regressions (bigger or slower in the second capture) stand out from improvements. Ideal for before/after performance work, comparing two environments, or A/B captures. Both files are parsed entirely in your browser and never uploaded.

How to use HAR Compare / Diff

  1. Export two HAR files from your browser DevTools (Network tab → “Save all as HAR”) — for example one before and one after a change.
  2. Drop the baseline into A and the comparison into B (or paste the JSON).
  3. Read the summary cards for the overall change in request count, transfer size, and load span.
  4. Filter by Added / Removed / Changed and search by URL to focus on what moved.
  5. Use Swap A/B to flip the direction of the comparison.

Frequently asked questions

How are requests matched between the two files?
Requests are paired by their HTTP method plus full URL. When the same method+URL appears more than once, the occurrences are matched in order. Anything only in A is “removed”, anything only in B is “added”, and matched pairs are “changed” or “unchanged” based on status, size, and time.
What do the colors mean?
Deltas are shown from A to B. Red means a regression in B (larger transfer or slower), green means an improvement (smaller or faster). This applies to both the per-request delta columns and the summary totals.
Are my HAR files uploaded?
No. Both captures are read and compared locally in your browser. Nothing is sent to a server — which matters because HAR files often contain auth headers, cookies, and request bodies.

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.