Flattening an image combines every layer in your project into a single background layer. It’s a one-way compression of your editing work, collapsing adjustment layers, text layers, shape layers, and everything else into one flat picture. Most people encounter it when saving a file for sharing or export, and understanding what it does (and what it destroys) can save you from losing hours of work.
What Happens to Your Layers
When you flatten an image in Photoshop or a similar editor, the software takes every visible layer and merges them together into one. The result is a single background layer that looks exactly like your final composite did, but with no individual pieces left to adjust. Think of it like printing a collage onto a single sheet of paper: you can see the final result, but you can no longer peel off and reposition individual elements.
Hidden layers get discarded entirely. If you had layers turned off (with the eye icon toggled off in Photoshop), flattening deletes them. Any transparency in your image gets replaced with a solid white background. That checkerboard pattern you see behind transparent areas? It becomes plain white once the image is flattened. This matters if you’re working with logos, cutouts, or any graphic that relies on a see-through background.
Why File Size Changes
One of the main reasons people flatten images is to shrink the file. A layered TIFF file, for example, typically drops to about 20% of its original size after flattening. That’s a dramatic reduction, and it makes sense: the software no longer needs to store separate pixel data, blending modes, masks, and opacity settings for dozens of individual layers.
There’s a notable exception, though. Very large files with many layers can sometimes get bigger after flattening. One Adobe Community user reported a 2.17 GB file with fifty layers that ballooned to 3.49 GB once flattened. This happens because the layered version may store data more efficiently when layers share empty or transparent space, while the flattened version has to fill in every pixel across the entire canvas. For most standard-sized images, flattening reduces file size significantly, but it’s worth checking if you’re working with massive canvases.
Which File Formats Require It
Some file formats simply cannot store layers, so flattening happens automatically when you save to them. JPEG is the most common example. It uses lossy compression and supports only a single layer, so any layered project saved as a JPEG will be flattened in the process. The same goes for BMP and GIF files.
Formats like PSD and TIFF can preserve layers, so flattening is optional with those. PNG supports transparency but not multiple editable layers in the way PSD does. If you need to send someone a final image they can open in any basic viewer or upload to the web, you’ll almost always end up with a flattened format like JPEG or PNG. JPEG also can’t handle 16-bit color depth, transparency, or alpha channels, so Photoshop will strip all of those during export.
Flattening vs. Merging
Flattening and merging sound similar but work differently. Flattening reduces every layer in the file down to one background layer, no exceptions. Merging lets you combine selected layers while leaving the rest untouched. If you have ten layers and only want to consolidate three of them, merging is the better choice. Flattening is the nuclear option: everything becomes one layer, and you’re done editing individual elements.
Why It’s Hard to Undo
Flattening is reversible only if you haven’t saved and closed the file yet. While your project is still open, you can use undo (Ctrl+Z or Cmd+Z) to step back through your history and restore the layers. The moment you save the flattened file and close the application, that history is gone. Photoshop discards all layer information during flattening, and closing the file wipes the undo history permanently.
There is no reliable way to recover individual layers from a saved, flattened file. The analogy that fits best: it’s like throwing away the recipe after the cake is baked. You still have the cake, but you can’t separate it back into flour, eggs, and sugar. This is why the most common advice in photo editing is to keep a layered version of your file (as a PSD or layered TIFF) and flatten only a separate copy for export. That way your editable original stays intact while you produce a clean, lightweight file for sharing.
When Flattening Makes Sense
Flatten your image when you’re confident the editing is finished and you need a final output file. Common situations include preparing images for print, uploading to a website, emailing to a client, or importing into software that doesn’t support layers (like a word processor or presentation tool). Flattening can also speed up performance if your editing software is struggling under the weight of dozens of layers, though merging selected layers is usually a better first step.
If there’s any chance you’ll want to tweak individual elements later, don’t flatten your only copy. Save the layered version first, then use “Save As” or “Export” to create the flattened file separately. The few extra megabytes of a layered PSD are a small price compared to rebuilding an edit from scratch.

