Merge layers in GIMP: Merge Down, Visible or Flatten
Choose the merge that matches the result, with clear checks for hidden layers, off-canvas pixels, blend modes and the XCF master.

To merge two layers in GIMP, select only the upper layer and choose Layer → Merge Down; it combines that layer with the next visible layer below it in the same group or stack. To replace the visible composition with one layer, choose Image → Merge Visible Layers…. I'd use Layer → New from Visible while a composite still needs editing, because it makes a combined copy and keeps the original construction. Use Flatten Image only when you want an opaque result and can discard the separate layers.
Choose what should survive the merge
A merge can preserve the picture while removing the things you need for the next edit: separate words, masks, hidden alternatives or pixels outside the canvas. Choose by the structure you want to keep.
| Required result | Command | What survives |
|---|---|---|
| One upper layer combined with the next visible layer below | Layer → Merge Down | The pair becomes one layer. Hidden layers between them are skipped. |
| Several visible layers replaced by one | Image → Merge Visible Layers… | The visible result. Hidden layers remain if Discard invisible layers is unchecked. |
| A combined copy for finishing, with sources retained | Layer → New from Visible | The new copy and the original layers. Later source edits do not update the copy. |
| A selected group reduced to one layer | Layer → Merge Layer Groups | The group's merged result. Check its mode and appearance first. |
| One opaque layer, with all separate layers discarded | Image → Flatten Image | The visible composition against the background colour; no alpha channel or hidden alternatives. |
Save a separate layered XCF before replacing layers. GIMP distinguishes saving the editable XCF from exporting an image. If your only goal is a PNG or JPEG for delivery, export that file and keep the working master layered. You don't need to flatten the master just to obtain an export.
Merge two layers without including a third
- Find the pair in the Layers dialog. Check their order, eye icons and indentation: both should belong to the same stack or parent group.
- Select only the upper layer. Make it visible and confirm that the next visible layer below is the intended destination.
- Choose Layer → Merge Down, or right-click the upper layer and choose Merge Down.
- Check the resulting layer and the full composition. Use Edit → Undo and Redo to compare before committing to further edits.
The word “below” needs care. If a hidden draft sits between your upper layer and a visible photograph, Merge Down skips the draft and merges into the photograph. It doesn't stop at the next row simply because that row is adjacent. The merge implementation searches for the next visible layer in the same container.
Don't select both layers as a shortcut for a single pair. GIMP 3 can process several selected layers, and a selected destination can continue the merge into another visible layer below it. Selecting just the upper layer makes the intended pair explicit.
The result uses Normal mode, 100% layer opacity and an alpha channel, as the Merge Down reference explains. The alpha channel still allows transparent and partly transparent pixels; a 100% layer-opacity setting doesn't make every pixel opaque.
If the lower layer is partly transparent or uses a mode other than Normal, the whole image can change after merging. An opaque Normal base with an adjustment above it is a simpler case than two translucent effects interacting with a photograph beneath them. Compare the edges and colour relationships, not just the number of rows left in the panel.
Merge several layers while keeping hidden work
Merge Visible Layers follows the eye icons, not the highlighted rows. For a few nonadjacent layers, hide the layers you want to exclude, leave the intended ones visible, and use this command. Keep their existing order; moving them together can change how they blend.
- Save the layered master and note which layers are currently visible, so you can restore that arrangement.
- Set the eye icons for the layers to include. For this whole-stack recipe, leave Merge within active groups only unchecked if that option is available.
- Choose Image → Merge Visible Layers…. The documented default shortcut is Ctrl+M; use the menu if your shortcuts differ.
- Choose the result's boundary. Expanded as necessary is my preference while the framing is still unsettled.
- Leave Discard invisible layers unchecked to retain the hidden layers, then click Merge.
- Inspect the combined layer before restoring excluded layers. Turn those layers back on as needed and check the complete image again.

The Merge Visible Layers options control two different kinds of loss: which layers remain and which pixel bounds remain.
- Expanded as necessary makes the merged layer large enough for the layers being combined. It can extend beyond the image canvas.
- Clipped to image trims the merged result to the canvas. Pixels outside that rectangle are lost from the merged layer.
- Clipped to bottom layer uses the bottom merged layer's size and position. A small bottom layer can trim a larger object above it.
Off-canvas loss can be easy to miss: the current picture looks the same, but a later canvas enlargement no longer reveals the cropped material. Keep the expanded boundary when you still need to reposition or reframe the composite.
The group checkbox isn't a general “merge selected layers” switch. Its scope depends on the selected layers' parent containers, and a top-level selection can return the operation to the root stack. For a straightforward group reduction, use Merge Layer Groups instead. For complex groups that interact with the background, retain the structure or make a visible copy of the complete appearance.
Keep the sources with New from Visible
Choose Layer → New from Visible when you want a combined surface for finishing but still need the original words, masks or cutouts. The command creates a new layer from the visible result, leaving its source layers in place.
- Set the source layers' visibility to the exact appearance you want copied.
- Choose Layer → New from Visible and rename the new layer clearly, for example Combined finish.
- Find it in the Layers dialog and check its indentation. If it was added inside a source group, move it outside and above that construction before hiding the source group.
- Check the copy's mode and opacity. Use Normal and 100% when comparing it as a standalone copy.
- Hide the sources and inspect the copy alone, especially partly transparent edges. Then apply the finishing edit to the copy.
Placement matters because the new layer is inserted using the active parent. Don't assume it is always outside every group. Hiding a parent also hides its copy if that copy is still a child.
Visibility matters for another reason. In Normal mode, transparent areas reveal the layers underneath. A partly transparent edge in the combined copy can be composited over the same edge in the still-visible sources, making it look more opaque. Judge the copy alone against the original stack alone, rather than showing both together.
To return to the construction, hide the combined copy and restore the sources' previous visibility. This is a snapshot, not a live link: if you change a source layer, recreate the combined copy when you need the revised appearance. Keep the old copy hidden until you've checked its replacement, so you don't accidentally copy a visible copy into another copy.
Reduce a group, or leave it editable
If several parts only need to move together, a layer group keeps its components available. I'd keep a title's words, outline and shadow separate until the wording and size are settled. A smaller layer count isn't useful if it makes the next correction harder.
To replace an ordinary group with a single layer, select that group's row and choose Layer → Merge Layer Groups. The command appears when the selected layers include a group. Older GIMP 2.10 instructions may show the singular Merge Layer Group label.
The group-merging reference says the resulting layer uses Normal mode and inherits the group's opacity. It also warns that translucent contents or other modes can change the appearance. Compare the group in the full image before and after the merge.
A Pass through group needs different treatment. The current group-merge command rejects it with the message “Cannot merge a pass through layer group.” Don't switch it to Normal merely to make the command work: Pass through allows its contents to interact with layers below the group, so changing that mode can change the picture. Retain the group or use New from Visible to capture the complete appearance with the required backdrop.
Two Overlay effects over a photograph illustrate the wider problem. Their combined appearance depends on that photograph; a merged Normal layer isn't automatically an equivalent Overlay effect you can transfer to another background. If you need the effect to remain adjustable on different photographs, keep its construction.
Flatten only for an opaque result
Image → Flatten Image reduces the image to one layer without an alpha channel. The Flatten Image reference explains that transparency is replaced by the background colour. Check the Toolbox background swatch first; it isn't guaranteed to be white.
Flattening uses the visible appearance and discards the separate layers, including hidden alternatives. A hidden original doesn't become a recoverable backup inside the flattened file. Semi-transparent edges are resolved against the chosen background too, so choose a background that suits the intended delivery.
For a transparent logo or cutout, preserve alpha and export to a suitable format such as PNG. The transparent-background guide explains how to check the exported result. Adding an alpha channel after flattening doesn't recreate the original transparent edges or the discarded layer structure.
If the command is unavailable or the result looks wrong
Merge Down is disabled or reports an error. Check the selected upper layer first: it must be visible and have another visible layer below it in the same container. A next visible destination that is a group or has its content locked blocks this merge. Check the indicated destination and any applicable parent lock; remove a lock only if that layer is meant to be changed.
A floating selection is another blocker. Resolve it deliberately before retrying: use To New Layer to keep its contents separate, or the Anchor layer button to combine it with its attached drawable. The floating-selection instructions explain both choices. A Pass through group also cannot be the upper layer for Merge Down. Flattening the whole image is an excessive workaround for these problems.
The wrong layers were included. Undo, then distinguish the two inputs. Merge Down uses the selected layer and the next visible sibling below; Merge Visible uses visibility across its chosen scope. Highlighting two rows doesn't restrict Merge Visible to those rows.
A translucent edge looks thicker or darker. If you made New from Visible, hide the source layers beneath it. If you replaced layers, undo and inspect their modes, opacity and group relationships. A backdrop-dependent blend can change when its separate construction is reduced.
Part of an object is missing. Check whether the merge was clipped to the image or bottom layer. Undo while possible and repeat with Expanded as necessary if those outer pixels need to survive.
The original layers are gone. Use Edit → Undo while the merge remains in the current history. GIMP's undo history isn't saved in an XCF; reopening a saved, merged file doesn't restore the earlier stack. If the document has been closed, return to a separate layered XCF or another backup.
Before delivery, check the full composition, transparent edges and framing at 100% and at the intended viewing size. Reopen the export as well. Keep the layered master available for the changes that tend to arrive after an image looks finished.



