InDesign Data Merge with a unique QR code on every page
2 December 2026
InDesign's Data Merge builds a page, or a sheet of labels, for every row of a spreadsheet. With a column of image files it can put a different QR code on each one, and the name, table or seat number from the same row beside it.
Every BulkQR download of PNG or SVG images includes that spreadsheet:
_merge.csv, with one row per code and an @image column naming each code's
file. Mail merge QR codes explains what's in it and
how to get your other columns into it. This post is the InDesign part, using the
series' made-up gala guest list.

Before you start
- Generate your codes at BulkQR as PNG, at a generous scale so they stay crisp in print, and unzip the download into a folder.
- Leave
_merge.csvin that folder. The@imagecolumn holds bare file names, and InDesign looks for them relative to the CSV. Move the CSV and the images go missing. - Name your columns first, if they came through as
column4and so on: change the first line of_merge.csvin a text editor before you select it as the data source.
Step by step
Open or create your document. Draw a graphics frame where the QR code goes, at the size you want it printed, and text frames for anything else (the name, the table).
Open Window › Utilities › Data Merge.
From the panel's menu, choose Select Data Source… and pick
_merge.csv.Place the code. Select the graphics frame with the Selection tool and drag the image field from the panel onto it. That's the
@imagecolumn: the panel drops the@and shows a picture icon instead.Place the text. Click into a text frame where the name should go and click Name in the panel. Repeat for each field. Style the
<<Name>>placeholder as you would any text.
Preview. Tick Preview at the bottom of the panel and step through a few records. Each should show a different code and its own name.

Merge. Choose Create Merged Document… from the panel menu, or Export To PDF to go straight to a PDF. Tick Alert When Images Are Missing, so a missing file can't slip through quietly.
Badges and label sheets
To fit several badges or labels on each page, choose Multiple Records under Records Per Document Page when you merge. The Multiple Record Layout tab sets the page margins, whether records run in rows or columns first, and the spacing between them. Tick Preview Multiple Record Layout to check the sheet before you commit.

With an A4 page and one badge laid out in its top-left corner, the gala list merges to four badges a sheet, like the sheet at the top of this post.
Two limits to know: the document you merge from must be a single page, or its fields on a single parent page, and every record takes the same space.
Content Placement Options
Content Placement Options, in the Data Merge panel menu, decides how each image sits in its frame:

- Fit Images Proportionally is the default and keeps the code square. Add Center In Frame (Centre In Frame in UK English) so a square code sits in the middle of a frame that isn't.
- Link Images keeps the images as links to the files in your folder. Untick it to embed them in the merged document instead.
- Remove Blank Lines for Empty Fields tidies text frames where some rows have no value, such as an optional company line.
Doesn't InDesign make QR codes itself?
It does. A column headed with a #, such as #QRCode, becomes a QR code
when you merge, and links go in as URL:https://…. For plain codes from a
short list, that's enough.
BulkQR's codes are worth the extra step when you want a logo in the middle, your brand's colours or a chosen error correction level. A dynamic code can even be pointed somewhere else after the badges are printed, though its merge file doesn't carry your other columns yet: its rows are in your list's order, so paste the names in alongside. You also get image files you can use on the web, in Word or in email, so every copy of a code is the same.
When it doesn't work
- Images are missing.
_merge.csvhas moved away from the images, or an image was renamed. Put them back in one folder and merge again. - A row has no code. Its
statusisfailed, because the code couldn't be made: the data might be too long for a QR code. Fix that row in your list and generate again, or delete the row before you merge. - Accented names look wrong. The CSV was saved from Excel without UTF-8. Save it as CSV UTF-8, or edit it in a text editor instead.
- You can't choose Multiple Records. The document has more than one page with fields on it. Lay the record out on a single page.
Before the print run, scan a few codes on the proof with an ordinary phone. What makes a good QR code covers the size and contrast that keep them scanning.
More in this series
- Mail merge QR codes: what's in
_merge.csv - QR codes in a Word mail merge
- Email each guest their own QR code
Got a list and a layout? Generate your codes and merge them in one go.