How to Print Barcode Labels from Excel on Mac with Zebra GK420d
Question details
The user needs to print 51 x 25 millimeter barcode labels from an Excel database using a Zebra GK420d thermal printer on a Mac.

- Product
- Microsoft Excel
- Device & OS
- Mac
- Scenario
- Generating barcodes from spreadsheet data and formatting them for thermal label printing on macOS.
- Observed behavior
- Excel does not natively generate barcodes, requiring a specific setup involving Mac printer drivers, barcode fonts, and mail merge functionality to properly format the 51x25mm labels.
Ensure your Mac recognizes the Zebra GK420d printer by checking your 'Printers & Scanners' settings, and verify that you have downloaded a compatible barcode font (like Code 39 or Code 128).
Use Word Mail Merge with Excel Data and a Barcode Font
Since Excel cannot precisely format print layouts for thermal labels directly, the best approach is to use your Excel sheet as a database and perform a Mail Merge in Word using a barcode font.
Excel is excellent for storing data but lacks native barcode generation and precise label layout tools. By combining your Excel data with Microsoft Word's Mail Merge feature and a custom barcode font, you can accurately print to your Zebra GK420d.
Ensure your Excel file has clear column headers (e.g., 'ProductID', 'BarcodeData'). Select the barcode data column, right-click, select 'Format Cells', and set it to 'Text' to prevent leading zeros from disappearing. Save and close the file.
Download a free barcode font (such as 'Free 3 of 9'). Locate the downloaded .ttf file in Finder, double-click it, and click 'Install Font' in the Font Book application.
Open Microsoft Word, go to the 'Mailings' tab, select 'Labels', and click 'Options'. Click 'New Label' and define the exact dimensions of 51 mm width and 25 mm height to match your Zebra label roll.
Under the 'Mailings' tab, click 'Select Recipients' > 'Use an Existing List' and choose your saved Excel file. Click 'Insert Merge Field' to place your barcode data into the label template.
Highlight the inserted merge field, go to the 'Home' tab, and change its font to the barcode font you installed. Go to 'Finish & Merge' > 'Print Documents', and ensure your Zebra GK420d is selected as the printer.

Use Dedicated Third-Party Label Printing Software
If setting up a mail merge is too complex, dedicated label printing applications can easily import Excel data and handle Zebra printer formatting natively.
Print Barcode Labels Easily with WPS Office for Mac
WPS Office provides a seamless Mail Merge experience on Mac, allowing you to use your spreadsheet data to generate and print barcode labels in WPS Writer. It is fully compatible with Microsoft Office formats and supports custom fonts flawlessly.
- 1. Prepare Data in WPS Spreadsheet: Open your data file in WPS Spreadsheet, ensure your barcode column is formatted as text so no data is lost, and save the .xlsx file.
- 2. Set Up the Layout in WPS Writer: Open WPS Writer, navigate to the 'Mailings' tab, and use the Page Setup options to customize your page size to match the 51x25mm thermal labels.
- 3. Insert Merge Fields: Click 'Open Data Source' to link your saved Spreadsheet. Click 'Insert Merge Field' to place the data exactly where the barcode should appear on the label.
- 4. Apply Barcode Font and Print: Select the field data, apply your downloaded barcode font from the font dropdown menu, and print the merged document directly to your Zebra printer.

Frequently Asked Questions
Why is my Zebra GK420d not showing up on my Mac?
The Zebra GK420d might lack native macOS drivers depending on your current OS version. You may need to install CUPS (Common UNIX Printing System) drivers for Zebra printers or check the manufacturer's official website for the latest compatible Mac drivers.
Can Excel generate barcodes natively without installing fonts?
No, Excel does not have a built-in feature to natively convert alphanumeric values into scannable barcodes. You must either install a specialized barcode font on your system or use a third-party add-in.
Why won't my barcode scan after printing from a Mail Merge?
If you are using a Code 39 font, you must wrap your data in asterisks (e.g., *DATA*) in your spreadsheet. Additionally, ensure the font size is large enough to be resolved by the thermal printer and that your thermal print head is clean.
How do I set the exact 51x25mm label size for my printer on a Mac?
In the Mac Print dialog box, click on 'Paper Size' and select 'Manage Custom Sizes'. Click the '+' button, enter 51 mm for the width and 25 mm for the height, and set all non-printable area margins to 0.




