Barcodes and QR Codes: One Label or a Whole Run

Darty-Ai’s QR / Barcode Generator

Darty-Ai’s QR / Barcode Generator makes finished, editable barcodes inside Illustrator: select a placeholder, choose a format, type the data, and apply. Make one code for one design, or connect the same settings to a spreadsheet and let every row produce its own label.

In this example, a fruit label needs a batch barcode and a QR code. We make the first barcode by hand, try the formats and styling options on a practice board, build a GS1 Digital Link, and then let a twenty-row sheet fill in the labels.

The template: a white panel for the batch barcode and a dashed square for the QR code.
A Code 128 batch barcode, drawn as vector artwork in the panel.

1. Make one barcode

Open the Darty-Ai panel and choose Tools → Barcodes → QR / Barcode Generator. Draw a rectangle where the code should go, or use one that is already in your template. Then click each step below to see where it happens.

The Generator sits in the Darty-Ai panel beside your artwork. Apply to Selection draws the code on whatever is selected.

The barcode replaces the placeholder and stays ordinary Illustrator artwork. You can move it, recolor it, or open it up like any other vector object.

2. Choose a format

Different jobs call for different codes, and they all come from the same Format list. Linear codes such as EAN-13, UPC-A and Code 128 hold a short number or code in a single row of bars. Two-dimensional codes such as QR Code, Data Matrix and Aztec hold more in a small square, including web addresses.

Some formats have a Variant. DataBar, for example, offers Omni, Stacked and Expanded versions. Each format checks its own data: an EAN-13 accepts digits only, while Code 128 also takes letters and punctuation.

Tip: Start clean. Click Reset before setting up a different kind of code, so settings from the last one do not carry over.
One list for every format.
Twelve formats on one practice board, each drawn into its own placeholder. Point at a format name above or a row of the table below to find it.
FormatKindOften used forHolds
EAN-13, UPC-A, UPC-ELinearRetail checkoutA product number (GTIN)
Code 128LinearBatch codes, shipping and warehouse labelsLetters, digits and punctuation
Code 39LinearIndustrial and inventory labelsCapital letters, digits and a few symbols
ITF-14LinearOuter cartonsA 14-digit GTIN
DataBarLinearSmall items and fresh produceA GTIN in less space
QR Code2DLinks for phone camerasA web address or text
GS1 Digital Link QR2DPackaging that serves shoppers and the supply chainA link carrying the GTIN, batch and dates
Data Matrix2DSmall parts, electronics, healthcareDense data in a very small symbol
PDF417StackedTransport and identity documentsLonger text
Aztec2DTickets and boarding passesText, without needing a quiet border

All supported barcode and QR formats

Darty-Ai supports the following format names and variants, grouped here for easy reference:

  • QR codes: QR Code, Micro QR Code, rMQR Code, GS Digital Link QR Code.
  • Other matrix and stacked codes: Data Matrix, Aztec, Aztec Code, Aztec Rune, PDF417, Compact PDF417, MicroPDF417, MaxiCode.
  • Retail and publishing: EAN/UPC, EAN-13, EAN-8, EAN-5, EAN-2, ISBN, UPC-A, UPC-E.
  • DataBar family: DataBar, DataBar Omni, DataBar Stacked, DataBar Stacked Omni, DataBar Limited, DataBar Expanded, DataBar Expanded Stacked.
  • General linear codes: Codabar, Code 39, Code 39 Standard, Code 39 Extended, Code 93, Code 128, ITF, ITF-14.
  • Specialized codes: Code 32, Pharmazentralnummer, DX Film Edge.

Some entries are family names or aliases: Aztec and Aztec Code refer to the same family, and GS Digital Link QR Code is the GS1 Digital Link QR workflow shown above. The available choices depend on the installed generator. See the barcode format reference for descriptions and guidance on choosing a format.

3. Match the design

A barcode has to scan, and it also has to belong in the design. The Generator’s appearance settings cover both. Point at a setting to find it in the panel and in the result.

Bar and background color

Module Color sets the bars or modules, and Background Color fills the area behind them. For each one, type a color value such as maroon or #6b0f1a, or choose a document swatch under Swatch Name so the code follows your brand palette.

Human-readable text

The digits under a retail barcode are the Human Readable Text. Choose Show text, then set the Font, Text Size and Tracking to suit the label. Text Gap and Horizontal Scale fine-tune the fit.

Code 39 in maroon on light blue.
UPC-E with its digits in Goudy.
Colors by value or by swatch name.
Font, size and tracking for the text under the bars.

Try it: colors and the check digit

Type the first twelve digits of an EAN-13 and pick two colors. The thirteenth digit is the check digit, which a scanner uses to confirm it read the number correctly.

Dark bars, light background. Scanners read the difference between bars and spaces. Keep the bars dark and the background light, and check the printed result with a real scanner or a phone before production.

4. Place it precisely

Targeting decides where the code goes. Apply to Selection uses whatever is selected. To point at artwork by its Darty-Ai tag, enter the tag in Tag Search; Use Selection Tags fills it in from the selected object. A tag is what lets the same setting work later from a sheet, with nothing selected.

Placement decides what happens to the target. Replace Art swaps the placeholder for the code. Place in front keeps the placeholder and puts the code on top of it.

Sizing Mode decides how big it is. Module-based sets the width of a single bar, for an exact print dimension. Fit to target scales the code to the placeholder and lets the rectangle decide. Fixed size sets the overall size directly.

A tag, a placement and a sizing mode.
Place in front, module-based: the ITF-14 keeps its own size.
Replace Art, Fit to target: the Aztec code fills its square.

5. Build a GS1 Digital Link

A GS1 Digital Link is a web address that carries product data: the GTIN, and optionally the batch, serial number and dates. One QR code can then take a shopper to a product page and give the supply chain the identifiers it needs.

Choose the format GS1 Digital Link QR and the Generator shows a field for each part, so you do not write the link yourself. Enter the product’s GTIN as 13 digits and Darty-Ai validates it and adds the check digit. Add a Batch/Lot and an Expiry date, and the finished link appears in the URL preview, ready to encode.

The finished code on the board.
Fill in the fields; the link builds itself.

Try it: build a link and scan it

Change the fields and watch the link and its QR code follow. The colored underlines show which field each part of the link comes from.

  • 01 GTIN
  • 10 batch or lot
  • 17 expiry date, as YYMMDD

The numbers 01, 10 and 17 are GS1 Application Identifiers, the same ones used in other GS1 barcodes. The code drawn on this page is a plain QR code of the link; Darty-Ai packs the digits more efficiently, so its symbol for the same link is usually a little smaller.

6. Let a spreadsheet do the work

One barcode at a time is fine for a single design. For production, put the data in a sheet. This one holds twenty labels: five products, four batches each. The top rows hold the tag, the method and its properties. Each row below is one label, with the product name, the batch code that becomes a barcode, and the GTIN and best-before date for the QR code.

Twenty rows, twenty labels. The header rows tell Darty-Ai what each column does.

Load the sheet in the Data tab. The tag markers turn green when every tag in the sheet is found in the artwork. Click the lightning bolt on a row, and the title, its color and both codes are redrawn from that row. Click the next row, and it is a different product.

The barcode and QR settings are the same ones you used in the Generator. To set a code up visually and reuse it for every row, build the sheet in the Sheet Builder, where a Barcode method block holds the format, target and appearance, and each row supplies the data.

Each row has a lightning bolt that previews it on the artboard.

Try it: click a row

These are the first five rows of the sheet. Click a row, or its lightning bolt, and the label is redrawn from it, as it is in Illustrator.

showcase-label-data.xlsx - Sheet1
Rows 1 to 5 of 20. Columns F and G are left out.
ABCDE
product-titleqr
textbarcode
replaceformat:GS Digital Link QR CodegtinbatchbestBeforeDate
productgtinbatchbestBefore
Delicious Strawberries00012345000058STR-270301-A2027-03-08
Organic Blueberries00012345000065BLU-270302-A2027-03-09
Farm-Fresh Raspberries00012345000072RAS-270303-A2027-03-10
Wild Blackberries00012345000089BLK-270304-A2027-03-11
Sweet Dark Cherries00012345000096CHE-270305-A2027-03-12
Delicious Strawberries label with its batch barcode STR-270301-A and a GS1 Digital Link QR code
Row 1: Delicious Strawberries, batch STR-270301-A, best before 2027-03-08.

One template, twenty labels, and nobody retyped a number.

7. Export a file for each row

When the rows look right, open the Export tab. Add the label as a template, choose the output folder and file format, and set the Record Range: all rows, or a range such as 1-5 for a first proof.

Click Export. Darty-Ai builds each label in turn and writes a finished file for every row in the range. The progress list shows each file beside the row it came from.

Before a production run, scan a few of the exported labels with a phone and a handheld scanner. Preview checks the artwork; scanning checks the code.

Rows 1 to 5 exported as five PDF files.

Continue your workflow

New to tags, sheets and previews? Start with Getting Started. To build the sheet for your own labels without leaving Illustrator, see Sheet Builder, and for artwork that changes alongside the codes, Placing Images.

Scroll to Top