What Happens When You Flatten an Image in Photoshop?
Flattening an image in Adobe Photoshop merges all visible layers into a single, locked background layer, permanently removes transparency, and discards any hidden layers. This process significantly reduces file size and simplifies the document for export or print, but it also strips away the ability to edit individual elements non-destructively. Understanding what occurs during flattening helps you protect your design workflow and avoid irreversible data loss.
1. Layers Are Merged into a Single Background Layer
When you select the flatten command, Photoshop combines every individual component—including pixel layers, text layers, vector shapes, and adjustment layers—into one unified layer labeled "Background." Any layer effects, blend modes, or clipping masks are permanently rasterized and baked directly into the pixels.
2. Hidden Layers Are Discarded
Photoshop typically displays a prompt asking if you want to discard hidden layers before flattening. If you confirm, any layer that has its visibility turned off (the eyeball icon unselected) is permanently deleted from the document rather than incorporated into the final image.
3. Transparency Is Replaced with Color
A standard Photoshop document supports transparency, but a flattened Background layer does not. Any transparent or semi-transparent areas in the canvas are automatically filled with the currently selected background color, which is set to white by default.
4. File Size Is Significantly Reduced
Because the document no longer needs to store separate pixel coordinates, vector paths, layer masks, and metadata for multiple layers, the file size drops substantially. This makes the file easier to send via email, upload to websites, or send to commercial printers.
5. Edits Become Permanent
Once you flatten an image, save it, and close the file, the action cannot be undone. You will no longer be able to:
- Edit text or change typography settings.
- Adjust color balances through existing adjustment layers.
- Move individual objects or subjects independently.
- Modify or disable layer masks.
Safer Alternatives to Flattening
If you need the benefits of a flattened file without sacrificing your layered work, consider these approaches:
- Save as a Copy: Always save your layered master
file as a
.PSDor.TIFF, then use File > Save a Copy or File > Export to create a flattened.JPEGor.PNG. - Stamp Visible (Merge to New Layer): Press
Ctrl + Alt + Shift + E(Windows) orCmd + Option + Shift + E(Mac). This creates a new, flattened composite layer at the very top of your layer stack while keeping all original layers intact beneath it. - Convert to Smart Object: Select your layers, right-click, and choose Convert to Smart Object. This consolidates your layers visually into one layer while allowing you to double-click and edit the original contents at any time.