Add QR codes to merged documents

Last updated on Jun 2, 2026

Learn how to use data merge with formatted CSV or TXT files to generate QR codes automatically in document variations.

Add QR codes to merged documents by defining QR data in your source file and merging it into your layout. InDesign supports several QR code types, including plain text, web links, text messages, email addresses, and business cards.

Open the data source file (CSV or TXT) in a spreadsheet application or text editor.

Add a column header with a hash symbol (#) prefix, such as #QRCode or #ContactInfo.

Enter QR code data in the format for your chosen type:

  • Plain text: Enter the text directly.
  • Web hyperlink: URL:<url> (for example, URL:http://www.google.com)
  • Text message: SMSTO:<phone number>:<message> (for example, SMSTO:9818143551:Hi)
  • Email: MATMSG:\nTo:<email address> (for example: MATMSG:\nTo:johndoe@adobe.com\nSUB:Hi;\nBODY:;;)
  • Business card (vCard): BEGIN:VCARD\nVERSION:2.1\nN:Smith;John\nFN:John
    Smith\nORG:Adobe\nTITLE:Engineer\nTEL;CELL:+919876543210\nTEL;WORK;VOICE:123456789\nADR;WORK:;;Street
    ABC;Seattle;Washington;98101;US\nEMAIL;WORK;INTERNET:abc@adobe.com\nURL:www.adobe.com\nEND:VCARD

Save the file in CSV or TXT format using a delimiter such as a comma, tab, or semicolon.

Open the Data Merge panel (Window > Utilities > Data Merge).

Select Select Data Source, choose the data file that contains the QR field information, and select Open.

Select the QR code placeholder in the document.

Choose Create Merged Document from the Data Merge panel menu.