How to export a HAR file in Chrome

Open Chrome DevTools, select the Network panel, reproduce the problem and click Export HAR (sanitized). Since Chrome 130 the default export leaves out cookies and authorization headers.

Last updated:

Open HAR PlaygroundFree, no signup. Runs in your browser.

Steps

  1. Open DevToolsGo to the page with the problem. Press F12, or Ctrl+Shift+I (Windows, Linux) or Cmd+Option+I (Mac). You can also right-click the page and choose Inspect.
  2. Select the Network panelClick Network in the tab bar. The red record button should be on.
  3. Turn on Preserve logTick Preserve log so requests stay across page loads and redirects, then click Clear network log (the circle with a line through it) to start with an empty list.
  4. Reproduce the problemReload the page and repeat the steps that fail. Stop recording when the problem has happened.
  5. Export the HARClick the download icon, Export HAR (sanitized), in the toolbar at the top of the Network panel and save the file. You can also right-click any request and use Save all as HAR (sanitized).

Sanitized and with sensitive data

From Chrome 130 the exported HAR no longer contains Cookie, Set-Cookie and Authorization headers. If you need them to debug a login or session problem, open Settings, then Preferences, then Network, and turn on Allow to generate HAR with sensitive data. The export button then offers Export HAR (with sensitive data). Treat that file like a password.

A sanitized export can make a working login look broken: requests that sent a cookie or token appear to have none. HAR Playground notes when it sees a sanitized file and tells you to treat 401 and 403 findings with caution.

What next

Drop the file on HAR Playground to find the failing and slow requests. If you need to send it to someone, sanitize it first. Using another browser? See how to capture a HAR file in any browser.

Catch broken requests before your users do

TestChimp watches your QA posture on every pull request and feeds failures back to your coding agent until they are fixed.

Start your free trial

14-day free trial. No credit card required.