Close Tab Shortcut
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.
Close Tab Shortcut by Browser
| Browser | Windows / Linux | Mac |
|---|---|---|
| Google Chrome | Ctrl + W | Command + W |
| Mozilla Firefox | Ctrl + W | Command + W |
| Microsoft Edge | Ctrl + W | Command + W |
| Safari | Not applicable | Command + W |
What Does the Close Tab Shortcut Do?

The close tab shortcut lets you close the active browser tab without using your mouse. It helps you manage multiple tabs faster when browsing the web, working, or switching between tasks.
You can use this keyboard shortcut in browsers such as Chrome, Microsoft Edge, Firefox, and Safari. The exact key combination depends on whether you use Windows or macOS.
For more useful commands beyond closing tabs, explore our complete guide to keyboard shortcuts for Windows and Mac.
Close Tab Shortcut for Windows
Windows keyboard shortcuts let you close browser tabs without using a mouse. You can also reopen a closed tab, switch between tabs, and manage browser windows more efficiently.
Main Close Tab Shortcuts
| Action | Shortcut Key |
|---|---|
| Close the current tab | Ctrl + W |
| Close the current tab in many applications | Ctrl + F4 |
| Reopen the last closed tab | Ctrl + Shift + T |
| Switch to the next tab | Ctrl + Tab |
| Switch to the previous tab | Ctrl + Shift + Tab |
| Open a new tab | Ctrl + T |
| Close the browser window | Alt + F4 |
| Close the browser window in Chrome and Edge | Ctrl + Shift + W |
| Open a new browser window | Ctrl + N |
These shortcuts work in popular Windows browsers, including Google Chrome, Mozilla Firefox, and Microsoft Edge. Some shortcuts may behave differently in other applications.
To navigate between open webpages before closing a tab, see our guide to switching between browser tabs using keyboard shortcuts on Windows and Mac.
Close Tab Shortcut for Mac
On macOS, keyboard shortcuts make it easy to close tabs in Safari, Chrome, and Firefox without reaching for the mouse. Most Mac browsers use the Command key instead of Ctrl for common tab actions.
For more differences, read our guide to Mac and Windows Keyboard Shortcuts.
Main Close Tab Shortcuts
| Action | Shortcut Key |
|---|---|
| Close the current tab | Command + W |
| Reopen the last closed tab | Command + Shift + T |
| Switch to the next tab | Control + Tab |
| Switch to the previous tab | Control + Shift + Tab |
| Open a new tab | Command + T |
| Open a new browser window | Command + N |
| Close the current browser window | Command + Shift + W in many browsers |
Other Ways to Close Tabs on Mac
The Command + W shortcut closes the active tab in most browsers. If it is the only tab in the window, it may close the window as well, depending on the browser.
To close a tab, make sure the browser window is active before pressing the shortcut. If you close a tab by mistake, use Command + Shift + T in supported browsers to reopen it.
Benefits of Using Shortcuts to Close Tabs
Save Time
Using keyboard shortcuts to close, open, or restore tabs saves time and reduces the need to use your mouse. You can manage browser tabs quickly and move between tasks without interrupting your workflow.
Improve Organization
Closing tabs you no longer need helps keep your browser organized and reduces clutter. Keyboard shortcuts also make it easier to switch between tabs and reopen a closed tab if you need it again.
Manage System Resources
Open browser tabs can use your computer’s memory and processing power. Closing unnecessary tabs may reduce resource usage, especially when several tabs contain demanding websites or applications. This can help your computer run more smoothly when resources are limited.
Related Tool: Keyboard Latency Test — If your keyboard responds slowly or inconsistently, use this tool to check its input response time. A latency test measures keyboard response, not the speed of your browser shortcuts.
Browser-Specific Close Tab Shortcuts
The shortcut for closing a tab is similar across many popular desktop browsers, but some keyboard commands and behaviors differ by operating system. The tables below cover the commonly used shortcuts for Google Chrome, Mozilla Firefox, Microsoft Edge, and Safari.
Use the Windows or Mac shortcut that matches your computer, and check the browser-specific sections below if a shortcut behaves differently.
Google Chrome
| Action | Shortcut Key |
|---|---|
| Close current tab | Ctrl + W (Windows) / Command + W (Mac) |
| Reopen last closed tab | Ctrl + Shift + T (Windows) / Command + Shift + T (Mac) |
| Open a new tab | Ctrl + T (Windows) / Command + T (Mac) |
Mozilla Firefox
| Action | Shortcut Key |
|---|---|
| Close current tab | Ctrl + W (Windows) / Command + W (Mac) |
| Reopen last closed tab | Ctrl + Shift + T (Windows) / Command + Shift + T (Mac) |
| Open a new tab | Ctrl + T (Windows) / Command + T (Mac) |
Microsoft Edge
| Action | Shortcut Key |
|---|---|
| Close current tab | Ctrl + W (Windows) / Command + W (Mac) |
| Reopen last closed tab | Ctrl + Shift + T (Windows) / Command + Shift + T (Mac) |
| Open a new tab | Ctrl + T (Windows) / Command + T (Mac) |
Apple Safari
| Action | Shortcut Key |
|---|---|
| Close current tab | Command + W |
| Reopen last closed tab | Command + Shift + T |
| Open a new tab | Command + T |
How to Close Tabs Without a Mouse
You can close browser tabs without a mouse by using simple keyboard shortcuts. This is useful when working with multiple tabs or when your mouse is unavailable.
Keyboard Shortcuts to Close Tabs
| Action | Windows/Linux Shortcut |
|---|---|
| Close the current tab | Ctrl + W |
| Close the browser window | Alt + F4 |
| Reopen the last closed tab | Ctrl + Shift + T |
| Switch to the next tab | Ctrl + Tab |
| Switch to the previous tab | Ctrl + Shift + Tab |
Keyboard Shortcuts for Mac
| Action | Mac Shortcut |
|---|---|
| Close the current tab | Command + W |
| Close the browser window | Command + Shift + W |
| Reopen the last closed tab | Command + Shift + T |
| Switch to the next tab | Control + Tab |
| Switch to the previous tab | Control + Shift + Tab |
Tip: These shortcuts work in most popular browsers, including Google Chrome, Microsoft Edge, and Mozilla Firefox. Some shortcuts may vary depending on your browser and operating system.
How to Close Multiple Tabs or the Entire Window
If you have several browser tabs open, you can close the current tab or the entire browser window using keyboard shortcuts. The available options depend on your browser and operating system.
Close Multiple Tabs at Once
Most browsers do not provide a universal shortcut to close only selected multiple tabs. You can close tabs individually with these shortcuts:
| Action | Shortcut Key |
|---|---|
| Close the current tab | Ctrl + W (Windows/Linux) / Command + W (Mac) |
| Close the browser window | Ctrl + Shift + W (Windows/Linux, in most browsers) / Command + Shift + W (Mac, in supported browsers) |
Tip: To close several tabs individually, press Ctrl + W repeatedly on Windows or Command + W on Mac.
Close the Entire Browser Window
Use the following shortcuts to close the active browser window. If it contains multiple tabs, closing the window will close those tabs too.
| Action | Shortcut Key |
|---|---|
| Close the active window | Alt + F4 (Windows) |
| Close the active browser window | Command + Shift + W (Mac, in supported browsers) |
These shortcuts close the active window, not necessarily every browser window you have open.
How to Reopen a Closed Tab
If you accidentally close a browser tab, you can usually restore it using a keyboard shortcut. This works in popular browsers such as Chrome, Edge, and Firefox.
Reopen a Tab Using the Keyboard
| Action | Shortcut Key |
|---|---|
| Reopen the last closed tab (Windows/Linux) | Ctrl + Shift + T |
| Reopen the last closed tab (Mac) | Command + Shift + T |
Press the shortcut repeatedly to restore previously closed tabs, one at a time, where supported.
Reopen a Closed Tab Using the Mouse
You can also restore a closed tab without remembering a keyboard shortcut:
- Right-click an empty area of the browser’s tab bar.
- Select Reopen closed tab or Reopen closed window, if available.
The exact menu wording may vary by browser. If the option is unavailable, open your browser history to find the page you closed.
How to Open a New Tab Using Keyboard Shortcuts
Opening a new browser tab with a keyboard shortcut helps you browse faster without using a mouse. You can open a new tab instantly in most popular browsers, including Chrome, Edge, and Firefox.
Open a New Tab with the Keyboard
| Action | Shortcut Key |
|---|---|
| Open a new tab (Windows/Linux) | Ctrl + T |
| Open a new tab (Mac) | Command + T |
After opening a new tab, you can type a website address or search query in the address bar and press Enter.
Why Isn’t the Close Tab Shortcut Working?
If the close tab shortcut isn’t working, the cause may be a keyboard problem, an application issue, or a conflicting shortcut. Try these solutions to identify and fix the problem.
Check That the Correct Window Is Active
Keyboard shortcuts work in the active application. Make sure your browser window is selected, then press Ctrl + W on Windows/Linux or Command + W on Mac to close the current tab.
Look for Shortcut Conflicts
Browser extensions, custom keyboard settings, or other applications may interfere with keyboard shortcuts. If the shortcut works in one browser but not another, temporarily disable recently installed extensions and test it again.
Test Your Keyboard
A faulty Ctrl, Command, or W key may prevent the shortcut from working. Test each key individually using an online keyboard tester to check whether your keyboard registers the keystrokes correctly.
Restart Your Browser or Computer
Temporary software glitches can sometimes affect keyboard shortcuts. Close and reopen your browser, then try the shortcut again. If the problem persists, restart your computer.
Check Application-Specific Shortcuts
Although most browsers support Ctrl + W on Windows/Linux and Command + W on Mac, shortcuts can vary between applications. Check the application’s documentation or keyboard shortcut settings if the command does not work as expected.
Tip: If the close-tab shortcut works in one browser but not another, check the affected browser’s extensions and settings before assuming your keyboard is faulty.
If you’re looking for more ways to navigate your computer efficiently, explore our guide to Windows 11 keyboard shortcuts.
Frequently Asked Questions
1. What is the shortcut to close a tab on Windows?
The keyboard shortcut to close the current tab on Windows is Ctrl + W. Press and hold the Ctrl key, then press W to close the active tab in Chrome, Firefox, Microsoft Edge, or other supported applications.
2. How do I close a tab on Mac using the keyboard?
On Mac, press Command (⌘) + W to close the currently active browser tab. This keyboard shortcut works in Safari, Google Chrome, Firefox, and other Mac applications that support tabbed windows.
3. What is Ctrl + Shift + W used for?
Ctrl + Shift + W closes the current browser window, including its open tabs, in browsers such as Google Chrome and Microsoft Edge on Windows. Unlike Ctrl + W, which closes only the active tab, this shortcut closes the entire window.
4. Why does Ctrl + W close a tab?
Ctrl + W is a keyboard shortcut assigned to the Close command in many browsers and desktop applications. Pressing these keys closes the active tab or document without requiring you to click its close button. The exact behavior can vary depending on the application.
5. How do I reopen a tab I accidentally closed?
To reopen a recently closed browser tab, press Ctrl + Shift + T on Windows or Command + Shift + T on Mac. You can press the shortcut repeatedly to restore multiple recently closed tabs, depending on your browser’s session history.
6. What is the difference between Ctrl + W and Alt + F4?
Ctrl + W closes the active tab or document in supported applications, while Alt + F4 closes the active application window on Windows. For example, Ctrl + W usually closes one browser tab, whereas Alt + F4 closes the browser window.
