0
100
200
300
400
500
600
700
800
900
1000
1100
0
100
200
300
400
500
600
700
800
900
1000
1100

Clean Document

Automagically organize and clean up your Figma document

by Yuan Qing Lim

users
124K
likes
3K
saves
105K
comments
47
Free + paid featuresWorks inFigma Design
Price
Free + paid features
Latest version
v35 · Aug 4, 2025
First published
Oct 19, 2019
Publisher
Yuan Qing Lim
Features

What Clean Document does

Summarised from Yuan Qing Lim's description on the Figma Community.

  • Delete Hidden Layers

    Deletes all hidden layers within the selection or on the current page.

  • Ungroup Single-Layer Groups

    Ungroups single-layer groups within the selection or on the current page that have no background, blend mode, effect or export setting.

  • Make Pixel-Perfect

    Rounds the X and Y position and dimensions of layers within the selection or on the current page to the nearest pixel.

  • Smart Rename Layers

    Intelligently renames layers within the selection or on the current page.

  • Smart Sort Layers

    Sort layers within the selection or on the current page by their X and Y position while maintaining their relative stacking order on the page.

  • Position Canvas at (0, 0)

    Reposition all layers on the page such that the Y position of the top-most layer is 0 and the X position of the left-most layer is 0.

  • Clean Layers

    Run all the above commands on layers within the selection or on the current page. Optionally skip processing of locked or instance layers.

  • Sort Pages

    Sorts pages of the current document in alphabetical order.

  • Manifest

    9 quick actions

    Run from the Actions menu (Cmd/Ctrl + K): Clean Layers, Delete Hidden Layers, Ungroup Single-Layer Groups, Make Pixel-Perfect and 5 more.

On this page
Overview

About Clean Document

Clean Document is a free + paid features Figma plugin published by Yuan Qing Lim in 2019. It works in Figma Design and has 123,799 users and 2,968 likes on the Figma Community. It ranks #5 in Layer Management and #10 in Productivity on our lists.

In the developer's words

Automagically organize and clean up your Figma document.

[Fund my work on Figma plugins →](https://ko-fi.com/yuanqing)

Delete Hidden Layers

Deletes all hidden layers within the selection or on the current page.

Ungroup Single-Layer Groups

Ungroups single-layer groups within the selection or on the current page that have no background, blend mode, effect or export setting.

Make Pixel-Perfect

Rounds the X and Y position and dimensions of layers within the selection or on the current page to the nearest pixel.

Smart Rename Layers

Intelligently renames layers within the selection or on the current page.

  1. Text layers will be named based on their text content.
  2. Instance layers will be given the same name as their main component.
  3. Other layer types will be named based on their layer type. (For example, a rectangle layer will be named “Rectangle”, a group layer will be named “Group”, and so on.)
  4. Layers with export settings will not be renamed.
  5. Frames and instances that are at the top-level of the page or that are the children of sections will not be renamed.

Optionally specify a Regular Expression to skip the renaming of particular layers.

Smart Sort Layers

Sort layers within the selection or on the current page by their X and Y position while maintaining their relative stacking order on the page.

Position Canvas at (0, 0)

Reposition all layers on the page such that the Y position of the top-most layer is 0 and the X position of the left-most layer is 0.

Clean Layers

Run all the above commands on layers within the selection or on the current page. Optionally skip processing of locked or instance layers.

Sort Pages

Sorts pages of the current document in alphabetical order.

Reset Plugin

Resets all settings to their defaults.

Changelog

What's new

Version 35 · released Aug 4, 2025

  • Fix a bug with the Position Canvas at (0, 0) command.
Trust

Permissions and privacy

Network access

Clean Document declares no network access, so it runs entirely inside Figma and can't send your file anywhere.

Extra permissions

None beyond the standard access to the file you run it in.

Read from the plugin's published manifest. Questions about data handling go to the developer's support page.

Rankings

Where Clean Document ranks

Compare

Clean Document alternatives

  1. 1

    Find and Replace

    by Jackie Chui

    223K users2.6KFree

    Find and replace text in your file like a text editor

  2. 2

    Rename It

    by Rodrigo Soares

    197K users3.6KFree
  3. 3

    Detach Component

    by Patrick Morgan

    140K users1.3KFree
  4. 4

    Similayer

    by Dave

    136K users3.1KFree
  5. 5

    Sorter

    by Tom

    81K users1.5KFree

    Quickly sort layers in different ways

  6. 6

    Super Tidy

    by Ismael Canal

    77K users2KFree

    Clean and organize your canvas in one click.

FAQ

Clean Document FAQ

What does Clean Document do?

Automagically organize and clean up your Figma document. It's a Figma plugin by Yuan Qing Lim that runs in Figma Design.

Is Clean Document free?

Clean Document is free to install, but some features are unlocked through a paid plan on the developer's site.

Is Clean Document safe to use?

Figma plugins can only reach the internet through domains listed in their manifest. Clean Document declares no network access, so it runs entirely inside Figma and can't send your file anywhere. As with any plugin, check the developer's privacy policy before using it on client work.

How do I install Clean Document?

Open it on the Figma Community, or search for it in the Actions menu (Cmd/Ctrl + K) inside any file you can edit. See how to install Figma plugins.

What are the best alternatives to Clean Document?

By user count, the closest alternatives are Find and Replace by Jackie Chui, Rename It and Detach Component. Compare all of them on the best Figma plugins for layer management.

For developers

Built this plugin?

Use this page as a landing page for Clean Document: link to it from your site, README or launch posts, or add a badge. Pick a style and copy the code.

Clean Document on figmaplugins.co

Style

Label

Size

Code

<a href="https://figmaplugins.co/plugins/clean-document/" target="_blank" rel="noopener"><img src="https://figmaplugins.co/badges/featured-dark.svg" alt="Clean Document on figmaplugins.co" width="220" height="48"></a>