Privacy & site controls

Firefox Multi-Account Containers: keep two accounts apart

Keep two accounts open on the same website, choose when to assign a site and repair a wrong container without deleting your sign-ins.

Get extension

Open one Firefox container for your work account and another for your personal account, then sign in separately in each. Firefox Multi-Account Containers keeps their website cookies apart, so both accounts can stay open in the same window. I'd leave that site's Always Open rule unset when you regularly use both accounts: a single automatic destination can send the next link to the wrong identity.

Choose Mozilla's extension for desktop Firefox

Use Firefox Multi-Account Containers by Firefox. The official extension is free and open source under MPL 2.0. Multi-Account Containers Tools by DJS is a different product; its similar name doesn't make it the Mozilla extension.

The steps here use version 8.4.1, whose minimum desktop Firefox version is 91.1.0. Its release note addresses compatibility with Firefox 162. Use a maintained Firefox release that your organization supports. This package doesn't run in private windows, and the guide doesn't apply to Firefox mobile. Chrome, Edge and Brave don't provide Firefox's contextual identities API; a session helper for another browser isn't the same extension.

Read the permissions before adding it. Required access includes browsing history, browser tabs and data for all websites. Optional permissions cover bookmarks, browsing-data cleanup, proxy settings and communication with the Mozilla VPN application. The store says the extension doesn't require data collection. That declaration describes collection; it doesn't remove the capabilities needed to manage tabs, cookies and routing.

Open and verify two separate sign-ins

Start with two clearly named containers. Work and Personal are useful only if you also check the account shown by the website. A colored tab tells you which cookie store you're using; it doesn't verify that you typed the intended credentials.

  1. Add the official extension to desktop Firefox and finish its introduction. Sync and Mozilla VPN are optional for this basic workflow.
  2. Open its toolbar popup and choose Manage Containers. Edit the existing Work and Personal containers, or choose New Container, enter a name, choose a color and icon, and confirm with OK.
  3. Return to the main popup, choose Open New Tab in… > Work, and navigate to the website. Sign in with the work account.
  4. Choose Open New Tab in… > Personal, visit the same website, and sign in with the personal account.
  5. Check the container name and color in Firefox's address bar, then open the website's account menu in each tab. Confirm the email address or account identifier before sending, buying or changing settings.

The expected result is two tabs on the same site showing different accounts. New containers begin with their own cookie stores; a login from an ordinary tab doesn't move into them. When you open another tab in Work, it uses Work's existing sign-in cookies. Mozilla's explanation of container cookie stores describes that separation.

If both tabs show the same account, compare their container names first. Two Work tabs share Work's cookies. Open a Personal tab explicitly, check for an unwanted Always Open rule, and sign in with the other account there. If the containers differ but the website's account identifier matches, confirm which credentials you used before clearing either session.

Long-pressing Firefox's new-tab button also opens a container chooser. For an external email link or a fresh browsing session, I'd explicitly open the intended container first and enter the address there. Don't assume the ordinary new-tab shortcut or a link opened by another application picked your work identity.

Choose New Tab, Reopen or Always Open deliberately

These commands solve different problems. Open New Tab in… starts a tab with the selected container's cookies. Reopen This Site in… opens the current address using another container's cookies; it doesn't transfer the current login or unfinished form. Save work before reopening a page.

Firefox Multi-Account Containers popup with Open New Tab, Reopen This Site, Sort Tabs and Always Open This Site commands
Use Open New Tab for a fresh container tab and Reopen for the current address. Always Open creates a routing rule.

Always Open This Site in… assigns the site's hostname to one container. Use it when one identity should normally receive that site's links. Open the site, select the command, and choose the destination container. On the navigation confirmation, read both choices before selecting Remember my decision for this site. The remembered decision determines where later visits go.

For two accounts on the same hostname, my default is explicit Work and Personal tabs with no automatic assignment. The rule can't choose an account by reading which inbox you wanted, and assigning a URL path doesn't create a separate path-specific rule. Different subdomains can have different assignments; assigning one hostname doesn't automatically cover every login or service hostname.

Existing tabs in other containers can remain exempt from a newly created rule. Seeing both accounts still open immediately after assigning the site doesn't prove future links will choose correctly. Check with a fresh container tab before relying on the rule.

Remove a wrong assignment without clearing your login

If a site keeps jumping into Work when you want Personal, fix its assignment before deleting data. Open the toolbar popup, choose Manage Containers > Work > Manage Site List…, find the hostname and use its trash icon, labeled Remove this site. Repeat for another hostname only if it has its own unwanted rule.

That trash icon removes the routing assignment. It doesn't clear the site's cookies. Reopen the address in the intended container and check the website's account menu again. The neighboring circular-arrow button is different: its tooltip says Clear cookies for this site.

Version 8.4.1 also coordinates site assignments with Firefox's own site associations when that browser API is available. If a rule reappears, inspect the browser's container assignment and the extension's Sync settings rather than repeatedly deleting the container.

A sign-in page opens outside the expected container. Check whether its hostname has a conflicting assignment. Also inspect Manage Containers > [container] > Limit to Designated Sites. When enabled, an unassigned top-level site is routed out of that container. Without the restriction or a competing assignment, navigating to an unassigned site continues in the current container. I'd leave the restriction off during initial setup, particularly for services that send sign-ins through several hostnames. If you use it, keep the required sign-in hosts in the same intended container and verify the account after the redirect.

Separate routing repair from cookie cleanup and deletion

Save unfinished work and confirm you can sign in again before clearing cookies or deleting a container. These actions can remove an authenticated session. The site-cookie button can act as soon as the cleanup permission is granted, without a separate confirmation dialog. Don't delete a container just to stop one address opening there.

ActionWhere to find itWhat changes
Remove this siteManage Containers > container > Manage Site List… > trash iconRemoves that hostname's automatic assignment. Existing cookies remain.
Clear cookies for this siteThe circular-arrow icon beside the hostname in Manage Site List…Clears that site's cookies within the selected container. Cookies on separate associated domains aren't included.
Clear storage and cookiesArrow beside the container in the main popup > Clear storage and cookiesRequests the optional cleanup permission and a confirmation. Version 8.4.1 removes that container's cookies and local storage while keeping the container.
Delete This ContainerManage Containers > container > Delete This ContainerCloses its active tabs and removes the container, its assignments and associated browsing data.

The distinction follows the extension's assignment and site-cookie handling. Clearing one hostname's cookies might leave a separate sign-in provider authenticated. The container-wide command removes cookies and local storage; don't read its label as a guarantee that every kind of cached or stored data has been erased.

Closing a container tab normally leaves its stored cookies available for the next visit, subject to your browser's cleanup settings and the site's session expiry. Browser-wide cookie clearing can sign you out of containers too; their labels don't protect cookies from that cleanup. If sign-ins disappear after every restart, inspect Firefox's cookie-clearing choices and any cleanup extension before rebuilding the containers.

Use Sync for container setup, not saved website sessions

Choose the popup's information icon to open the extension's options, then use Enable synchronization if you want containers and site assignments on other computers connected to your Mozilla account. You don't need to enable it to keep two local accounts open.

The extension's Sync implementation shares container definitions and assignments. It doesn't copy the websites' cookies or make the other computer already signed in. Verify each account there after signing in. Deletions can propagate through Sync too, so Sync isn't an undo copy to rely on before removing a container.

If configuration seems missing, first confirm you're in the expected Firefox profile and inspect the container list and synchronization setting. Keep a private record of important names and site assignments before changing the setup. Avoid resetting or reinstalling as a first troubleshooting step; creating the same container name again doesn't restore its old website cookies.

Choose the separation you need

Firefox's Total Cookie Protection already separates cookies by website, but it doesn't give two tabs on the same domain separate account sessions. Mozilla explains why containers still help with same-site accounts. This is the clearest reason I'd add Multi-Account Containers to a current Firefox setup.

Containers remain inside one Firefox profile. Bookmarks, saved passwords, extensions and browsing history aren't separate private workspaces for each container. Choose separate Firefox profiles with their own browsing data when you need different extensions, history, bookmarks or saved-login setups. For people who share a computer, a container color isn't an access-control barrier.

The extension alone doesn't change your IP address or prevent every way of recognizing a browser or a signed-in account. Mozilla VPN integration requires a separate subscription, additional permissions and the VPN to be on. Leave it aside if your task is simply keeping two accounts open. Setting a custom proxy also isn't a promise of anonymous browsing.

For sessions you want discarded after use, Temporary Containers addresses a different session lifecycle; check its current maintenance and cleanup behavior before adopting it. Cookie AutoDelete adds cookie-cleanup rules, which can also remove the persistent sign-ins you wanted to keep. I'd establish the two-account workflow first, then consider cleanup through the privacy extension hub if you have a separate reason to erase those sessions.

About Rasmus Senlogan

I build desktop applications, browser extensions and plugins. I created ExtensionTools to organize the tools I've collected and built, and help others find useful software.

Compare your shortlist

Different tools solve different problems. Start with the task.

For current pricing and permissions, check the developer's website and your browser's extension store.

Useful for

Before you add it

Available for

Visit official website

Choose your browser on the developer's website. Review the store listing and requested permissions before installing.