How to rename layers in bulk in Figma
A file full of "Frame 482" and "Rectangle 17" works fine until someone else opens it. They search the Layers panel for the pricing card and get forty frames with the same useless name. Renaming one layer at a time is slow, so most people put it off for good.
Figma has a batch rename built in, and it's on every plan. This guide covers how it works, the codes it accepts, and the places where it gets awkward. At the end there's a shorter route with a plugin.
Open the Rename layers dialog
- Select the layers you want to rename, on the canvas or in the Layers panel.
- Press Cmd+R on a Mac or Ctrl+R on Windows. You can also right-click the selection and choose Rename layers.
- Fill in the fields. A Preview list on the left shows the new names before anything changes.
- Click Rename.
You need edit access to the file. If you only have view access, the dialog won't help you.
Give every layer the same name
Leave Match empty and type the new name in Rename to. Every selected layer gets that exact name. This is handy for list rows or icons that should all be called the same thing, like "Row" or "Icon/Close".
Add a number to each layer
Click the Number button with the up arrow to add an ascending number, or the one with the down arrow for a descending one. If you don't want to start at 1, fill in Start ascending from (or Stop descending at for the other direction).
Those buttons insert codes, and you can type the codes yourself. Figma's help page lists these:
$nis a counter that goes up.$nnnis a counter that goes up and always has three digits, so 001, 002, 003.$NNNis a three-digit counter that goes down.
So a Rename to value of Row $nnn on 12 layers gives you Row 001 through Row 012. Zero-padded numbers sort properly when someone reads the list later, which plain $n doesn't do once you pass 9.
Keep the old name and add a prefix or suffix
The Current name button drops each layer's existing name into the field. Type Card / in front of it and every layer keeps its name with "Card / " at the start. Type text after it and you've added a suffix instead. The slash matters in Figma, since it groups components and styles into folders.
Change only part of a name
Type the text you want to find in Match. Then type what should replace it in the replace field. Only the matched part changes and the rest of the name stays.
Match also takes regular expressions. Figma's own example is Match ([a-zA-Z]+)_(\d+) with a replace value of $2_$1, which turns "Icon_003" into "003_Icon". In the replacement, $1 and $2 are the bits you wrapped in brackets, and $& is the whole match. If regex is new to you, test the pattern on regexr.com first, which is the tester Figma's help page links to.
Let Figma AI name the layers
On Professional, Education, Organization and Enterprise plans, Figma AI can suggest names. Select the layers, click Actions in the toolbar and choose Rename layers. It renames frames, groups and text layers for you.
It has firm limits, though. It only renames layers that still have Figma's default names. It skips hidden and locked layers, anything nested inside an instance, and plain vector shapes like ellipses, stars and polygons. Anything you've already named stays as it is.
Where the manual way runs out
The built-in dialog covers simple jobs well. A few things trip people up on bigger ones:
- One match per name. A bug report on the Figma forum from April 2025 says Match replaces only the first hit in each name per run, and Figma reproduced it. If the text you're replacing appears twice in a name, run it again or check the preview.
- No case changes. Regex case codes like
\L$1or\Uget inserted as literal text. You can't lowercase or title-case names with the dialog. - Order is a guess. The help page doesn't say whether numbering follows layer order or where layers sit on the canvas. Read the preview before you click Rename.
- Narrow preview. Long names get cut off in the preview list, so you can't always read the full result.
- AI only touches defaults. Once a layer has any custom name, Figma AI leaves it alone, and the feature needs a paid plan.
Undo works as normal with Cmd+Z or Ctrl+Z if a rename goes wrong.
A shorter route with a plugin
Sparrow Bulk Rename puts these jobs in one panel with a live preview of every old and new name. The free version does find and replace, prefix, suffix, case changes and numbering on up to 50 layers per action. Numbering can follow layer order or position on the canvas, locked layers are skipped, and one undo puts every name back.