Short answer: To clean up a Figma file before handoff, rename pages and frames so they read like file names, deal with hidden and 0% opacity layers, review duplicate and oversized images, and check that repeated UI uses instances. Save a named version first and delete last. Figma's own Find, Select matching layers and Rename layers cover a lot of this, and UIXport's Asset finder helps when the file is too big to check page by page.
You are about to hand a landing page to a developer. They will open every layer they find, including the hidden header from two rounds ago, and wonder whether it ships.
Cleanup is not tidiness for its own sake. It decides what gets built.
Why clean up a Figma file before handoff?#
Because the developer builds from what is in the file, not from what you meant. A hidden layer, a stray copy or a name like Frame 427 becomes a question at best and a wrong file in production at worst.
- Fewer wrong exports. Exported files take their names from layers, and a slash in a layer name becomes a folder (Figma help: export static designs).
- Fewer guesses. Two near-identical buttons make the developer pick one, and not always yours.
- A lighter file. Figma's help center calls hidden layers "a big contributor to memory usage", since Figma still stores and renders them. Files with many pages or lots of high-resolution images can also hit performance or memory issues (Figma help: reduce memory usage in files).
To see where a file stands, choose View > Memory usage in Figma's main menu. Under Manage memory, turn on Show memory in layers panel. Memory is only tracked for pages that have loaded.
Start with pages and frame names#
Rename pages and top-level frames first. The developer sees both, and frame names usually become file names.
- One page per area that is ready, named the way the team talks:
Checkout,Settings. - An
Archivepage for explorations you are not ready to delete. - No
Page 1. Page names can end up in file names. Asset finder's Page + Frame naming preset turnsHeroonPage 1intoPage 1_Hero.
For frames, Figma's Find is the right tool. Press Cmd+F on Mac or Ctrl+F on Windows, search a default name such as Frame or Group, show results for all pages and filter by layer type (Figma help: find and replace).
Agree the naming rule with the developer first, as in the design handoff checklist.
Steps to scan the rest of the file#
Scan with the types you need, read the counts, then work through one problem at a time.
- Clear your selection. Click an empty spot on the canvas. With layers selected, Asset finder scans the Selection only.
- Open Asset finder. Click the Asset finder tab in UIXport.
- Pick the scope. Choose Entire file, or Current page and a page from the list.
- Tick the types. The default is Images only. Add Frames, Components or Instances. Frames also lists every nested frame and group, so on a large file scan one type at a time.
- Read the counts. The numbers next to Group duplicates, Hide hidden layers and Hide smaller than show how many extra copies, hidden layers and slivers were set aside. That is your to-do list. The hidden count includes layers inside hidden ones, so one hidden section can account for many.
- Work one list at a time. Sort by Most used, Size (px) or Name, and use Focus in Figma to jump to any layer.
| Cleanup job | In Figma | In UIXport's Asset finder |
|---|---|---|
| Default frame names | Find (Cmd/Ctrl+F), all pages | Sort by Name |
| Hidden and 0% opacity layers | Layers panel, frame by frame | Uncheck Hide hidden layers |
| Duplicate images | Select matching layers, similar frames | Group duplicates, whole file |
| Oversized images | Memory usage, per layer | Original W × H px on image cards |
| Renaming many layers | Rename layers (Cmd/Ctrl+R), better for batches | One card at a time, with tokens |
How do you find hidden layers in Figma?#
In Figma, hidden layers appear greyed out in the Layers panel with a closed eye icon (Figma help: toggle visibility). That works frame by frame. For the whole file at once, uncheck Hide hidden layers in Asset finder. It rescans and lists the hidden or 0% opacity layers of the types you ticked with a Hidden tag.
The option is on by default, so a normal scan skips those layers and everything inside them. Layers at 0% opacity deserve a second look: they look gone on the canvas but still sit in the Layers panel.
For each one, decide:
- Delete it if it is an old version nobody needs.
- Archive it on the Archive page if someone might want it back.
- Keep it if a component property toggles it. Figma recommends boolean component properties to cut variants, and they work by hiding layers (Figma help: reduce memory usage).
What about tiny slivers?#
Hide smaller than (on, 4 px by default) hides layers narrower or shorter than that, such as stray divider lines. To review them, uncheck it. Size (px) sorts by area, largest first, so tiny specks sink to the bottom, but a long 1 px divider can sit mid-list. To find one, type its size, such as 1440x1, in the search box.
How do you find duplicate images in Figma?#
Figma's Select matching layers is quick for identical layers across similar screens. For the whole file, Asset finder's Group duplicates folds copies that look the same into one card with a ×N badge.
In Figma, select an object inside a top-level frame or group, then click Select matching layers in the toolbar or press Option+Cmd+A on Mac or Ctrl+Alt+A on Windows (Figma help: select layers and objects).
Asset finder matches copies by content, not layer name, so Rectangle 12 and hero-photo share a card if they are built the same way. Position and uniform scale are ignored. A recolour, different text, a crop, a flip, a rotation, a stretch or a different variable mode keeps copies apart. Copies at different sizes add "· N sizes" to the card.
Click ×N to list every copy by page, each with Focus. The copy that would be exported is tagged Exported.
A logo pasted as loose copies is a good candidate for a component, so the next change happens once.
How do you spot oversized images?#
An image is oversized when the file Figma stores is far bigger than the slot it fills. Asset finder's image cards show Original W × H px next to the layer's size, so a 4000 px photo in a 320 px layer is easy to catch.
Figma scales uploads above 4096 × 4096 px down so the longest side is 4096 px or less (Figma help: add images and videos). That still allows a 4096 px photo in an avatar.
There is no sort by stored size, so compare the two numbers card by card.
- Export the originals first. Add an Original row in Export as, as in how to find and export every image in a Figma file. It saves the file Figma stores for each image fill, up to 4096 px. On Free, this has no cap.
- Replace the canvas copy. Swap in a version sized for the slot at the largest scale you export, for example 640 px for a 320 px slot exported at 2x (how 1x, 2x and 3x exports work). Figma's memory article suggests compressing large images and points to the Downsize plugin.
Check components and instances#
Repeated UI should be instances of one component, and no component should exist twice under two names. Asset finder lists both, but you make the calls.
- Components. Each component and component set gets its own card, never grouped. Sort by Name and look for pairs like
ButtonandButton copy. - Instances. Same-looking instances share a card, and Most used shows which identical instances repeat most. A different label or colour means a separate card, which is normal. Look for the one that should not exist, such as an off-palette button.
Rename layers so exports are named well#
For batches, use Figma's Rename layers: select the layers and press Cmd+R on Mac or Ctrl+R on Windows.
The dialog can insert the current name, add numbers and match part of a name, with regular expressions (Figma help: rename layers). For example, select the icons, type icon/ in Rename to and click Current name: arrow-left becomes icon/arrow-left, which Figma's export puts in an icon folder.
In Asset finder, click a card's name to rename the layer in Figma, as its own undo step. Tokens use that layer's values: {frame} is the current name, and {page}, {width} and {height} work too. Typing img-{frame}-{width}w on a 1440 px wide card called hero gives img-hero-1440w.
On a grouped card, only the copy that would be exported is renamed. Naming the export files themselves is covered in batch export with naming patterns.
How do you delete layers safely?#
Save a named version, move anything doubtful to the Archive page, then delete. Cmd/Ctrl+Z undoes a delete right away, and the version covers you later.
Choose Save to Version History from the menu, or press Cmd+Option+S on Mac or Ctrl+Alt+S on Windows, and title it Before cleanup (Figma help: version history).
In Asset finder, the trash button on a single card works in two clicks:
- Click once. The button turns into a red Delete?. Moving the pointer away cancels.
- Click again. The layer is removed from the Figma file, not just the list, as its own undo step.
Grouped cards have no trash button. Their layers button selects the copies one page at a time, current page first, including the one you meant to keep. To remove only the extras, open ×N, use Focus on each extra copy and press Delete in Figma.
A quick cleanup checklist#
Run it top to bottom and paste it into the handoff ticket.
[ ] Named version saved ("Before cleanup")
[ ] Memory usage checked on the heavy pages
[ ] Pages named for areas; explorations on an Archive page
[ ] No default names (Frame 427, Group 12) on frames that ship
[ ] Hidden and 0% opacity layers deleted, archived or kept on purpose
[ ] Slivers under 4 px reviewed
[ ] Duplicates reviewed (Most used, ×N lists)
[ ] Oversized images: originals exported, canvas copies right-sized
[ ] Repeated UI uses instances; no duplicate components
[ ] Layer names match the file names the code will use
[ ] Handoff version savedTry it on your next handoff#
Install UIXport from Figma Community, open Asset finder, choose Entire file and read the three counts before you share the link. Scanning is free and does not use exports.