Skip to content
OddsockLocal
Local
Source text
Image formatsvg
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Type the 12 data digits, or all 13 if you already know the check digit.
  2. Choose SVG for print or PNG for a raster mockup.
  3. Scan the result with the scanner that will read the package, not only with your eyes.
  4. If the content has letters, switch to Code 128. EAN-13 will not encode them.

What is EAN-13 barcode?

EAN-13 is the barcode on most retail packaging outside the UPC-only aisle: 13 digits, the last of them a check digit. This page draws that symbol and nothing else. EAN-13 needs 12 or 13 digits and a check digit. If you type 12 digits, the check digit is calculated and the bars include it. If you type 13, the thirteenth must be the right check or the page refuses, so you cannot accidentally print a code that scanners will reject.

Read more

The test number 400638133393 is 12 digits and encodes as 4006381333931. Passing the full 4006381333931 produces the same bars. Passing 4006381333939, with a wrong check, fails. Letters, spaces, and hyphens fail. A UPC-A is a different 12-digit retail symbol, often related to an EAN-13 with a leading zero, and it has its own page. Code 128 on the general barcode page is where a non-numeric SKU goes.

Download SVG for the printer so the bars stay black and white. A PNG that gets scaled in a layout turns the edges gray and then the scanner misses. Leave the quiet space on both ends.

Use cases

  • A small brand prints an EAN-13 assigned by their barcode provider.
  • A packaging proof uses 12 data digits and lets the check digit be filled in.
  • A catalog team verifies that a 13-digit string already carries the correct check before a print run.
  • A student sees that one wrong final digit produces no barcode at all.
  • A label template gets an SVG that can be placed without resampling.

Twelve digits, check digit added

400638133393, SVG.

An SVG of the EAN-13 whose digits are 4006381333931. The same SVG is produced if you type the 13 digits with the check already in place. A wrong check digit is rejected.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Either. Twelve digits and the check digit is computed. Thirteen digits and the last one has to be the valid check digit. Anything else, including letters, is rejected.