• The keyboard shortcut to close all windows on a Mac is option + command + W. This shortcut should work on most browsers.
  • Or, you can click on File and select Close All Windows in the drop-down menu. This option may not be available on browsers other than Safari.
  • Visit Business Insider's homepage for more stories .

There are plenty of reasons why you may need to close all of your internet tabs at once.

Perhaps you were simultaneously browsing Reddit, Facebook, and The Onion while at work and your boss just walked into the room. Or maybe you have lots of holiday gift ideas on your screen and your spouse just leaned in through the doorway.

Even worse, your Mac might be starting to heat up and slow down because of all those windows you haven't bothered to close. Whatever the reason, you can close all windows on a Mac in seconds flat.

Here's how to do it.

Check out the products mentioned in this article:

MacBook Pro (From $1,299.99 at Best Buy)

How to close all your windows on a Mac computer

To close all Mac browser windows with a keyboard shortcut, hold down the option and command keys (the latter is known to some as the Apple key) and then press W. This shortcut should work on most browsers, like Safari and Google Chrome.

How_to_close_all_windows_on_Mac_ _1
How_to_close_all_windows_on_Mac_ _1
Steven John/Business Insider

To close all Mac windows in Safari with your mouse or trackpad, click "File" at the top of the screen then simply select "Close All Windows." You may not have this option when using other browsers.

How_to_close_all_windows_on_Mac_ _2
How_to_close_all_windows_on_Mac_ _2
Steven John/Business Insider

Related coverage from How To Do Everything: Tech :

NOW WATCH: Inside the US government's top-secret bioweapons lab

See Also:

SEE ALSO: The best Macbooks you can buy