Batch export Figma frames with file-naming patterns

Name batch exports from Figma with tokens like {frame}, {page}, {scale} and {index}, export several formats in one run, and know what the ZIP will contain.

By UIXport team7 min read
On this page

Key takeaways

  • In UIXport's Exporter, open Advanced settings and type a Naming Pattern such as {page}_{frame}_{scale}. Every checked item then gets a predictable file name in every format row.
  • The hint lists {frame}, {page}, {scale} and {index}. The pattern also accepts {format}, {date} and {time}, while {width}, {height} and {category} come out empty in file names.
  • Two rows with the same format would share a name. Put {scale} in the pattern, or give one row a Filename suffix such as @2x.
  • Two or more files arrive in one ZIP, called UIXport Export.zip unless you name it. A merged PDF is named after the first item unless you name it.
  • On the Free plan, batch exports have no cap. Only a run that uses a Pro feature spends one of 10 free Pro runs a month.

A batch export is only as useful as its file names. This guide shows how to set a naming pattern in UIXport's Exporter, combine it with a suffix per format row, export several formats in one run, and know what the ZIP will contain before you click export.

Why file names matter for handoff#

A batch export is only useful if the person who opens the ZIP can find things. A developer looking for the 2x hero image should not have to open ten files called Frame 12. Figma's own export names files after the layer plus a suffix, as Figma export settings explained shows. UIXport adds a pattern on top. Names that carry the page, the frame and the scale also make it easy to drop files into a project folder without renaming them by hand.

UIXport builds each file name from three parts:

  1. The Naming Pattern, which applies to every item in the run.
  2. The Filename suffix of the format row, which is added after the pattern.
  3. The file extension of the row's format.

The pattern is set once. The suffix is set per row. Together they decide what lands in the ZIP.

The tokens you can use#

The Naming Pattern field starts as {frame}. The hint under it lists four tokens:

  • {frame}: the item's name in the Exporter list. For a Figma layer that is its layer name. You can click a name in the list to rename that item's output (Enter saves, Escape cancels).
  • {page}: the name of the Figma page the selection was made on. Uploaded files have no Figma page, so for them {page} becomes UIXport.
  • {scale}: the row's scale, for example 2x.
  • {index}: a running number that starts at 1.

The pattern also accepts {format}, {date} (YYYY-MM-DD) and {time} (HH-MM-SS).

Some patterns that work well:

Pattern Example result
{frame} Hero.png
{page}_{frame} Landing_Hero.png
{frame}_{scale} Hero_2x.png
{index}_{frame} 1_Hero.png
{page}_{frame}_{date} Landing_Hero_2026-10-28.png

UIXport cleans names before saving. The characters \ : * ? " < > | become underscores, and repeated spaces collapse to one. Forward slashes are kept, so a frame named icons/arrow keeps its slash in the file name.

Set up a batch export with a naming pattern#

  1. Select the frames. Open UIXport in Figma. It starts on the Exporter tab. Select frames or layers on the canvas. They appear in the list, checked by default, and the header shows Selected (x/y). You can also click Upload to add local images or PDFs up to 50MB each.
  2. Check the names in the list. Click any name you want to change. That name is what {frame} uses for that item.
  3. Add your format rows. The Export as card starts with one row: PDF at 1x. Change it, then click Add format for each extra output. A new row starts as PNG at 1x. Pick a scale (0.5x, 1x, 1.5x, 2x, 3x or 4x) and a format (PNG, JPG, WEBP, AVIF, SVG or PDF) for each row.
  4. Add suffixes where rows overlap. Open a row's menu (⋯), type a Filename suffix such as @2x and click Done.
  5. Write the pattern. Open Advanced settings and type your Naming Pattern, for example {page}_{frame}.
  6. Name the ZIP. When more than one item is checked, the Archive settings card appears. Type a name in ZIP archive file name. If you leave it empty, the ZIP is called UIXport Export.zip. With a PDF row and Merge pages into a single PDF on, the field reads Merged PDF file name instead (see how PDFs are named).
  7. Export. Click Export Selected (N Formats). One file downloads on its own. Two or more come in one ZIP.

AVIF rows need UIXport Pro, or one of the Free plan's 10 free Pro runs a month. Every other format here is on the Free plan.

Several formats in one run#

Each format row gives one file per checked item. Five frames with rows for PNG 1x, PNG 2x and WEBP 1x give 15 files in one click. See batch export for everything a run can include.

Rows with different formats already get different extensions, so Hero.png and Hero.webp do not clash. Two rows with the same format do. With the default {frame} pattern, a PNG 1x row and a PNG 2x row both produce Hero.png. UIXport does not overwrite one with the other. It adds (1), (2) and so on to the duplicates, which keeps both files but makes it hard to tell which is which.

You can fix this in two ways:

  • Put {scale} in the pattern, for example {frame}_{scale}, so you get Hero_1x.png and Hero_2x.png.
  • Leave the pattern as {frame} and give the 2x row the suffix @2x, so you get Hero.png and [email protected], the convention Figma export at 1x, 2x and 3x explains.

SVG rows always export at 1x, whatever scale you pick. If you want an SVG and a PNG of the same frame, the extensions keep them apart.

How PDFs are named#

PDF rows follow their own rules, because they can merge:

  • Merged. With a PDF row and more than one item checked, Merge pages into a single PDF is on by default. The field in Archive settings then reads Merged PDF file name. If you leave it empty, the file is named after the first item, as {first item name}_merged.pdf.
  • Separate. Turn the toggle off and you get one PDF per item, named by your pattern and the row suffix. Each of these files also gets -compress added to its name.

The order of pages in a merged PDF follows the order shown in the list. More on this in merging Figma frames into one PDF.

Naming in the Asset finder#

The Asset finder tab has its own Naming pattern under Advanced settings, with four presets:

  • Frame name only: {frame}
  • Page + Frame: {page}_{frame}
  • Frame + Scale: {frame}_{scale}
  • Index + Frame: {index}_{frame}

Here {page} is the page each asset sits on, not the page you are viewing. So when you scan the Entire file, Page + Frame starts each file name with the asset's page name, for example Page 1_Hero. The ZIP is called UIXport Assets.zip unless you type a name in ZIP archive file name.

With Group duplicates on, which is the default, copies that look the same share one card and export once, from the largest visible copy. So a logo placed on every screen gives one file per format row, not one per copy.

The Asset finder can also rename the layers themselves in Figma, using tokens. That changes your Figma file, as its own undo step. See finding and exporting every image in a Figma file and the Asset finder page.

What counts on Free#

The Free plan has no cap on PNG, JPG, SVG, WebP and PDF batches. A run that uses a Pro feature spends one of 10 free Pro runs a month, reset on the 1st (UTC):

  • 3 frames × 3 PNG or WebP rows = no Pro run.
  • 10 frames merged into one PDF = no Pro run.
  • 50 frames with an AVIF row = 1 Pro run.
  • A run that fails does not count.

Batch freely on Free, and group Pro work into one run. Pro makes Pro features such as AVIF, target file size and platform packs unlimited, for $4.99 a month or $49.99 a year.

Limits and tips#

  • One saved preset on Free. Free saves one preset of format rows and pattern on your device. Pro saves more and can share them in the file.
  • Uploaded files. {page} becomes UIXport for uploads. SVG rows skip uploaded files.
  • One failure stops the run. If any item fails, the run stops with "Export failed: {reason}" and nothing downloads. Fix that item and export again.
  • PNG is not compressed. It is Figma's own PNG. The quality slider applies to JPG, WebP, AVIF and PDF rows.
  • Not sure you need a plugin? For a few PNG or JPG files, Figma's own export may be enough. See UIXport vs Figma native export.

Try it in Figma#

Batch export and naming patterns are part of the Free plan. Install UIXport from Figma Community, select a few frames and set your first naming pattern.

Questions

Which naming tokens does UIXport support?

The Exporter hint lists {frame}, {page}, {scale} and {index}. The pattern also accepts {format}, {date} (YYYY-MM-DD) and {time} (HH-MM-SS). {width}, {height} and {category} come out empty in export file names, so leave them out of the pattern.

What happens when two format rows produce the same file name?

Nothing is overwritten. The second file gets " (1)" added, the next " (2)", and so on. For clearer names, put {scale} in the pattern, as in {frame}_{scale}, or add a Filename suffix such as @2x to one of the rows.

What does {page} become for uploaded files?

Uploaded files have no Figma page, so {page} becomes UIXport for them.

Can I save a naming pattern as a preset?

Yes. A preset saves your format rows and naming pattern together. Free keeps one saved preset on your device, and Pro saves more and can share them in the Figma file.

Does a batch count against a limit on the Free plan?

Not for PNG, JPG, SVG, WebP and PDF, which have no cap. A run that uses a Pro feature, such as an AVIF row, spends one of 10 free Pro runs a month, however many frames it includes. A run that fails is not counted.

Does the Asset finder use the same naming pattern?

It has its own Naming pattern under Advanced settings, with four presets: Frame name only, Page + Frame, Frame + Scale and Index + Frame. There, {page} is the page each asset sits on, not the page you are viewing.

Features in this post

Share this post

Share on XShare on LinkedIn

UIXport team

We build UIXport, the Figma plugin for exporting, compressing and delivering UI assets, at Sigma Studio.

About UIXport
  • how to6 min read

    Fix Improve image delivery in Lighthouse

    How to fix Improve image delivery in Lighthouse. What the insight checks since Lighthouse 13, and which fixes belong in the design export or the code.

Try it in Figma

Install the plugin from Figma Community. Free includes unlimited core exports and 10 Pro runs a month; Pro adds motion export, print-ready PDFs, AVIF and more.