Illustrator has three operations that get routinely confused with each other: merging layers, grouping layers, and combining shapes with Pathfinder. They sound similar, but each does something structurally different to a file, and using the wrong one on a product graphics or packaging file causes real downstream problems — a merged layer can't be un-merged without undo history, a flattened file loses all layer organization permanently, and a Pathfinder union changes the actual vector geometry of your shapes. Here's what each one actually does and when to use it.
Merge vs. Group vs. Flatten: What's the Difference
- Merge Selected: combines two or more selected layers (or sublayers) into a single layer. The objects inside keep their individual shapes and remain separately selectable, but they're no longer organized under separate layer names in the Layers panel.
- Group (Ctrl+G / Cmd+G): bundles selected objects together so they move, scale, and transform as a unit, without touching the underlying layer structure at all. This is reversible at any time with Ungroup, and it's usually what people actually want when they reach for "merge."
- Flatten Artwork: collapses every layer in the entire file into one single layer. This is the most destructive of the three — once flattened and saved, the original layer organization is gone unless you still have undo history or a backup of the file.
If your goal is simply to move several objects together without losing the ability to reorganize them later, Group is almost always the right choice — reach for Merge Selected or Flatten only when you specifically want to permanently reduce the number of layers in the file.
How to Merge Selected Layers
- 1. Open the Layers panel (Window → Layers, or F7).
- 2. Select the layers you want to merge by clicking the first one, then Ctrl+click (Windows) or Cmd+click (Mac) each additional layer.
- 3. Open the Layers panel menu (the small icon in the top-right corner of the panel) and choose Merge Selected.
- 4. Illustrator combines the selected layers into one, named after whichever layer was topmost in your selection. All objects from the merged layers now live inside that single layer, in their original stacking order.
Note that Merge Selected only works on layers that are visually adjacent in the stacking order in certain Illustrator versions — if the option appears greyed out, try reordering the layers so your selection is contiguous first.
How to Flatten the Entire File Into One Layer
- 1. Open the Layers panel menu and choose Flatten Artwork.
- 2. Confirm the prompt if Illustrator warns about hidden or locked layers — flattening can delete content on hidden layers entirely, so check visibility first if you have layers turned off.
- 3. Illustrator collapses everything into a single layer, preserving the stacking order of all objects but removing every layer name and grouping that previously organized them.
Flatten Artwork is appropriate for final export files where layer organization no longer matters — but never flatten your working/source file, since there's no way back to the organized version short of undo or a saved backup.
How to Group Layers Instead of Merging
- 1. Select the objects or layers you want to bundle together, either in the canvas or the Layers panel.
- 2. Press Ctrl+G (Windows) or Cmd+G (Mac), or use Object → Group from the menu.
- 3. The selected items now move, scale, and transform together as a single unit, while remaining individually editable and separable with Ungroup (Ctrl+Shift+G / Cmd+Shift+G) at any time.
Grouping is reversible and non-destructive, which makes it the safer default whenever you're not certain you want a permanent layer reduction. It's the right choice for bundling related elements of a product graphic — a logo and its tagline, or a set of icons meant to move together — without committing to merging their underlying layer structure.
Merging Layers vs. Combining Shapes with Pathfinder
This is the confusion that causes the most actual problems. "Merging layers" organizes which layer objects belong to — it does nothing to the shapes themselves. "Combining shapes" with the Pathfinder panel's Unite function permanently fuses the vector geometry of two or more overlapping shapes into one new shape, deleting the original paths in the process. If you're trying to merge two overlapping circles into a single rounded shape, that's Pathfinder's job, done through Window → Pathfinder → Unite, not the Layers panel's Merge Selected. Using the wrong tool here either does nothing visually useful (merging layers when you wanted to unite shapes) or destroys editable geometry you didn't mean to lose (uniting shapes when you only wanted them organized together).
What Happens to Clipping Masks and Live Effects When You Merge Layers
Illustrator clipping masks — a shape used to crop the visible area of other objects, similar in concept to a Photoshop clipping mask but built from vector paths — generally survive a layer merge intact, since Merge Selected only reorganizes which layer an object sits in rather than altering the object's own structure or its relationships to other objects. Live effects (drop shadows, feathering, warps applied through the Appearance panel) also carry through a merge unchanged, because they're stored as properties on the object itself, not on the layer. Flattening the entire file is a different story: Flatten Artwork can, in some cases, rasterize or alter how certain live effects render if the file contains transparency interactions between objects on different original layers, so it's worth reviewing effect-heavy artwork closely after a flatten rather than assuming everything survived identically.
Merging Layers Across Multiple Artboards
Merge Selected and Flatten Artwork both operate on the layer structure of the entire document, not per-artboard — objects on different artboards that happen to share a layer will be merged together into the same resulting layer even if they're visually separated on the canvas. This catches people off guard on multi-artboard files (a common setup for a product with several label or packaging variants in one document): merging what looks like a self-contained layer for one artboard can quietly pull in objects from an entirely different artboard that happened to share that layer name. Check which artboard each selected layer's objects actually belong to before merging on any file with more than one artboard.
Why This Matters for Product Graphics and Packaging Files
Layer organization in Illustrator files isn't just tidiness — it directly affects how usable a delivered file is for a design team generating variants. A packaging or label file delivered with every element properly grouped by function (all text in one group, the logo in another, background pattern in a third) lets a designer swap one element without disturbing the rest. A file that's been carelessly flattened or over-merged forces that same designer to manually re-isolate elements before they can make even a simple edit — the layer equivalent of the problem solved by properly organized layers in a multi-clipping path raster file. Whether the file is raster (Photoshop, clipped by component) or vector (Illustrator, grouped or kept on separate layers by component), the underlying principle is the same: preserve the structure a design team will actually need to generate variants, rather than collapsing it prematurely for a cleaner-looking Layers panel.
Common Mistakes
- Flattening a working file instead of a group or a merge: this is the most common irreversible mistake — always double-check you're choosing Flatten Artwork deliberately, not reflexively, since it affects the entire file at once.
- Using Merge Selected when Group would have been reversible and sufficient: if you're not certain you want a permanent reduction, group first — you can always merge later, but you generally can't un-merge without undo history.
- Reaching for Pathfinder's Unite when the real goal was moving objects together: Unite destroys the original separate paths; if you only wanted the shapes to move as a unit, Group preserves them intact.
- Merging or flattening before export without saving a layered master file first: always keep an unflattened source file so future edits remain possible — the flattened or merged version should be an export, not the only copy.
Quick Tips
- Rename layers before merging if the resulting combined layer's name matters — Illustrator names the merged layer after the topmost selected layer by default, which isn't always the most descriptive choice.
- Check layer visibility before flattening — hidden layers can be deleted entirely by Flatten Artwork in some Illustrator versions rather than simply merged in.
- Use Isolation Mode (double-click a group) to edit inside a group without ungrouping it first, when you need to adjust one element but want to keep the group intact afterward.
- Save a copy before any destructive operation on a file you can't easily recreate — Flatten Artwork and Pathfinder's Unite are both one-way operations outside of undo history.
Our multi-clipping path service delivers product graphics with every component properly isolated and organized — whether raster or vector — so your design team can generate colorways and variants without untangling someone else's flattened file first. Submit 5 images for a free trial to see the difference a properly structured file makes to your own workflow.

