Alternatively referred to as Control+F4 and C-f4, Ctrl+F4 is a keyboard shortcut often used to close a tab or window within a program.

How to use the Ctrl+F4 keyboard shortcut

To use this keyboard shortcut, press and hold either Ctrl key, and while continuing to hold, press the F4 key.

If you want to close a program and all of its tabs and windows, use the Alt+F4 keyboard shortcut.

  • How to use the Ctrl+F4 keyboard shortcut.
  • Ctrl+F4 in an Internet browser.
  • Ctrl+F4 in Excel and other spreadsheet programs.
  • Ctrl+F4 in Microsoft Windows.
  • Related keyboard shortcuts and keys.
  • Related information.
  • Computer keyboard shortcuts.

Ctrl+F4 in an Internet browser

In all major Internet browsers (e.g., Chrome, Edge, Firefox, Opera), pressing Ctrl+F4 closes the active tab, or the entire browser if only one tab is open.

  • Firefox shortcuts
  • Google Chrome shortcuts
  • Internet Explorer shortcuts

Ctrl+F4 in Excel and other spreadsheet programs

In Microsoft Excel and some other spreadsheet programs, pressing Ctrl+F4 closes the active workbook.

  • Full list of Excel shortcuts.

Ctrl+F4 in Microsoft Windows

In Microsoft Windows, pressing Ctrl+F4 will close the active tab or window in a program that supports multiple tabs or windows.

  • Full list of Outlook shortcuts.

Below are links to related keyboard shortcuts and individual key pages.

  • Alt+F4
  • Ctrl
  • Ctrl+W

Ctrl, F, Find, Keyboard shortcut, Keyboard terms, Search

  • Computer keyboard shortcuts.
  • Top 10 keyboard shortcuts everyone should know.
  • Keyboard help and support.