Merge and Unmerge Layers in Photoshop (Beginner Guide)
Merging simplifies your layer stack, but it can also remove edit flexibility. This guide shows you how to merge all or selected layers and how to reverse a merge when possible. You’ll also learn to use the History panel and increase history states to protect your edits.

Step-by-step instructions
Merge all visible layers or only selected layers
To merge everything visible, right-click any layer and choose Merge Visible.
To merge specific layers, Ctrl/Cmd-click to select them, then right-click and choose Merge Layers.
Quickly unmerge using Undo
Immediately press Ctrl/Cmd+Z to undo the merge.
Or go to Edit → Undo Merge Layers.
Recover from an earlier point with the History panel
Go to Window → History to open the History panel.
Click the state just before the merge to restore separate layers.
Note: Steps after that point will be discarded when you jump back.
Increase history states to protect future edits
Go to Edit → Preferences → Performance (Photoshop → Settings → Performance on Mac).
Increase History States (default is ~50) to retain more undo steps.
Click OK and restart Photoshop if prompted.
Best practices to avoid destructive merges
Duplicate key layers before merging (Ctrl/Cmd+J).
Consider Smart Objects or linked/embedded files instead of permanent merges.
Save versions (File → Save As) before flattening or exporting.