How to flatten a layer in Figma
Learn how to flatten a layer in Figma by drawing a rectangle, right-clicking its layer, and choosing Flatten from the context menu in a few clicks.

Quick answer
To flatten a layer in Figma, select the layer, right-click it in the Layers panel, and choose Flatten from the context menu. Figma merges the layer's shapes into a single shape that you can no longer edit with the original shape settings. Duplicate the layer first if you may want the original back.
Steps at a glance
- Pick the Rectangle tool in the toolbar.
- Drag on the canvas to draw a shape.
- Right-click the layer in the Layers panel.
- Choose Flatten from the context menu.
- Check the Layers panel for the merged result.
Interactive demo
Summary
Flattening turns a layer into one merged shape. It is useful when you want to finish a shape before exporting it or combining it with other artwork. Figma puts the command in the layer's right-click menu.
Step-by-step guide
Step 1
Pick the Rectangle tool
Open your design file and find the toolbar at the bottom of the canvas. Click Rectangle so you can draw a shape to flatten. You can use any layer you already have instead.
Step 2
Draw a rectangle on the canvas
Drag on the canvas to draw the shape. A new layer appears in the Layers panel and the right sidebar shows its settings.
Step 3
Right-click the layer
Right-click the layer named Rectangle 1 in the Layers panel. A context menu opens with the actions available for that layer.
Step 4
Choose Flatten
Click Flatten in the context menu. Figma merges the layer into a single shape, so edit any settings you still need before this step.
Why this matters
You have built a shape from several pieces and need it to behave as one object before you hand it off or export it. Flattening locks it into a single shape, so nothing shifts when you move or resize it later.
Frequently asked questions
What does flattening a layer do?
It merges the layer into one shape. In this capture the Flatten command sat in the layer's right-click menu.
Can I flatten more than one layer?
This capture flattened a single rectangle, so it does not cover selecting several layers at once.
Related guides
Continue with more step-by-step guides for getting work done.
How to use boolean operations in FigmaLearn how to combine two shapes in Figma with boolean operations. Select both layers, open the menu, and pick Subtract to cut one shape from the other.
How to outline a stroke in FigmaLearn how to outline a stroke in Figma: draw a line, right-click it, choose Outline stroke, and check the new vector path layer in the Layers panel.
How to create a component in FigmaTurn any shape into a reusable component in a Figma design file: select the layer, click Create component, then find it listed under Assets.
How to flip an object in FigmaLearn how to flip an object in Figma. Select a layer, then use the Flip horizontal and Flip vertical buttons in the Design panel to mirror it.
How to group elements in FigmaGroup elements in Figma by selecting several shapes, right-clicking, and choosing Group selection, then check the new group in the Layers panel.
How to hide comments in FigmaHide comment pins in Figma from the View menu so you can review a design without markers on the canvas. Four short steps, no paid plan needed.
Create interactive demos like this one — free, no coding required.
Start for free →