Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Auto Close Safari Tabs in macOS Sonoma

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, macOS Sonoma can automatically close Safari tabs after a set number of days. This feature, called “Automatically close tabs,” is built into Safari’s settings and works for both the main tab bar and Tab Groups. You can set it to close tabs after one day, one week, or one month. No additional software is needed—just a few clicks in Safari’s settings.

What You'll Need

  • A Mac running macOS Sonoma (or a later version, as the steps are similar)
  • Safari open (any window is fine)

Step-by-Step

  1. Open Safari. Click the Safari icon in your Dock or launch it from the Applications folder.
  2. Open Safari’s Settings. In the menu bar at the top of the screen, click Safari (next to the Apple logo), then select Settings… (or press Command + , on your keyboard).
  3. Go to the Tabs section. In the Settings window that appears, click the Tabs icon at the top (it looks like a rectangle with a plus sign).
  4. Find the “Automatically close tabs” dropdown. Look for a section labeled “Automatically close tabs:” with a dropdown menu next to it. The default is “Manual,” meaning tabs stay open until you close them.
  5. Choose a time frame. Click the dropdown and select one of the options:
    • After One Day – closes tabs that are older than 24 hours.
    • After One Week – closes tabs after seven days.
    • After One Month – closes tabs after 30 days.
  6. Apply the setting to Tab Groups (optional). If you use Tab Groups, you can set the same automatic closing for those tabs. In the same Tabs settings, there is a separate dropdown for “Automatically close tabs in Tab Groups:”—choose the same or a different time frame.
  7. Close the Settings window. Your changes are saved automatically. Tabs that have been open longer than the chosen period will be closed the next time you open Safari (or after a short delay).

Note: The exact wording of menu items may differ slightly depending on your macOS version, but the steps are essentially the same.

Common Mistakes

  • Setting the wrong dropdown. There are two dropdowns in the Tabs settings: one for regular tabs and one for Tab Groups. If you want all tabs closed, set both.
  • Expecting tabs to close immediately. The feature only closes tabs that are older than the chosen time frame. A tab you opened 10 minutes ago won’t close even if you set “After One Day.”
  • Thinking it applies to pinned tabs. Pinned tabs are not affected by this setting. They stay open until you close them manually.
  • Using an older macOS version. This setting is only available in macOS Sonoma (13.0) and later. If you’re on an older version, you won’t see it.

Tips

  • Use “After One Week” as a good balance. It keeps tabs available for a few days but prevents a huge buildup.
  • Combine with Tab Groups. If you have a Tab Group for research or a project, set it to “After One Month” so you don’t lose work, while keeping your main tab bar on a shorter cycle.
  • Check your tabs before the deadline. If you have tabs you want to keep, close them manually and reopen them later—or save them to Reading List (right-click the tab and choose “Add to Reading List”).
  • Use “Close Tabs” manually when needed. If you want to clear all tabs right now, right-click any tab and choose “Close Other Tabs” or “Close All Tabs.”

Troubleshooting

If the setting doesn’t seem to work:

  1. Check the time frame. Make sure you selected a period that is shorter than how long the tabs have been open. If you just opened a tab, it won’t close until the time passes.
  2. Restart Safari. Quit Safari completely (Command + Q) and reopen it. This forces Safari to apply the setting.
  3. Check for updates. Go to System Settings > General > Software Update to ensure you have the latest macOS version. Some earlier Sonoma versions had bugs.
  4. Verify you’re looking at the right tabs. The setting only applies to tabs in the main tab bar and Tab Groups, not to Private Browsing windows. Private tabs are never auto-closed.
  5. Reset Safari settings (if all else fails). Go to Safari > Settings > Privacy, and click “Manage Website Data…” to remove some data—this sometimes fixes glitches. You can also try clearing Safari’s cache, but be aware this may log you out of websites.

Frequently Asked Questions

Will this close tabs that I have pinned?

No. Pinned tabs are always excluded from automatic closing. They stay until you close them manually.

Does the timer reset if I visit a tab again?

No. The timer is based on when the tab was first opened, not when you last viewed it. If a tab has been open for 8 days and you set “After One Week,” it will close even if you just looked at it.

Can I set different time frames for different Tab Groups?

No. The setting for Tab Groups is global—all Tab Groups share the same time frame. You cannot set one group to one week and another to one month.

Will this close tabs in Private Browsing windows?

No. Private Browsing windows are not affected by this setting. Private tabs close when you close the window or quit Safari.

Can I undo a tab that was automatically closed?

Yes. If you accidentally close a tab, you can reopen it by pressing Command + Z (undo) or by going to History > Recently Closed and selecting the tab.

Does this work on iCloud Tabs from other devices?

No. The setting only applies to tabs open on your Mac. Tabs synced from your iPhone or iPad are not automatically closed by this setting.