Merging layers in Adobe Illustrator combines multiple layers into a single layer, which reduces file complexity and makes your document easier to manage
When you merge layers in Illustrator, all the objects on those layers move into one layer and stack in the order they occupied before. The merge happens instantly — there is no dialog box or confirmation step. You can merge two layers, several layers at once, or flatten your entire document into a single layer. The choice depends on whether you want to keep some layers separate for future editing.
Merging is different from grouping. A group keeps layers visually organized but does not combine them into one. Merging actually combines them, which saves file size and makes exporting cleaner. However, once you merge, you cannot easily separate them again without using Undo, so only merge when you are certain you will not need to edit those layers independently.
Key Takeaways
- Select the layers you want to merge by holding Shift and clicking each one in the Layers panel, then right-click and choose Merge Selected.
- Flatten Artwork combines every layer into one and removes any empty layers, useful when your design is finished and ready to export.
- Merging is permanent without Undo, so save a copy of your file before merging if you think you might need to edit those layers separately later.
- Objects keep their appearance and stacking order when merged, but you lose the ability to hide or lock individual layers afterward.
How to merge two or more specific layers
Open the Layers panel on the right side of your screen. If you do not see it, go to Window menu and click Layers. You will see a list of all layers in your document, each with a name and an eye icon showing whether it is visible.
Click the first layer you want to merge. Then hold Shift and click each additional layer you want to include in the merge. All selected layers will highlight in blue. If you select a layer by mistake, Shift-click it again to deselect it.
Right-click on one of the selected layers. A menu will appear with several options. Click Merge Selected. Illustrator combines all the selected layers into the bottommost layer you selected, and the other layers disappear from the panel. All objects that were on those layers are now on the single remaining layer, in the same stacking order they had before.
Using Flatten Artwork to merge everything at once
Flatten Artwork is the fastest way to combine every layer in your document into one. This is useful when your design is completely finished and you do not need to edit individual layers anymore. Go to the Object menu, then select Flatten Artwork.
A dialog box will appear with two checkboxes: "Preserve Text Editability" and "Convert Gradients to Outlines." Leave both unchecked unless you have a specific reason to change them. Click OK. Illustrator flattens all layers into a single layer called Layer, removes any empty layers, and converts all text to outlines so the text cannot be edited afterward.
Flatten Artwork also converts all strokes to fills and removes any transparency. If your design uses transparency effects that matter to your final output, flatten a copy of your file instead of the original, so you can go back to the version with layers if needed.
What happens to objects and effects when you merge
When layers merge, every object keeps its appearance exactly as it looked before the merge. Colors, strokes, fills, and effects all remain unchanged. The stacking order also stays the same — if one object was in front of another before the merge, it stays in front afterward.
Clipping masks and blend modes are preserved during a merge. However, if you had used layer opacity to make an entire layer semi-transparent, that opacity setting is lost when you merge. The individual objects on that layer keep their own opacity settings, but the layer-level opacity does not transfer.
Why you might want to keep layers separate instead
Merging is permanent without Undo, so think carefully before you do it. If you think you might need to hide, lock, or edit one part of your design separately from another, keep those parts on different layers. For example, if you have a background layer and a text layer, keep them separate until you are absolutely certain the text will not change.
Layers also make it easier to export different versions of the same design. If you have a logo on one layer and a background on another, you can hide the background layer and export just the logo. Once merged, you would have to manually delete the background or create a new file.
Undoing a merge if you change your mind
If you merge layers and immediately realize you made a mistake, press Ctrl+Z (Windows) or Command+Z (Mac) to undo the merge. Illustrator will restore the separate layers exactly as they were. However, Undo only works if you have not done anything else since the merge — each action you take after the merge moves the merge further back in the undo history.
If you have already saved and closed your file after merging, you cannot undo. This is why saving a backup copy before merging is a good habit. Keep the original file with all layers intact, and work on a copy if you want to experiment with merging.
Merging layers in files you plan to hand off or export
If you are sending your Illustrator file to someone else, ask them first whether they need the layers to remain separate. If they do, do not merge. If they only need the final image and do not plan to edit it, merging reduces file size and makes the file simpler to work with.
For export, merging does not matter much — whether your layers are merged or separate, the exported image looks the same. However, if you export to PDF and want to preserve layer information in the PDF, do not flatten your file first. Flattening removes the layer structure that PDF readers use to show and hide layers.
Frequently Asked Questions
Can I merge layers without losing the ability to edit them separately later?
No. Once you merge, the layers are combined permanently. If you think you might need to edit them separately, use a group instead — right-click layers and choose Group. Groups keep layers organized visually but do not combine them, so you can still hide, lock, or edit each layer independently.
What is the difference between merging and flattening?
Merging combines only the layers you select. Flattening combines every layer in the document into one and also converts text to outlines and removes transparency. Use merge for selective combining, and flatten only when your design is completely finished.
Does merging change the file size?
Slightly. Merging removes the layer structure information, which saves a small amount of space. The difference is usually not noticeable unless your file has dozens of layers. Flattening saves more space because it also removes transparency and converts effects to simpler forms.
Will merging affect how my design looks when I export it?
No. The exported image looks identical whether your layers are merged or separate. Merging only affects how the file is organized inside Illustrator, not the final appearance of the design.
Can I merge layers that are in different groups?
Yes. Select the layers you want to merge, even if they are in different groups, and right-click to merge. The merged layer will appear at the location of the bottommost layer you selected, and the groups themselves remain unchanged.