Tree Style Tab: organize Firefox tabs into safe branches
Build a small research tree, distinguish collapse from closing and save its links before cleanup or recovery.
Get extensionTree Style Tab organizes open Firefox tabs into parent-child branches, so you can follow a research trail and fold away a topic while keeping its pages open. I'd use it when the relationship between pages matters more than a flat list of titles. Begin with a small tree and learn the arrow before using the close button: closing a collapsed parent in the sidebar closes its whole tree.

Choose Piro's Firefox extension
This article covers Tree Style Tab by Piro (piro_or), the Firefox desktop extension maintained in the piroor/treestyletab project. Release 4.4.10 requires Firefox 139 or later. Chrome and Edge listings with the same name are published by xingtanzjr; their shortcuts and workspace controls belong to a different product.
Firefox already offers a built-in vertical tab layout. Try that first if you only want titles down the side of the window. Tree Style Tab's reason to stay is the hierarchy: a source page can have children, those children can have their own descendants, and each branch can be folded independently.
A sidebar also takes width from the page. If you're working in a narrow window with only a few tabs, use the toolbar toggle to compare the page space with the navigation benefit before committing to it.
Keep Firefox's native tab controls available while learning the sidebar. The developer warns against hiding the horizontal tab bar with userChrome.css, because the extension can't reproduce every native tab feature. A CSS modification isn't a required setup step.
Build one small research branch
The Tree Style Tab toolbar button toggles the sidebar. The suggested shortcut is F1; use the toolbar button if that key has been reassigned or intercepted. The developer's basic tree behavior follows the tab that opened a new page.
- Open a source page containing links, such as a search-results page. Keep that page as your starting parent.
- Open one of its links in a new tab. With the default attachment behavior, the new page appears indented beneath the source in the sidebar.
- From that child page, open another link in a new tab. Check for an additional indentation level beneath the child.
- Click the arrow beside the original parent to collapse its branch. Click the arrow again to expand it and inspect the same descendants.

A new blank tab isn't the same trigger as opening a link from an existing page. Don't use Ctrl+T as the first check of automatic child creation. If linked pages remain separate, review the extension's new-tab attachment settings before moving your whole window into a new arrangement.
Drag and drop can change the tree when a page belongs under a different parent. I'd reorganize a small expanded branch first, then check the resulting indentation. Moving a collapsed parent in the sidebar moves its entire tree, so expand it before deciding how much you want to move.
Separate folding from closing
Collapsing changes which descendants you see in the sidebar. It doesn't save them to bookmarks, close them or establish a memory saving. You can expand the branch to see its open tabs again. Save unfinished work on the websites before any close or unload action.
Closing a collapsed parent through the sidebar closes the entire tree. This is a fixed sidebar behavior in the current close-behavior settings, even when you've selected a different behavior for expanded parents. Don't use the X as a way to tuck a topic out of sight.
For expanded parents, open Firefox's Add-ons Manager, select Tree Style Tab and open its preferences. Find Tree Behavior → When a parent tab is Closed or Moved. Choices include Close Entire Tree (in custom expert settings), Replace closed parent with a Group Tab, Promote the First Child to the new parent always and Promote All Children to the parent level always. The presets and custom settings also distinguish operations in the sidebar from Firefox's native tab bar, keyboard shortcuts and other extensions.
Before closing a parent you want to remove on its own, expand the branch and inspect that setting. I'd keep its children by choosing the appropriate promotion or replacement behavior, then check the result on disposable pages. For a branch you need later, make the bookmark copy below before closing anything.
Save a tree's links before cleanup
Tree Style Tab can save a branch into Firefox bookmarks, with title markers recording its levels. That gives you a separate set of addresses to reopen. It doesn't preserve unsent forms, signed-in page state or a copy of each page's contents.
- Expand the branch and inspect which pages it contains. Save work inside those pages first.
- Right-click the parent in the sidebar and choose Bookmark this Tree…, inside the Tree of tabs submenu when the commands are grouped.
- If prompted, grant bookmark access for this feature. In New Bookmarks, set a useful Name, check the Location, then choose Save.
- Find that folder in Firefox's bookmarks and check a known parent and descendant address. Child titles can have leading > markers; keep those markers and the saved order if you want the hierarchy reconstructed.
- Right-click the saved folder and choose Open All as a Tree. Inspect the reopened indentation and expected pages before closing the original branch.
The bookmark format stores tree levels in titles, rather than turning each child level into a Firefox bookmark subfolder. Renaming away the markers can remove information needed for restoration. Opening saved addresses can also leave you with both the original and reopened pages, so compare the sets before cleanup.
If Open All as a Tree is absent, select Unlock Expert Options in Tree Style Tab's preferences, then find Context Menu → Additional Bookmarks Context Menu Items. Enable that command and confirm bookmark permission. The folder's right-click menu can place tree-opening commands inside a Tree Style Tab submenu when more than one is enabled. For flat results after opening bookmarks, check that Restore tree structure is enabled in the bookmark-opening settings, then inspect the saved title markers and order.
If you need a portable list rather than an active tree, OneTab's saved-link workflow is a separate choice. A URL list alone doesn't promise to carry Tree Style Tab's ancestry. For preserving page contents, use a SingleFile capture alongside the saved address.
Recover a flattened tree carefully
If the pages are still present but their nesting has disappeared, preserve the existing Firefox session backups before experimenting. The developer's tree-corruption recovery instructions warn that changing tabs can overwrite useful recovery information. Copy the profile's sessionstore-backups folder to a safe location before adding, closing or rearranging pages.
Version 4.4.10 adds a recovery attempt in the extension's options: Advanced → Tree Structure Recovery → Try to recover tree structure. Use it after preserving the backup. A successful attempt reports how many tabs had their structure recovered. If no recoverable information is found, it reports No recoverable tree structure information was found. Check the actual parent-child relationships afterward. The button can't recreate information that is no longer available.
When the button can't help, follow the developer's manual recovery procedure with the preserved files. Restoring an older Firefox session can discard tabs and windows created since that backup. Keep the newer backup copy rather than replacing the only remaining evidence of your current session.
A second session manager adds another restore path to inspect. The 4.4.10 release notes include a compatibility fix involving trees moved across windows and Tab Session Manager. That doesn't guarantee every saved session will recover its hierarchy. Verify an expendable saved tree before depending on a combined setup for important work.
Choose between active sidebar managers before combining them. Sidebery adds separate panels and snapshots, but its developer warns that running it alongside Tree Style Tab can produce conflicts over tab positions. Tab Stash serves a different task: putting pages aside as bookmark-backed collections. Keep the active-tree routine here separate from your archive and verify each restore route on a small set.
Review access and device sending
Tree Style Tab needs tab access to show open pages and session access to keep tree information with Firefox's session data. Its 4.4.10 permission manifest makes bookmark access, browser-settings access, clipboard reading, all-site access and tab hiding optional. Enable the access needed for a feature you choose; bookmarking a branch needs bookmark permission.
The developer explains that optional all-site access supports features such as detecting Ctrl during tab switching and displaying simulated previews. Tab-hiding permission is listed for automated tests, rather than ordinary use. Those explanations help you judge a request; they aren't a reason to grant every optional permission in advance.
The project's privacy policy says that configured Firefox Sync can send option data and the URLs you choose to send to another device to Mozilla's Sync servers. Its simulated device-sending feature requires Tree Style Tab on both desktop Firefox installations and doesn't send to Firefox Mobile through that extension menu. Sending links isn't a backup of loaded page state.
I'd keep Tree Style Tab for the work currently branching in the window: open related links, confirm the nesting, fold completed branches and bookmark a tree before removing it. If your main goal is simply putting a long title list down the side, start with Firefox's native vertical tabs. More productivity extensions cover saved-link collections and other ways of putting a task aside.
