Back to Plugins
Clean Document

Clean Document

Automagically organize and clean up your Figma document

documentation

Plugin Preview

Clean Document preview

About this plugin

Automagically organize and clean up your Figma document.


Fund my work on Figma plugins →


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.

Plugin Details

Version35
CreatedOctober 19, 2019
Last UpdatedAugust 4, 2025
CategoryFile organization plugins
CreatorYuan Qing Lim
Stats100365 installs, 2574 likes
PricingPaid

Technical Details

  • API:1.0.0
  • UI:build/ui.js
  • main:build/main.js
  • Document Access:dynamic-page
  • Editor Types:
    figma
  • Allowed Domains:
    • none