HeartbeatHocusFocusFilesMacHyperTile
Guide

Merge windows on a Mac

Combine an app's windows into one tabbed window, line windows up edge to edge, and what to do instead when you want a cascade or a stack.

By Chethan Kumar S N · Updated

Four windows of the same app is the usual reason people search for this, and a Windows habit is the other one. On a Mac one of those has a real answer and the other does not, so it is worth ten seconds working out which one you have before you go looking for a menu item that was never there.

What a Mac will and will not do with several windows

What you are trying to doOn a MacWhere it lives
Combine an app’s windows into one window with tabsYesWindow > Merge All Windows
Make two windows meet edge to edge, exactly the same heightYes, by draggingDrag one window near the other, or drag its edge
Put two windows side by side without them overlappingYes, macOS 15 and laterTiling: drag a window to a screen edge
Cascade windows in a staircase, one corner behind the nextNoNothing in macOS does this
Hold every window at the same size in a permanent gridNoTiler apps
Keep a set of windows together and swap between setsYes, in a wayStage Manager, or separate desktop spaces

The first three are built in and documented by Apple. The last three are where people start installing things.

Merging an app’s windows into tabs

Apple’s own name for combining windows is merging, and the instruction is one line: in the app that has more than one window open, choose Window > Merge All Windows. The windows of the type you are working in are collected into a single window with a tab for each one, and the tab bar sits under the toolbar where you would expect it.

This command is not something each developer writes. It ships with macOS as part of the system’s window menu set, in the same list as Move Tab to New Window and Show All Tabs, so it turns up in the Window menu of any app that uses the standard tabbed window. Apple’s own example is Mail, and it doubles as the exception worth knowing: Mail has a viewer window and a message window, they are two different types, and only the type you are currently working in is merged. Merge from the viewer and you get your messages in tabs with the drafts still sitting in windows of their own. Nothing is lost, the other type is simply untouched.

If the tab bar is not showing at all, that is a view setting rather than a merge problem. View > Show Tab Bar turns it on, and it stays on in that app.

Undoing a merge is easier than most people expect. Click a tab and choose Window > Move Tab to New Window, or just drag the tab out of the window and let go over the desktop. Drag it back into the tab bar and it rejoins.

Why the merge command is missing or greyed out

The command is either in the Window menu or it is not, and the reason it is not is the reason a lot of this is confusing: it only appears in apps that use macOS’s tabbed windows. An app that draws its own tabs, or that was never written to take documents in tabs, has no Merge All Windows item because there is nothing behind it to call. Nothing is broken and no setting will add it.

When the item is there but greyed out, it is usually one of two things. There is only one window of that type open, so there is nothing to merge. Or you are looking at an app with more than one window type, where one type merges and the other does not. Opening a second document or a second browser window and looking again tells you which one you have.

The setting that decides whether a new window is a tab

Merging tidies up windows you already have open. There is a separate setting that stops the pile building up in the first place, and it is worth knowing because it is the actual answer to “how do I combine windows on a Mac” for most apps.

Open System Settings > Desktop & Dock and scroll to Windows. The Prefer tabs when opening documents pop-up menu has three options, and Apple names them: Never, In Full Screen and Always. Set it to Always and a new document opens as a tab in the window you already have instead of opening another window beside it. Leave it on Never and every document gets its own window.

Apple adds one tip here that is worth more than the setting itself. Even with the option set to Always, Option-Command-N opens a new window, so you are never stuck with tabs you did not ask for. The new-tab shortcut then follows the same setting: with the option on In Full Screen or Always, Command-N adds a tab, and with it on Never, Command-N gives you a window and Option-Command-N gives you the tab.

That preference is per app in effect, because it only applies to document-based apps that use Apple’s tabbed windows. In an app that ignores it, the merge command is still the tidier route.

Lining windows up instead of stacking them

There is one thing macOS does with several windows that feels like stacking without being it, and Apple calls it aligning. Drag a window close to another one and it aligns without overlapping. Nudge two windows towards each other and they meet and stop, edges together, which is how people accidentally build a two column layout that looks deliberate.

The sizing half of it is the useful part. Drag the edge you want to resize and it aligns with the edge of the window next to it, then stops. So you can make two adjacent windows exactly the same height by dragging the shorter one’s bottom edge down past the other window’s edge and letting macOS finish the job. It is a small thing that saves a lot of fiddly dragging.

What this is not is tiling. Aligning does nothing until you drag a window near another one, and it will happily let you build a messy layout. The snap-to-half behaviour is separate: drag a window to the left or right edge of the screen and it fills that half, and on macOS Sequoia and later there are keyboard equivalents too. How to tile windows on a Mac has the full set, including the settings that turn it on and off.

Why there is no cascade on a Mac

If you came from Windows looking for Cascade windows, or Stack windows, or the Show windows side by side menu, the honest answer is that macOS has never had one. Read Apple’s window documentation and the whole vocabulary is there in the section headings: move, align, merge, maximise, minimise, full screen, tile. Ask System Settings, and the Windows section of Desktop & Dock holds the tab preference, the tiling toggles, the gaps between tiled windows, the title-bar double-click action and the minimise animation. There is no string in any of it about cascading or stacking.

This is not a gap anyone forgot to fill. On a Mac every window is a real top level window owned by its app, and the two obvious substitutes are already there: tabs for windows of the same app, and separate desktop spaces or Stage Manager for sets of windows across apps. Apple’s description of Stage Manager is that it arranges your recent windows into a single strip for reduced clutter, which is the nearest thing to a stack the system offers, and you can drag an app into that strip to group it with another. How to use Stage Manager covers the gestures.

What macOS will not give you is a staircase, a pile you can shuffle through, or windows automatically kept the same size. Those are the things people install a window manager for, and the rest of this page is about choosing between the built-in options and that.

When you have too many windows for tabs

Tabs only help inside one app. Once you have four apps open, no merge command will bring them together, and the tools for that are the ones already on the keyboard.

Control-Up Arrow opens Mission Control, which lays every window on that display out in a single layer so you can see what you actually have open rather than guessing. Control-Down Arrow does the same for the front app’s windows alone, as a row of tiles including any window that is not on screen. With Group windows by application turned on in Desktop & Dock, that view sorts your windows by app instead of putting them in one heap, which is a big improvement on a busy desk.

There is one more worth having. Command-Mission Control moves every window aside to reveal the desktop and brings them all back when you press it again. It is the closest macOS gets to clearing the screen, and unlike minimising it does not change anything about the windows themselves. Mission Control has its own quirks on a two display desk, and how to switch between windows on a Mac covers those.

If what you want is the desktop empty rather than arranged, that is a different search, and closing things is the way there. Option-Command-W closes every window of the front app without quitting it, and how to close a window on a Mac has the rest, including what to do when a window refuses to close at all.

What a window manager adds that tabs cannot

Tabs are a within-app answer. Nothing on a Mac combines windows across apps, holds them at a size, or stops a new window landing on top of what you were reading, and those are the complaints that send people looking for a window manager.

The options split three ways. Snappers like Rectangle place a window when you ask and forget about it afterwards. Tilers like AeroSpace and Amethyst keep everything in a grid that reflows as windows come and go. Scrolling window managers like Ribbon take the arrangement away from you entirely: every window gets its own full-height column on one strip that runs past the edges of the screen, so nothing is stacked, nothing overlaps and nothing shrinks. Open something new and it takes the next column along at full size. Control-Option and the arrow keys walk the strip, Control-Option-1 to 9 jump straight to a column, and each display keeps its own strip, its own focus and its own scroll.

That is $15 once for up to 3 Macs, with a full refund within 10 days, on macOS 14 Sonoma or later and Apple silicon and Intel Macs. Drive the strip in your browser, or read how a scrolling window manager works if the idea is new. And if you are still choosing, the best window managers for Mac compares all three kinds side by side.

Questions

How do I merge two windows on a Mac?

Open the app's Window menu and choose Merge All Windows. The app's open windows of the type you are working in are gathered into a single window with a tab for each one, and a tab can be pulled back out into its own window at any time. The command is part of macOS itself rather than something each developer adds, which is why it appears in the Window menu of apps that use the standard tabbed window.

Why is Merge All Windows greyed out on my Mac?

Three reasons cover almost every case. The app has only one window of that type open, so there is nothing to merge. The app does not use the system's tabbed windows, in which case the command is not in its Window menu at all. Or the app has more than one type of window, because Apple's rule is that only the type you are currently working in is merged, so a Preferences panel or a message window is left alone.

Can you cascade windows on a Mac like you can on Windows?

No. macOS has no cascade command and no stack command, and nothing in System Settings arranges windows in a staircase or a pile. Apple's window tools are move, align, merge into tabs, tile, minimise and full screen. If you want a pile you can shuffle through, the closest things on a Mac are tabs inside one app, Stage Manager's strip of recent windows, and a desktop space holding one group of windows.

How do I stack windows on a Mac?

It depends what you mean by stacking. If you mean many windows of the same app, open the app's Window menu and choose Merge All Windows to gather them into one window with a tab each. If you mean keeping a set of windows together and swapping between sets, use Stage Manager or a separate desktop space. If you mean seeing several windows at once without them covering each other, tile them or use a window manager, because macOS will not hold windows in a stack.

How do I unmerge tabs back into separate windows?

Click the tab you want out, then choose Window, then Move Tab to New Window, or simply drag the tab out of the window and let go over the desktop. To see what is in a merged window first, choose View, then Show All Tabs, which shows a thumbnail of every tab in that window, and View, then Exit Tab Overview to come back.

Ready? Buy Ribbon for $15, or read all the guides.