Free GS1 DataBar Expanded Barcode Generator

GS1 DataBar Expanded carries a GTIN and more data in one barcode a checkout scanner reads, each piece marked by an Application Identifier (AI) in brackets: (01) for the GTIN, (17) for an expiry date, (10) for a batch. Type the AIs and values; check digits are added or checked for you.

Application Identifiers in brackets, each followed by its value, e.g. (01)09501101530003(17)261231(10)AB-123.

15 mm
10 modules

The blank margin left and right of the bars, in modules (the width of the narrowest bar). GS1 DataBar Expanded needs none.

4×

Made in your browser; nothing you type is sent to QRdx. WebP and AVIF are encoded by QRdx's server when you pick them, and nothing is kept.

Where GS1 DataBar Expanded barcodes are used

Fresh food sold by weight, such as meat, cheese and deli counters, where the weight or the price travels with the GTIN so the checkout can read it from the barcode.

North American coupons use its stacked form, GS1 DataBar Expanded Stacked, which this generator doesn't draw.

Do I need GS1 numbers for GS1 DataBar Expanded?

For the GTIN in (01), yes: it's built from a GS1 company prefix. Weights, prices, batches and dates are your own data.

A GTIN is licensed, not bought outright: you join GS1 (or the GS1 organization in your country), get a company prefix and number your products from it. Large retailers and marketplaces check GTINs against GS1's registry, so numbers resold from someone else's prefix can be rejected.

GS1 DataBar Expanded input and check digit

What it takes

Application Identifiers in brackets, each followed by its value, e.g. (01)09501101530003(17)261231(10)AB-123.

Example

(01)09501101530003(17)261231(10)AB-123
(01) 09501101530003
GTIN of the product or case
(17) 261231
Expiry date (YYMMDD)
(10) AB-123
Batch or lot number

Write each AI in brackets followed by its value: (01)09501101530003(17)261231(10)AB-123. The brackets aren't encoded; they show where each field starts.

GTINs in (01) and (02) and SSCCs in (00) get their check digit added when you leave it off, or checked when you don't. The encoder also checks the data against GS1's rules: a batch (10) without a GTIN, for example, is refused.

It holds up to 74 digits of AIs and data, and fewer when there are letters. Put variable-length fields such as (10) batch last, so no separator is needed after them.

The check digit of 0950110153000, worked out

Each digit of 0950110153000 with its weight and product
Digit0950110153000
Weight×3×1×3×1×3×1×3×1×3×1×3×1×3
Product091503101153000

The products add up to 47. Adding 3 makes 50, the next multiple of 10, so the check digit is 3.

GS1 DataBar Expanded barcode size

Sizes of the GS1 DataBar Expanded example at the generator's default settings
Example as SVG, PDF or EPS105.8 × 19.2 mm
Module (narrowest bar)0.353 mm
Bar height15 mm
Quiet zoneNone required each side; the generator starts with 10
  • The downloads use a 0.353 mm module and 15 mm bars. GS1 asks for bars at least 34 modules high, 12 mm at this module.
  • It's long, not tall: the example's bars are 98.8 mm long, a little more than the same data as GS1-128 (93.8 mm). More data makes it longer still.

GS1 DataBar Expanded barcode API

The same barcode is an image URL, with no API key: put it in an img tag, a label template or a product feed. It checks the value the way this page does, and allows 300 requests a minute per IP address. The barcode API docs list every option.

SVG image

https://api.qrdx.dev/v1/barcode?format=gs1-databar-expanded&data=(01)09501101530003(17)261231(10)AB-123

PNG, 3 pixels per module

https://api.qrdx.dev/v1/barcode?format=gs1-databar-expanded&data=(01)09501101530003(17)261231(10)AB-123&type=png&scale=3

In a web page

<img src="https://api.qrdx.dev/v1/barcode?format=gs1-databar-expanded&data=(01)09501101530003(17)261231(10)AB-123" alt="GS1 DataBar Expanded (01)09501101530003(17)261231(10)AB-123" />

GS1 DataBar Expanded barcode FAQ

Why does my scanner show no brackets?

The brackets are only for people. Readers report the data with a symbology identifier (]e0) or none, and separate variable-length fields with an invisible GS character. The scan check here accepts all of these forms.

GS1 DataBar Expanded or GS1-128?

Use the one your retailer or trading partner asks for. GS1 DataBar Expanded is the retail one, read at the checkout on items such as fresh food; GS1-128 is the logistics barcode on cases, pallets and shipping labels.

Other barcode types

All 20 barcode types

Barcodes are static: the data is in the bars, so they work offline and never expire. For a link people scan with a phone camera, use one of the QR code generators.

Make your next QR code

Free in your browser, with no signup or watermark, and dynamic codes when you need them.