How to Bulk Rename Layers in Figma — Numbering, Find & Replace, and Regex
“I have a pile of auto-names like Rectangle 1 and Frame 23 to clean up.” “I want to strip the same word out of every layer name.” “I need to renumber them.” Tidying layer names by hand is a chore, but Figma has a built-in Rename Layers feature for changing names in bulk. Without a plugin, you can rename in batches, replace parts of names, and add numbering.
This article walks through opening the rename dialog → replacing part of a name → adding numbers → renaming frames, in order. At the end, we cover tidying up the auto-generated names from an Adobe XD migration.
The entry point to remember
Select the layers you want to tidy and press Cmd + R (Mac) / Ctrl + R (Windows) to open the rename dialog. You can also right-click → “Rename.” From there you just type a name, replace part of it, or add numbering.
What you’ll learn
- How to rename multiple layers at once
- How to find and replace just part of a name (Match / Replace)
- How to add ascending or descending numbers
- How to rename frames
- How to tidy up auto-generated names from an XD migration
✏️ Open the rename dialog (Cmd/Ctrl + R)
Bulk renaming is done with the built-in Rename Layers feature.
- Select the layers to rename. Select multiple layers on the canvas or in the layers panel.
- Open the rename dialog. Press
Cmd+R(Mac) /Ctrl+R(Windows). You can also right-click in the layers panel → “Rename.” - Type the new name. To give every layer the same name, just type it. A preview of the updated names appears on the left, so you can check the result before applying.
Check the preview before applying
The Rename Layers dialog shows a preview of the resulting names on the left as you type. Combining numbering and replacements can make the outcome hard to predict, but you can adjust while watching the preview. Confirm it looks right before applying.
🔍 Replace part of a name (Match / Replace)
When you want to change only part of a name instead of the whole thing, use the Match and Replace fields.
- Match: identifies which part of the name to update.
- Replace: what to replace that part with.
For example, to change the Icon/ in Icon/Home to Image/, put Icon/ in Match and Image/ in Replace, and it becomes Image/Home. Only the matched part changes, not the whole name — handy for fixing a shared prefix or suffix across many layers.
Regular expressions too (advanced)
The Rename Layers dialog also supports regular expressions (Use Regular Expressions / Advanced), using JavaScript regex syntax. For instance, you can reorder the structure of a name itself — turning Icon_003 into 003_Icon. Keep it in mind for when a simple replacement isn’t enough.
🔢 Add numbers (Number ↑ / ↓)
To add sequential numbers to several layers, use the numbering buttons in the dialog.
- Number ↑: adds ascending numbers (1, 2, 3…).
- Number ↓: adds descending numbers (…3, 2, 1).
- You can set the starting value too (start ascending from / stop descending at).
Combine name text with numbering to produce names like Card 1, Card 2, Card 3… in one pass. The order follows the selection or layer order, so if it doesn’t come out as expected, reselect and apply again.
🖼️ Renaming frames
Frames can be tidied the same way.
- Several frames at once: frames are layers too, so select multiple and press
Cmd/Ctrl+Rto rename them in bulk from the Rename Layers dialog. - A single frame quickly: double-click the frame name shown at the top of the frame on the canvas to edit it in place. For just one, that’s faster.
Converts your XD layers and group structure into Figma. Try the Free version on your own file to check the fidelity before you decide.
🔌 More advanced renaming with a plugin
The built-in Rename Layers covers most cases, but when you need finer control, Community plugins are an option.
- Bulk prefixes/suffixes (patterns the built-in numbering and replace don’t reach)
- Applying from a list of names (assigning a prepared list to your layers)
For those advanced cases a dedicated plugin helps, but try the built-in Rename Layers first — it covers numbering, replacement, and regular expressions out of the box.
🔄 Tidying up layer names from an XD migration
Files migrated from Adobe XD often carry auto-generated names (Group 5, Rectangle 12, and so on). They still work, but tidying them up makes later work easier.
- Right after migrating, batch-tidy with Rename Layers to get your naming consistent.
- This assumes the original structure (layer and group hierarchy) carried over intact. If the structure broke, you’ll be rebuilding before you even get to renaming.
When choosing a migration path, picking one that converts your layer and group structure directly into Figma makes the cleanup smoother. For the overall migration workflow, see the XD → Figma migration playbook.
💬 FAQ
Q: Can I rename layers in bulk in Figma?
Yes — it’s the built-in Rename Layers feature. Select multiple layers and press Cmd + R (Mac) / Ctrl + R (Windows), or right-click → “Rename,” then type the new name.
Q: I want to replace just part of a name.
Put the part to change in Match and the new text in Replace. Only the matched part changes, so you can fix a shared prefix or suffix across layers. For more complex reordering, regular expressions (Advanced) are available too.
Q: How do I number layers?
Use Number ↑ (ascending) or Number ↓ (descending) in the Rename Layers dialog. You can set the starting value, and combining it with name text gives you Card 1, Card 2… in one pass.
Q: Can I bulk rename frames too?
Yes. Frames are layers, so select multiple and press Cmd/Ctrl + R to rename them in bulk. For a single frame, double-clicking its name on the canvas is faster.
Q: My layer names were a mess after migrating from XD.
That’s the auto-generated names (like Group 5) carried over from XD. Batch-tidy them with Rename Layers right after migrating to get a consistent scheme. It assumes the layer and group structure carried over intact.
🎯 Recap
Bulk renaming in Figma is doable with the built-in Rename Layers feature alone. The four key points:
| # | Goal | Feature |
|---|---|---|
| 1 | Rename in bulk | Select multiple → Cmd/Ctrl + R |
| 2 | Replace part of a name | Match / Replace (regex too) |
| 3 | Add numbers | Number ↑ / ↓ (custom start) |
| 4 | Frame names | Several = bulk rename / single = double-click |
Cmd/Ctrl + R to rename in bulk, Match / Replace to swap part of a name, Number ↑ / ↓ for sequences. Keep those three in mind and tidying layer names stops being a chore. Together with bulk-changing fonts, colors, and text styles, naming cleanup is something the built-in features handle well. And if your file starts in Adobe XD, migrating with the layer and group structure intact is the surest way to make the cleanup smooth.
One-click install from Figma Community
Related pages
- How to bulk-change fonts in Figma — swapping fonts in bulk
- How to bulk-change colors in Figma — swapping colors in bulk
- How to bulk-change text styles in Figma — swapping styles in bulk
- XD → Figma migration playbook — the full migration workflow