# Reopen a closed window on a Mac

> Closing a window does not quit the app, so getting it back usually takes one click. How to reopen a closed window in Safari, Chrome and the Finder.

Source: https://www.ribbonmac.com/guides/how-to-reopen-a-closed-window-on-mac · Updated 2026-11-13

Closing a window on a Mac feels like throwing something away, and on Windows it usually is. On a Mac it almost never is. The window is gone, the app is not, and that difference is the whole answer to getting it back. Apple puts it in one line: click the close button in the top left of an app's window and the window closes, but the app remains open, with a small dot below its icon in the Dock to say so.

So the first thing to work out is which of two situations you are in. Either the app is still running, and the window is one click away, or you quit the app, and then the question is whether macOS saved the window for you. Both have answers, and neither of them is Command-Z.

## The app is still running

Look at the Dock. A dot under an app's icon means it is running, whether or not it has a window on screen. That dot is the thing people miss, because a Mac app with every window closed looks exactly like a Mac app that was never opened. It is also a setting rather than a default: Show indicators for open applications is one of ten rows in the Dock section of System Settings, all of which are listed in [hiding the Dock on a Mac](https://www.ribbonmac.com/guides/how-to-hide-the-dock-on-mac).

To get a window back, click the Dock icon. Apple's own instruction for opening an app is exactly that: "The quickest way to open an app on your Mac is to click the app's icon in the Dock." Double-clicking the app in the Finder does the same thing.

What happens next is worth knowing, because it explains why you sometimes get your window back and sometimes get an empty one. It is a documented part of AppKit, the framework Mac apps are built on. Clicking a running app's Dock icon sends it a reopen event, and Apple describes the default behaviour in the developer documentation for `applicationShouldHandleReopen`:

> These events are sent whenever the Finder reactivates an already running application because someone double-clicked it again or used the dock to activate it. By default the Application Kit will handle this event by checking whether there are any visible NSWindow (not NSPanel) objects, and, if there are none, it goes through the standard untitled document creation... For most document-based applications, an untitled document will be created.

Read that twice and three everyday surprises stop being surprises.

**Why the Dock gives you an empty window in Pages or TextEdit.** The app had no visible window, so the framework asked it for a new untitled document. You did not get the file you closed back, because that file was never part of the window. It is part of a document on disk, and that is a separate route, covered below.

**Why the Dock does nothing at all in some apps.** The method can return false, which tells macOS to do nothing. Apps that refuse to open a window when they have none are rare, but they exist, and the app's own menu is then the only way in.

**Why a minimised window counts as open.** Apple adds that minimised windows, the ones sitting in the Dock as thumbnails, are treated as visible by this check. So if you only minimised a window, clicking the Dock icon brings the app to the front rather than creating anything, and the window is already there waiting. That case is covered in more detail in [how to minimise windows on a Mac](https://www.ribbonmac.com/guides/how-to-minimize-windows-on-mac).

## The app was quit

This is the case where the window really was thrown away, and where macOS is more forgiving than people expect. Apple's tip on quitting apps says it directly: "If an app has windows open when you quit the app, the windows are shown the next time you open the app."

So open the app again before you start rebuilding anything by hand. The windows come back on their own.

That behaviour is a setting, and it can be turned off. The same Apple page gives the path: choose Apple menu, System Settings, click Desktop & Dock in the sidebar, go to Windows, then turn on "Close windows when quitting an application". The description of that switch, as macOS ships it, is equally direct: "When enabled, open documents and windows will not be restored when you re-open an application."

If that switch is on, quitting an app means starting from an empty window next time, and the File menu's list of recently opened documents is then the only road back to the file you were working in. If it is off, which is how macOS ships it, a quit costs you nothing but the wait.

## The one place a real shortcut exists: browsers

Browsers are the exception, because a browser keeps a list of what you closed and gives you a key for it. Their shortcuts look identical and are worth learning, since half the windows people close by accident are web pages.

| App | What the shortcut does | Keys |
|---|---|---|
| Safari | Reopen the last window you closed | Shift-Command-T |
| Safari | Reopen the last tab you closed | Shift-Command-T |
| Safari | Pick an older one from a list | History > Recently Closed |
| Chrome | Reopen previously closed tabs in the order they were closed | Command-Shift-T |

Apple's Safari guide lists Shift-Command-T twice, once for the last window and once for the last tab, under the same key. So if you closed a tab, the key brings the tab back, and if you closed a whole window of tabs, the key brings the window back with its tabs inside it. For anything further back, History and then Recently Closed shows a list of the webpages you closed, and choosing one reopens it.

Chrome's wording is the useful part. Google's own keyboard shortcut page describes Command-Shift-T as "Reopen previously closed tabs in the order they were closed", and the order matters, because pressing it again and again walks backwards through your closed tabs one at a time. Close four tabs, press the shortcut twice, and you get the second one you closed, not the fourth.

What no browser does is reopen a tab after you have quit and relaunched it with a cleared history, so a closed tab is safe for as long as the session and the history that holds it.

## The Finder, which has no such command

The Finder is the app people close by accident most often, and the one with the least sympathy for it. Apple's Finder ships no reopen command at all, which you can check in its own menus: it has New Finder Window and Recent Folders, and nothing called Reopen.

So what you get is a new window, and where it opens depends on a setting. Under New Finder windows show in the Finder's settings you choose the place a fresh window opens in, with Recents as one of the options. Set it to the folder you actually work in and Command-N stops being a disappointment. The Finder's Recent Folders list does a related job. It keeps the places you have been to, so you can walk back to the folder, even though it will not rebuild the window you closed.

## Getting the file back, not the window

For any app that works on documents, the window and the file are two different things, and it is worth knowing which one you actually lost.

Command-N in a document app gives you a new, empty document, which is exactly what the framework above was doing behind the scenes. To reopen the file you were in, use the app's Open Recent list in the File menu, which keeps the documents you have opened recently, and open the one you want. That gives you the window back with the contents, which is what most people mean when they say they closed a window by mistake.

If the window held unsaved changes and you told the app not to save them, that work is gone, and no shortcut on this page brings it back. That is the only case where closing a window on a Mac really does cost you something.

## What will not reopen it

Command-Z. It is undo, it works inside a document, and it has no idea a window used to exist. It is the most common wrong answer to this question, and Apple's list of Mac keyboard shortcuts contains no entry for reopening a window at all, which is the honest reason there is no universal key to learn. Close, minimise, hide, quit and switch all have shortcuts. Reopen is left to each app.

There is also no system-wide record of closed windows to fall back on. Safari and Chrome each keep their own short list, which is why browsers are the one place this works well. Nothing outside the app holds the window you closed, so if the app's own menu and its own history cannot produce it, nothing else will.

## Keeping a window instead of reopening it

Most closed windows are closed on purpose, to clear space, and the habit only exists because a Mac desktop fills up fast. Windows stack on top of each other, the ones underneath stop being readable, and closing some is the quickest way to see anything.

That is the loop Ribbon is built around instead of. Every window gets a full-height column on a strip that runs past the edges of the screen, so windows sit side by side and none of them shrinks to make room for the next one. Widths are remembered per app, so a window opens at the size you gave it last time. Control-Option with the arrow keys walks the strip and carries the focused window along, Control-Option with a number jumps straight to a column, and the order and the widths are still there after a restart. You stop needing to close windows to find your place, which is a better fix than a shortcut for getting them back.

Ribbon is $15, once, for up to 3 Macs, with a full refund within 10 days, and it runs on macOS 14 Sonoma and later on Apple silicon and Intel Macs.

## FAQ

### How do I reopen a window I just closed on a Mac?

Click the app's icon in the Dock. Closing a window does not quit the app, so the app is still running and Apple's own instruction for opening an app is to click its Dock icon. If the app has no window open at that moment, macOS asks it for one, and the answer is a fresh window. Pressing Command-N does the same thing from the keyboard, and double-clicking the app in the Finder works as well.

### Is there a keyboard shortcut to reopen the last closed window on a Mac?

Not a system-wide one. Apple's list of Mac keyboard shortcuts covers closing, minimising, hiding, quitting and switching windows, and it has no entry for reopening one. Individual apps have their own: in Safari, Shift-Command-T reopens the last window you closed, and in Chrome, Command-Shift-T reopens the tabs you closed in the order you closed them. Command-Z is not the answer on either. That is undo inside a document, not a window history.

### How do I reopen a closed Safari window or tab?

Press Shift-Command-T for the last one. Apple's Safari guide gives that shortcut for both Reopen the last window you closed and Reopen the last tab you closed, so the same keys cover whichever you lost. For anything older, or to pick from a list, choose History and then Recently Closed, which shows the webpages you closed and reopens the one you choose.

### How do I get a Finder window back after closing it?

Press Command-N, or choose File and then New Finder Window. The Finder ships no reopen command at all, which you can see in its own menus: it has New Finder Window and Recent Folders, and nothing called Reopen. The new window opens wherever is set under New Finder windows show in the Finder's settings, and the Recent Folders list takes you back to a place rather than to the window.

### Why do my windows come back when I reopen an app, and how do I stop that?

Because macOS saves the windows an app had open when you quit it, and shows them again the next time you open it. Apple's own tip says that in as many words. The switch that stops it is in System Settings, under Desktop & Dock, in the Windows section, and it is called Close windows when quitting an application. Apple's description of it is blunt: when enabled, open documents and windows will not be restored when you re-open an application.
