HAR Viewer & HAR File Analyzer (HTTP Archive)

HAR Viewer & HAR File Analyzer (HTTP Archive), a VS Code extension by Zovo

Open a .har file from browser DevTools in VS Code and see every request in a table with a timing waterfall, then copy any call as cURL or save a redacted copy that is safe to share.

Install in VS CodeOpen the Marketplace page

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-har-viewer, version 0.1.1.

HAR Viewer with the request table, the timing waterfall, the secrets warning and the Timing tab of a slow request

The screenshot is a real VS Code 1.142 window running this extension on shop-checkout.har, a sample made by scripts/make-samples.js with fake hosts and fake tokens.

Quick start

  1. In Chrome, Edge or Firefox open DevTools, go to the Network tab and choose "Save all as HAR" (Safari calls it "Export HAR").
  2. Click the .har file in the VS Code Explorer. It opens in HAR Viewer.

Questions people ask

Is HAR Viewer & HAR File Analyzer (HTTP Archive) free?

Yes. HAR Viewer & HAR File Analyzer (HTTP Archive) is free and MIT licensed.

How do I install HAR Viewer & HAR File Analyzer (HTTP Archive)?

Click "Install in VS Code" above, or search for zovo.zovo-har-viewer in the Extensions view.

What you can do

TaskHow
Find failed requestsClick "4 failed" in the summary, or pick Failed in the status list. Failed means 4xx, 5xx or no response at all.
Find slow requestsClick the slow count, or sort by Time. The limit is harViewer.slowRequestMs (1,000 ms by default).
FilterType buttons (Doc, Fetch/XHR, JS, CSS, Img, Font, Media, WS, Other), status, domain and a text box. api -stock keeps rows with "api" and hides rows with "stock".
Inspect one requestClick a row. Tabs show Headers, Payload, Response, Cookies and Timing. Arrow keys move through the rows and Escape closes the pane.
Reproduce a callCopy as cURL or Copy as fetch, the same way DevTools does it. Copy URL and Copy response are next to them.
Keep only some requestsFilter the table, then "Export filtered..." writes those requests to a new HAR.
Share a capture"Save redacted copy..." in the banner, or the command "HAR Viewer: Save a Redacted Copy", or right-click a .har in the Explorer.
Response tab with a pretty JSON body and secret header badges
Only the failed requests, with the 404, 500 and refused rows
The same capture in the Light Modern theme with a 500 response open

What the redacted copy changes

The rules are name-based. A secret stored under an unusual field name, or inside a binary body, is not found, so read the copy before you send it.

The redacted copy, opened without a warning, with the Authorization header replaced

Large files

A HAR is one JSON document, so it is read whole. In the release test a 47 MB capture with 30,000 requests showed its first rows in 0.8 seconds and all rows in under 1 second, a status filter over all 30,000 took about 0.2 seconds, and the rest of VS Code never waited more than 30 ms. Only the visible rows are drawn, so scrolling stays smooth. Files above harViewer.maxFileMB (300 MB by default) show a message instead of loading. Bodies longer than harViewer.maxBodyKB are cut in the details pane, and Copy still copies the full text.

Settings

SettingDefaultWhat it does
harViewer.maxFileMB300Largest HAR that is opened
harViewer.slowRequestMs1000Time at which a request counts as slow
harViewer.maxBodyKB1024Longest body shown in the details pane
harViewer.askForRatingtrueAsk one time for a rating after a few days of use
harViewer.showSupportLinkstrueShow the small Sponsor and More free viewers links in the status line

Privacy

HAR Viewer works offline. It makes no network calls and sends no telemetry. The webview runs under a strict Content Security Policy with no remote scripts, images in a HAR are shown from the file itself, and every value from the file is shown as text, never as HTML.

Known limits

License

MIT

Guides

Install HAR Viewer & HAR File Analyzer (HTTP Archive)

Click the button to open VS Code and install it, or press Ctrl+P (Cmd+P on macOS) in VS Code and run ext install zovo.zovo-har-viewer.

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.zovo-har-viewer, version 0.1.1.

Source code and issues are on GitHub.

All our VS Code extensions

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.