Skip to content
midgeDocs
HAR filesHow to export a HAR file in Firefox
HAR files

How to export a HAR file in Firefox

Export a HAR file in Firefox from the Network Monitor: persist logs, reproduce the issue, use Save All As HAR, and strip secrets before sharing.

To export a HAR file in Firefox, press Ctrl+Shift+E (Cmd+Option+E on Mac) to open the Network Monitor, turn on Persist Logs in the gear menu at the right end of its toolbar, reload the page and reproduce the problem, then choose Save All As HAR from that same menu. You can also right-click any request in the list and pick Save All As HAR.

Firefox’s documentation does not describe a sanitized export like the one in Chrome and Edge, so assume the file contains everything: cookies, authorization headers, request bodies and responses. Run it through the HAR sanitizer before you share it. The sanitizer works in your browser and never uploads the file. The steps below follow Mozilla’s Firefox DevTools documentation. Menu names have moved between Firefox versions, so if a label differs slightly, look for the closest match.

Step 1: Open the Network Monitor

Go to the page where the problem happens, then use one of these:

  • Press Ctrl+Shift+E on Windows and Linux, or Cmd+Option+E on Mac. This opens the developer tools directly on the Network panel.
  • Press Ctrl+Shift+I or F12 (Cmd+Option+I on Mac) to open the developer tools, then click Network.
  • Open the Firefox menu (the three-line button) and choose More tools, then Web Developer Tools, then click Network.

When it first opens, the Network Monitor is empty. It starts showing requests as soon as the page makes them, so the next steps include a reload. Once monitoring, Firefox records requests any time the developer tools are open, even if you switch to another panel such as the Console.

Step 2: Turn on Persist Logs

By default, the Network Monitor clears its list each time you navigate to a new page or reload. That is a problem for sign-in flows, redirects and checkouts, where the request you need happens just before a navigation.

Open the gear menu at the right end of the Network Monitor toolbar and select Persist Logs. Older Firefox documentation calls this option “Enable persistent logs”. With it on, the list keeps growing across page loads until you clear it.

Two more toolbar controls are worth knowing:

  • Disable Cache: a checkbox in the toolbar. Check it if the problem might be caused by a stale file, or to see what a first-time visitor downloads.
  • Throttling: a drop-down that emulates slower connections such as Regular 3G or Good 2G. Leave it on no throttling unless the problem only happens on slow networks.

Step 3: Clear the list and reproduce the problem

Click the clear icon at the left end of the toolbar to empty the request list. This keeps the file small and keeps unrelated personal data out of it.

Now reproduce the problem:

  1. Reload the page if the issue happens during loading.
  2. Perform the exact steps that trigger it: click, submit, upload, navigate.
  3. Wait until the error appears, then a moment longer so slow requests can finish.

Check the Status column: Firefox shows each code on a colored background so unusual ones stand out, and a red blocked icon for requests the browser or server blocked. Click a request to open the details pane: the Headers tab shows the status and headers, and the Response tab shows what the server sent back. If you see an error message there, copy it into your report as well.

If the list is long, type a filter like status-code:500 in the filter box to find errors. Clear the filter before exporting.

Step 4: Save All As HAR

Open the gear menu at the right end of the toolbar again and choose Save All As HAR. Firefox opens a save dialog and writes a .har file.

The same option is in the context menu: right-click any request in the list and pick Save All As HAR. Mozilla’s documentation describes it as creating a HAR file for all requests listed, so if you typed a filter or selected a type such as XHR, clear it first or you may get a partial file.

If you would rather paste than attach, Copy All As HAR (in the gear menu, or under Copy in the context menu) puts the same data on the clipboard. For a long session, a file is more practical.

What a Firefox HAR file contains

A HAR file is a JSON record of each request: the URL, method, request and response headers, cookies, query parameters, request body, status code, response body and timing phases. Our explainer on what a HAR file is walks through the structure with an example.

From a privacy point of view, assume a Firefox export can include:

  • Your session cookies, which can let someone act as you without a password.
  • Authorization headers with bearer tokens or API keys.
  • Tokens in URLs, such as OAuth code or access_token parameters.
  • Anything you typed into forms while recording, including a password if you signed in.
  • Personal data in responses, like names, emails and order details.

Remove secrets before you send it

Open the HAR sanitizer and choose your file. It removes authorization and cookie headers, headers named like token, secret, key or session, sensitive URL parameters, password, token and card fields in request and response bodies, JWTs, known API key formats and card numbers. Emails and phone numbers are half-masked so the recipient can still tell which account is involved. You can add field names that are private in your own app.

The sanitizer follows rules, so it can miss a secret with an unusual name and format. After downloading the sanitized file, open it in the HAR viewer and skim the requests that matter. Our guide on removing sensitive data from a HAR file lists what to look for.

If the support team asked for cookies specifically, send the unsanitized file only through their support channel, and sign out of the app afterward. In most apps, signing out ends the session so the cookie in the file stops working.

Check the file before sharing

To make sure the export worked, open the gear menu and choose Import HAR to load the file back into Firefox, or open it in the HAR viewer. Confirm the failing request is there with its status and response. If the file is large, zip it before attaching; HAR files are text and compress well.

Troubleshooting

The list is empty. The Network Monitor shows requests only after it starts monitoring. Reload the page with the panel open.

The request that failed is gone. A navigation cleared the list. Turn on Persist Logs and try again.

You only need one request. Right-click it and choose Copy, then Copy as cURL or Copy as Fetch. That copies the request’s headers too, which can include cookies and tokens, so check it before you paste it into a shared channel.

Reporting bugs from Chrome instead

Midge, a free bug-reporting extension, is a Chrome extension, so it does not help inside Firefox. If you reproduce the same bug in Chrome, it records your screen or takes a screenshot and attaches the console and network activity automatically. Every recording includes console logs, network requests, user actions and device info. Passwords, card numbers, tokens and cookies are redacted in your browser before anything leaves your device. For Firefox-only bugs, the HAR export above is the right tool.

Official documentation

The browser steps above were checked against these pages on November 10, 2026. Browser menus change between versions, so the official pages are the place to look if a label has moved.

Frequently asked questions

Where is Save All As HAR in Firefox?

Open the Network Monitor and click the gear menu at the right end of its toolbar, or right-click any request in the list. Both menus include Save All As HAR.

Does Firefox remove cookies from HAR exports?

Firefox’s documentation does not describe a sanitized export, so treat the file as complete, including cookies and authorization headers. Clean it with a HAR sanitizer before sharing.

Why is my Firefox HAR file missing requests?

The Network Monitor clears its list on every navigation unless Persist Logs is on, and it only records while the developer tools are open. Turn on Persist Logs, clear any filter, and reproduce again.

Can I import a HAR file into Firefox?

Yes. The same gear menu in the Network Monitor toolbar has an Import HAR option.