What "merging" means in Photoshop and when you need it
Merging in Photoshop means combining two or more layers into a single layer. This is different from flattening, which combines every layer in your document into one. You merge layers when you want to reduce file size, lock in edits you've finished with, or prepare an image for export — but you still want to keep other layers separate for further work.
The most common reason to merge is when you've finished adjusting a background layer and a text layer together, and you know you won't need to edit the text separately again. Another reason is to combine multiple adjustment layers into the layer below them, so the adjustments become permanent rather than floating above the image.
Before you merge anything, save a copy of your original file with all layers intact. Once layers are merged, you cannot separate them again without undoing back through your entire edit history.
Key Takeaways
- Merge Down combines the selected layer with the layer directly below it; Merge Visible combines all layers you can see, leaving hidden layers untouched.
- Flatten Image turns every layer into one, removing transparency and replacing it with a background color — use this only when you're ready to export.
- Right-click the layer you want to merge and choose from the context menu, or use the Layer menu at the top of the screen.
- Always save your original multi-layer file before merging, because merged layers cannot be separated again.
How to merge two adjacent layers with Merge Down
The simplest merge is Merge Down, which combines the layer you have selected with the layer directly below it. Click the layer you want to merge (the top one of the pair). Then right-click on that layer in the Layers panel on the right side of the screen.
A menu will appear. Click "Merge Down". The two layers become one, and the merged layer takes the name of the lower layer. If you had a text layer above a photo layer, for example, the text is now permanently painted onto the photo, and you cannot edit the text separately anymore.
You can also reach Merge Down through the menu bar: click Layer at the top, then hover over "Merge" and click "Merge Down".
How to merge all visible layers at once
Merge Visible combines every layer you can currently see into a single layer, while leaving any hidden layers untouched. This is useful when you have many layers you've finished adjusting and want to reduce clutter, but you might want to keep one or two layers hidden as backups.
First, make sure the layers you want to merge are visible (the eye icon next to each layer should be showing). Hide any layers you want to keep separate by clicking the eye icon next to them. Then right-click any visible layer and select "Merge Visible" from the menu. Alternatively, go to Layer > Merge > Merge Visible at the top of the screen.
All visible layers combine into one. The merged layer appears where the topmost visible layer was, and it takes that layer's name.
How to flatten an entire image into one layer
Flatten Image is the most aggressive merge: it combines every single layer, removes all transparency, and replaces any transparent areas with a solid background color (usually white). Use this only when you are completely finished editing and ready to export the image.
Go to Image at the top menu bar, then click "Flatten Image". Every layer disappears and becomes one. The transparency is gone. If your image had a transparent background (shown as a checkerboard pattern in Photoshop), it is now solid white or whatever background color you had set.
Flatten Image is permanent and cannot be undone except by stepping back through your undo history. If you think you might need to edit layers again later, use Merge Visible or Merge Down instead.
What happens to layer effects and adjustment layers when you merge
When you merge a layer that has effects applied to it (like a drop shadow or glow), those effects are baked into the merged layer permanently. The effect is no longer adjustable — it becomes part of the image itself.
Adjustment layers work differently. If you merge an adjustment layer down onto the layer below it, the adjustment becomes permanent on that layer. If you merge an adjustment layer with Merge Visible, the adjustment applies to all visible layers below it. If you want to keep an adjustment flexible, do not merge it — keep it as a separate adjustment layer.
Common mistakes to avoid when merging
The most common mistake is merging layers and then realizing you needed to edit one of them separately. There is no way to undo a merge except by stepping backward through your entire edit history, which loses all work done after the merge. Always save your original file first.
Another mistake is flattening an image when you meant to merge only a few layers. Flatten Image is all-or-nothing and removes transparency. If you only want to combine some layers, use Merge Down or Merge Visible instead.
A third mistake is merging layers in the wrong order. Merge Down always combines the selected layer with the one directly below it. If you select the wrong layer, you'll merge the wrong pair. Double-check which layer is highlighted before you right-click.
When to merge versus when to keep layers separate
Keep layers separate if you think you might adjust them independently later. For example, keep text on its own layer as long as you might change the wording or font. Keep adjustment layers separate if you might tweak the brightness or color later.
Merge layers when you are certain you won't edit them separately again, when you want to reduce the file size (a merged file is smaller than a multi-layer file), or when you need to export to a format that doesn't support layers, like JPEG or PNG. Merge before export if the format doesn't support layers, because Photoshop will flatten automatically and you lose control over how it happens.
Frequently Asked Questions
Can I undo a merge?
Yes, but only by stepping backward through your undo history. Press Ctrl+Z (Windows) or Command+Z (Mac) repeatedly to undo the merge and all edits made after it. Once you close the file or step too far back, the merge is permanent. This is why saving your original multi-layer file is essential.
What's the difference between Merge Down and Merge Visible?
Merge Down combines only the selected layer with the layer directly below it. Merge Visible combines all layers you can see at once. Use Merge Down for precision when you want to combine just two layers; use Merge Visible when you have many layers finished and want to combine them all at once.
Will merging layers make my file smaller?
Yes. A Photoshop file with many layers is larger than the same image with merged layers. However, the file size difference only matters if you're storing the file or sending it to someone else. For your own work, keep layers separate for flexibility, then merge only when you're ready to export or archive.
What happens to transparency when I flatten an image?
Flatten Image removes all transparency and replaces it with a solid color, usually white. If you need to keep a transparent background, use Merge Visible or Merge Down instead. You can also change the background color before flattening by going to Image > Canvas Size and setting the fill color.
Can I merge layers that aren't next to each other?
Not directly. Merge Down only works on adjacent layers. To merge non-adjacent layers, either move them next to each other by dragging in the Layers panel, or use Merge Visible to combine all visible layers at once, regardless of their position.