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

  1. Pick the Rectangle tool in the toolbar.
  2. Drag on the canvas to draw a shape.
  3. Right-click the layer in the Layers panel.
  4. Choose Flatten from the context menu.
  5. Check the Layers panel for the merged result.

Interactive demo

Loading 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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Create interactive demos like this one — free, no coding required.

Start for free →