Close Tab Shortcut (Windows, Mac, Chrome, Firefox & More)

The close tab shortcut lets you instantly close the current tab in your browser or application. On Windows, press Ctrl + W. On Mac, press ⌘ Command + W. These shortcuts work in Chrome, Firefox, Microsoft Edge, Safari, and most modern desktop applications.

Platform / BrowserClose Tab Shortcut
WindowsCtrl + W
Mac⌘ Command + W
Google ChromeCtrl + W (Windows) / ⌘ Command + W (Mac)
Mozilla FirefoxCtrl + W (Windows) / ⌘ Command + W (Mac)
Microsoft EdgeCtrl + W (Windows) / ⌘ Command + W (Mac)
Safari⌘ Command + W

What Is a Close Tab Shortcut?

A close tab shortcut is a keyboard command that lets you quickly close a browser tab without using the mouse. It helps you manage tabs efficiently across browsers like Chrome, Edge, Firefox, and Safari on both Windows and macOS, making browsing faster and more time-saving.

Close tab shortcut keyboard illustration showing Ctrl + W for Windows and Command + W for Mac with a browser tab example.

Close Tab Shortcut for Windows

Keyboard shortcuts in Windows make it fast and easy to close tabs in any browser without using your mouse. These commands save time and help you manage multiple tabs efficiently.

Main Close Tab Shortcut

ActionShortcut Key
Close the current tabCtrl + W
Close all tabs / browser windowAlt + F4
Reopen last closed tabCtrl + Shift + T
Switch to next tabCtrl + Tab
Switch to previous tabCtrl + Shift + Tab
Open a new tabCtrl + T

Alternative Keyboard Shortcuts

ActionShortcut Key
Close current tab (alternative)Ctrl + F4
Close multiple tabs (Edge & Chrome)Ctrl + Shift + W
Open a new windowCtrl + N

Keyboard Switch Actuation Tester: Not sure if the shortcut is registering? Test whether your Ctrl, Command, and W keys respond correctly with our Keyboard Switch Actuation Tester.

Close Tab Shortcut for Mac

Using keyboard shortcuts on macOS makes it quick and easy to close tabs in any browser without reaching for the mouse. These commands save time and help you manage multiple tabs efficiently across Safari, Chrome, and Firefox.

Differences between Mac and Windows keyboard shortcuts full guideline.

Main Close Tab Shortcut

ActionShortcut Key
Close the current tabCommand + W
Close all tabs / browser windowCommand + Shift + W
Reopen last closed tabCommand + Shift + T
Switch to next tabControl + Tab
Switch to previous tabControl + Shift + Tab
Open a new tabCommand + T

Other Ways to Close the Current Tab

ActionShortcut Key
Close current tab (alternative)Command + Option + W
Open a new windowCommand + N
Close inactive tabs (Safari)Command + Option + Shift + W

Benefits of Using Shortcuts to Close Tabs

Save time:

Using keyboard and mouse shortcuts to close, open, or restore tabs can save time and help you find the tab you need more quickly. These shortcuts make it easier to navigate browsers, manage tab displays, and keep visible tabs organized without constantly switching to your mouse.

Improve organization:

Closing tabs that are no longer needed or relevant to your current task can improve your browser display and create a cleaner workspace. Shortcuts also help with switching between tabs, managing data entry tasks, and keeping your workflow efficient. By handling multiple tabs effectively, you can simplify tasks and navigate websites more smoothly.

Browse more quickly:

Each open tab uses your computer’s working memory, so reducing unnecessary tabs with shortcuts can improve loading times and processing speed. This helps prevent accidentally closing important tabs, allows you to browse the internet faster, and keeps your computer running efficiently while handling multiple tasks.

Keyboard Latency Test: If the keys work but the shortcut feels delayed or inconsistent, use our Keyboard Latency Test to measure your keyboard’s input response time.

Browser-Specific Close Tab Shortcuts

Different browsers may have slightly different shortcuts for closing, opening, or reopening tabs. The tables below show the most commonly used shortcuts for Chrome, Firefox, Edge, and Safari.

Google Chrome

ActionShortcut Key
Close current tabCtrl + W (Windows) / Command + W (Mac)
Reopen last closed tabCtrl + Shift + T (Windows) / Command + Shift + T (Mac)
Open new tabCtrl + T (Windows) / Command + T (Mac)

Mozilla Firefox

ActionShortcut Key
Close current tabCtrl + W (Windows) / Command + W (Mac)
Reopen last closed tabCtrl + Shift + T (Windows) / Command + Shift + T (Mac)
Open new tabCtrl + T (Windows) / Command + T (Mac)

Microsoft Edge

ActionShortcut Key
Close current tabCtrl + W (Windows) / Command + W (Mac)
Reopen last closed tabCtrl + Shift + T (Windows) / Command + Shift + T (Mac)
Open new tabCtrl + T (Windows) / Command + T (Mac)

Apple Safari

ActionShortcut Key
Close current tabCommand + W
Reopen last closed tabCommand + Z
Open new tabCommand + T

How to Close Tabs Without a Mouse

You can quickly close tabs without using a mouse by relying on keyboard shortcuts. This is especially helpful when working with multiple tabs or when your mouse isn’t available.

Navigate Between Tabs Using the Keyboard

ActionShortcut Key
Close current tabCtrl + W
Close all tabs / browser windowAlt + F4
Reopen last closed tabCtrl + Shift + T

Keyboard Shortcuts for Mac

ActionShortcut Key
Close current tabCommand + W
Close all tabs / browser windowCommand + Shift + W
Reopen last closed tabCommand + Shift + T

How to Close Multiple Tabs or the Entire Window

Sometimes you may want to close several tabs at once or even the entire browser window. Using keyboard shortcuts makes this process fast and easy.

Close Multiple Tabs at Once

ActionShortcut Key
Close multiple tabs (Chrome & Edge)Ctrl + Shift + W (Windows) / Command + Option + W (Mac)
Close inactive tabs (Safari)Command + Option + Shift + W

Close the Entire Browser Window

ActionShortcut Key
Close all tabs / browser windowAlt + F4 (Windows) / Command + Shift + W (Mac)

How to Reopen a Closed Tab

If you accidentally close a tab, most browsers allow you to quickly restore it using simple keyboard or mouse shortcuts.

Reopen a Tab Using the Keyboard

ActionShortcut Key
Reopen last closed tab (Windows)Ctrl + Shift + T
Reopen last closed tab (Mac)Command + Shift + T

Reopen a Tab Using the Mouse

ActionSteps
Reopen closed tabRight-click on the tab bar and select “Reopen closed tab”

How to Open a New Tab Using Shortcuts

Opening a new tab with keyboard or mouse shortcuts allows you to browse faster and manage multiple websites without interrupting your workflow.

Open a New Tab with the Keyboard

ActionShortcut Key
Open a new tab (Windows)Ctrl + T
Open a new tab (Mac)Command + T

Why Isn’t the Close Tab Shortcut Working?

If the close tab shortcut isn’t working, the problem is usually related to your keyboard, the active application, or a shortcut conflict. Try the following solutions before assuming the shortcut is broken.

Check That the Correct Window Is Active

Keyboard shortcuts only work in the active window. Click inside the browser or application you want to use, then press Ctrl + W (Windows) or ⌘ Command + W (Mac) again.

Look for Shortcut Conflicts

Some applications, browser extensions, and keyboard remapping tools can override default shortcuts. If Ctrl + W or ⌘ Command + W doesn’t work in one program but works in others, a shortcut conflict is the most likely cause. Temporarily disable recently installed extensions or custom keyboard software and try again.

Test Your Keyboard

A faulty Ctrl, Command, or W key can prevent the shortcut from working. Press each key individually to make sure it responds correctly. If needed, test your keyboard with an online keyboard tester to confirm that all keys are registering properly.

Restart Your Browser or Computer

Temporary software glitches can sometimes stop keyboard shortcuts from working. Restart your browser first. If the issue continues, restart your computer and test the shortcut again.

Check Application-Specific Shortcuts

Most web browsers use the standard Ctrl + W (Windows) or ⌘ Command + W (Mac) shortcut, but some applications may use different keyboard shortcuts or allow them to be customized. Check the application’s keyboard shortcut settings or documentation if the default shortcut doesn’t work.

Tip: If the shortcut works in one browser but not another, the issue is usually caused by browser settings, an extension, or the application itself—not your keyboard.

If the shortcut still doesn’t work, test your keyboard using our Keyboard Tester to make sure the Ctrl, Command, and W keys are registering correctly.

Frequently Ask Questions

What is Ctrl + N?
Ctrl + N opens a new browser window or a new document in many applications.
How do I close a tab?
Press Ctrl + W on Windows or Command + W on Mac to close the current browser tab.
What is Ctrl + F4 used for?
Ctrl + F4 closes the active tab or document without closing the entire window.
What is Ctrl + Shift + W?
Ctrl + Shift + W closes all open tabs and exits the browser window in most browsers.
What is a tab?
A tab is a section in a browser that lets you open and view multiple websites in one window.

Related Articles