Barcodes in Adobe InDesign Data Merge
- This tutorial shows how to create barcodes in Adobe InDesign using an Excel file as data source.
![](https://media.barcodewiz.com/images/d01ef337-8547-411c-a3e3-a0b9e2449d6b-indesign020.png)
Step 1. Create barcodes in Excel
- Click on Addins > Code 128 Options.
![](https://media.barcodewiz.com/images/af7c3b8d-d89f-4290-be6c-b851cdf377e3-indesign000.png)
- Select Code 128 A, Code 128 B, or Code 128 C. This ensures our barcodes are created with only one font.
- Do not select Code 128 Auto.
![](https://media.barcodewiz.com/images/e12c8fb8-af6a-4323-bf28-478dc25e7942-indesign001.png)
- Close the window.
![](https://media.barcodewiz.com/images/31981e36-3fac-48f3-b678-84ecd3397235-indesign002.png)
- Open the Excel file with data to convert or enter the values. Our example has the following data:
![](https://media.barcodewiz.com/images/ea737100-8ed9-4269-b93a-2a5fafdd1d81-indesign003.png)
- Using your mouse, select the cells to convert to barcodes.
- Click on Selection To Barcodes.
![](https://media.barcodewiz.com/images/ab33d3d7-075f-45a0-a3ec-570a30d7f7d3-indesign004.png)
Step 2. Save the file in CSV UTF-8 (Comma Delimited) format
- Click on File > Save As
- For InDesign versions older than 2022 Select CSV UTF-8 (Comma delimited) and enter the name of the file: Mail Merge Data.csv.
- For exporting for use in Macintosh or for InDesign 2022, select "Unicode Text (*.txt)".
- Close EXCEL. Otherwise, InDesign will not import the file.
![](https://media.barcodewiz.com/images/326cbe43-a4ce-4f6c-bde7-a9b88da53679-indesign005.png)
- Contents of our saved file:
![](https://media.barcodewiz.com/images/359bafab-3baf-4227-9a05-6fb8edd734bb-indesign006.png)
Step 3. Start Data Merge in Adobe InDesign
- Click Window > Utilities > Data Merge
![](https://media.barcodewiz.com/images/42435f95-c004-438d-9dba-c73d02cc8c7f-indesign007.png)
Step 4. Select Data Source
- Right-click the panel menu icon and click Select Data Source...
NOTE! Close EXCEL before importing the file. If the file is open, InDesign won't open it.
![](https://media.barcodewiz.com/images/a5274565-329e-40b2-b9cf-78a1b3817031-indesign008.png)
- Browse for the file we saved in step 2 and click Open.
![](https://media.barcodewiz.com/images/93e836c7-7df3-4342-ad3b-ec497226b747-indesign009.png)
- The fields are now shown in the Data Merge panel.
![](https://media.barcodewiz.com/images/64963e5b-aa8c-4e5f-9372-1dd4ee12ec39-indesign010.png)
Step 5. Add Data Fields to label
- Drag the field names onto the label area.
![](https://media.barcodewiz.com/images/f08d0fbf-b7e3-4aee-b3cd-02dfa813f112-indesign013.png)
Step 6. Set Barcode Font
- Select the Barcode field on the label and change its Font Name to BCW_Code128B_2 and Size to 24 pt
![](https://media.barcodewiz.com/images/247c60b0-3a8c-4320-9a7e-a88142291fc1-indesign014.png)
![](https://media.barcodewiz.com/images/de1971db-8519-4fb0-bc03-1b6c9fe0fca8-indesign015.png)
Step 7. Create the Merged Document
- Click on the Create Merged Document button at the bottom of the panel.
![](https://media.barcodewiz.com/images/e7b13cce-fc99-40eb-9401-63be7342052c-indesign016.png)
- Select which records to merge and click OK. We are selecting All Records here.
![](https://media.barcodewiz.com/images/016a5329-e671-4961-9a2d-3feaab7bbd5b-indesign017.png)
Ready!
- The Merge is now complete.
![](https://media.barcodewiz.com/images/56ae8bbe-5ab2-45a9-b2a7-9ea23857cf3d-indesign021.png)