EAN-13 barcode generator

Create EAN-13 barcodes for retail products worldwide. The check digit is calculated for you and files export at the exact GS1 size.

  • Free · no watermark
  • Runs in your browser
1 · Formattype: 'ean13'
Retail
Logistics
Industrial
12 digits, or 13 to verify the check digit
Check digit 1 calculated and added
3 · Bars
60 px
Module width
10 px · 5.0 X
4 · Text

EAN-13 uses the standard GS1 text layout, with digits split under the bars.

5 · Color
Bars
Background
6 · Rotation
Live previewEAN-13
100%
4 006381 333931
Modules
95
X-dimension
0.303 mm
Size
37.3 × 16.1 mm
Status
Valid
Export

Vector · best for print · 37.3 mm wide

Specs
Check digit
1
Quiet zone
5.0 X
Bar height
9.1 mm
Human text
GS1 layout
etiket · label.ts
import { barcode } from 'etiket'

const svg = barcode('400638133393', {
  type: 'ean13',
  height: 60,
  barWidth: 2,
  showText: true,
  margin: 10,
  background: '#FFFFFF',
})

About EAN-13

What is a EAN-13 barcode?

EAN-13 is the 13-digit barcode printed on retail products worldwide. It encodes a GTIN-13 — a GS1 company prefix, an item reference and a check digit — and is read by supermarket and point-of-sale scanners in every country.

Data
13 digits (12 + check digit)
Characters
Digits only. The first two or three digits are the GS1 prefix of the organization that issued the number.
Check digit
Mod 10, automatic
Print size
37.29 × 25.93 mm at 100% (X = 0.33 mm), scalable from 80% to 200%
Used for
Retail products, books (ISBN), Amazon and Shopify listings

How to create a EAN-13 barcode

  1. 1
    Enter your data
    Type or paste the 12-digit number. The check digit is calculated automatically, or verified if you enter it.
  2. 2
    Adjust bars and text
    Set bar height, module width and quiet zone, and choose whether to print the human-readable text.
  3. 3
    Set the print size
    Enter the final width in mm, cm, inches or pixels. The X-dimension and height update as you type.
  4. 4
    Download and test
    Export SVG for print or PNG at 300–600 dpi, then run a test scan before you print a full batch.
Other barcode generators

FAQ

EAN-13 questions

More answers in the general FAQ and the barcode size guide.

How do I create a EAN-13 barcode?

Choose EAN-13 in the format list, enter your data (12 digits, or 13 to verify the check digit), set the print width, then download SVG or PNG. The check digit is calculated for you.

What data can a EAN-13 barcode hold?

13 digits (12 + check digit). Digits only. The first two or three digits are the GS1 prefix of the organization that issued the number.

What size should a EAN-13 barcode be?

37.29 × 25.93 mm at 100% (X = 0.33 mm), scalable from 80% to 200%. Keep the quiet zone clear and print dark bars on a light background.

Is this EAN-13 generator free for commercial use?

Yes. There is no watermark, sign-up or usage limit, and barcodes are generated in your browser — your data is never uploaded.