sodcalculator

10 Tech How-To

Close Unused Tabs Automatically in Chrome, Edge & Safari

Guide 10-30567 · Updated · Step by step

If your browser is cluttered with dozens of open tabs, you can set it to automatically close tabs you haven’t used in a while. This guide shows you how to enable automatic tab discarding and sleeping in Chrome, Edge, and Safari, plus how to use built-in tab limiters and third-party extensions to keep your tab bar manageable.

What You’ll Need

  • Google Chrome (version 90 or later) – for tab discarding and auto-close extensions
  • Microsoft Edge (version 90 or later) – for sleeping tabs and tab auto-close extensions
  • Safari (macOS Ventura or later) – for tab sleeping and tab groups
  • A browser extension like Auto Tab Discard (Chrome/Edge) or Tab Suspender (Safari) – optional but recommended

Step-by-Step

Google Chrome

  1. Enable automatic tab discarding (built-in): Type chrome://flags in the address bar and press Enter. In the search box, type “automatic tab discarding.” Find the flag named Automatic Tab Discarding and set it to Enabled. Click Relaunch at the bottom to apply. This makes Chrome discard inactive tabs when memory is low – they’ll reload when you click on them.
  2. Set a maximum tab limit (using an extension): Since Chrome doesn’t have a native auto-close feature, install an extension like Auto Tab Discard or Tab Wrangler from the Chrome Web Store. After installing, click the extension icon and set a maximum number of tabs (e.g., 20). Tabs beyond that limit will be automatically closed (or discarded, depending on the extension).
  3. Use Tab Groups to manually manage: Right-click a tab and select Add tab to group. Name the group and color-code it. This doesn’t auto-close, but it makes it easier to close whole groups at once by right-clicking the group name and choosing Close group.

Microsoft Edge

  1. Enable Sleeping Tabs (built-in): Click the three-dot menu (⋯) and go to Settings → System and performance. Under Optimize performance, toggle on Save resources with sleeping tabs. Choose a time after which inactive tabs sleep (e.g., 5 minutes). Sleeping tabs free up memory but remain visible – they’ll wake up when you click them.
  2. Set an automatic tab discard (similar to Chrome): Type edge://flags in the address bar, search for “automatic tab discarding,” enable it, and relaunch. This works like Chrome’s flag.
  3. Use an extension for auto-closing: Install Auto Tab Discard or Tab Wrangler from the Edge Add-ons store. Configure it to close tabs after a set inactivity period or when the tab count exceeds a limit.

Safari (macOS)

  1. Enable Tab Sleeping (built-in): Open Safari and go to Safari → Settings (or Preferences) → Tabs. Check the box that says Automatically close tabs and choose a timeframe (e.g., after one day, one week, or one month). This closes tabs that haven’t been viewed in that period.
  2. Use Tab Groups to manage manually: Click the sidebar icon (top left) to show the sidebar. Click the + button to create a new Tab Group. Drag tabs into it. You can close an entire group by right-clicking the group name and selecting Close Tab Group.
  3. Install a tab suspender extension (optional): For more aggressive auto-closing, search the App Store for “tab suspender” or “tab auto close” extensions. Many are free and let you set a custom inactivity timer.

Common Mistakes

  • Confusing “sleeping” with “closing”: Sleeping tabs are still open – they just free up memory. If you want the tab actually gone, use an auto-close extension or Safari’s built-in auto-close feature.
  • Setting too low a limit: If you set a maximum of 5 tabs, you’ll constantly lose tabs you need. Start with 15–20 and adjust.
  • Forgetting to whitelist important sites: Many extensions let you exclude specific domains (e.g., Gmail, banking). If you don’t, you might lose a draft or a logged-in session.
  • Not saving sessions before closing: If you rely on auto-close, you might lose a group of tabs you wanted to keep. Use browser’s “reopen closed tabs” feature (Ctrl+Shift+T / Cmd+Shift+T) or save a bookmark folder first.

Tips

  • Use a one-click close-all button: In Chrome and Edge, you can right-click a tab and choose Close other tabs or Close tabs to the right for quick manual cleanup.
  • Pin frequently used tabs: Right-click a tab and select Pin. Pinned tabs take up less space and are less likely to be closed by auto-close features (though not always – check your extension’s settings).
  • Use bookmarks for future reading: Instead of keeping a tab open, bookmark it (Ctrl+D / Cmd+D) and close it. This keeps your tab bar clean without losing the page.
  • Set a reminder to review your tabs: Once a week, go through your tabs and close the ones you don’t need. This prevents the “tab hoarding” habit.

Troubleshooting

  • Extension not closing tabs automatically: Check that the extension is enabled (not paused) and that you’ve set the correct time/limit. Also, make sure the extension has permission to access the tabs – go to the extension’s settings and re-enable permissions.
  • Chrome flag doesn’t appear: The “Automatic Tab Discarding” flag may be removed in newer versions. If you don’t see it, rely on an extension instead.
  • Safari’s auto-close doesn’t work: Make sure you’re using a recent macOS (Ventura or later). In older versions, this feature isn’t available. Also check that you haven’t set the timeframe to “Never.”
  • Sleeping tabs wake up too quickly: If you’re using Edge, increase the inactivity time in Settings → System and performance. Some sites (like streaming) may keep the tab active – you can exclude them.
  • Lost a tab you needed: Press Ctrl+Shift+T (Windows/Linux) or Cmd+Shift+T (Mac) to reopen the last closed tab. Repeat to reopen multiple tabs. In Safari, use History → Recently Closed.

Frequently Asked Questions

Will auto-closing tabs lose my unsaved form data?

Yes, if a tab is closed, any unsaved input in a form (like a draft email) is lost. Use an extension that “discards” tabs instead of closing them – discarded tabs reload when you click, so your state is preserved.

Can I set different auto-close rules for different sites?

Yes, many extensions let you whitelist or blacklist domains. For example, you can keep Gmail always open but auto-close social media tabs after 10 minutes.

Does auto-closing tabs speed up my computer?

Yes, closing or sleeping tabs frees up RAM and CPU, which can make your browser and overall system faster, especially if you have many tabs open.

Are there any downsides to sleeping tabs?

Sleeping tabs may reload when you click them, which takes a few seconds. Some sites (like online games or video calls) may disconnect if they sleep. You can exclude those sites in settings.

Can I undo an auto-close?

Yes, use the browser’s “reopen closed tab” shortcut (Ctrl+Shift+T / Cmd+Shift+T) immediately after. Some extensions also have an “undo” button in their popup.

Do these features work on mobile browsers?

Chrome and Safari on mobile have limited tab management. On Android, Chrome has a “tab discard” feature built-in. On iOS, Safari has “Close Tabs” automatically after a set time in Settings → Safari → Close Tabs.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →