MakeQR

EAN-13 Barcode Generator

EAN-13 is the barcode on retail products almost everywhere outside North America — thirteen digits, made up of a GS1 company prefix, your item reference and a final check digit. Enter the first twelve and the thirteenth is calculated for you using the standard weighted modulo-10 formula, then download a vector SVG that stays crisp at packaging print sizes. The important thing to understand before you print anything: this tool draws the barcode, but it cannot issue the number. Retail EAN numbers are allocated by GS1, and a made-up number will either be rejected by the retailer or collide with someone else's product in their system. If you already have a prefix, this is the fastest way to turn a number into artwork. Everything renders in your browser, so unreleased product codes stay on your machine.

This content is not valid for the selected format — EAN-13 needs 12–13 digits, UPC-A needs 11–12.

What the thirteen digits mean

The number splits into three parts. The GS1 company prefix identifies you and runs from seven to ten digits depending on how many products you registered for. The item reference fills the space that leaves. The last digit is a check digit, computed rather than chosen.

The first two or three digits of the prefix are commonly read as a country code, and that is a persistent misunderstanding: they identify the GS1 member organisation that issued the prefix, not where the product was made. A UK company can perfectly legitimately sell goods manufactured anywhere carrying a 50x prefix.

How the check digit is calculated

Take the first twelve digits and multiply each alternately by 1 and 3, starting with 1 at the leftmost position. Sum the results, then the check digit is whatever value brings that sum up to the next multiple of ten — equivalently, (10 − sum mod 10) mod 10.

That single digit is what lets a scanner reject a misread rather than silently return the wrong product. It is also why pasting all thirteen digits here either validates or fails: if the final digit does not match the calculation, something upstream is wrong and printing it would produce a barcode that scanners refuse.

You need a GS1 prefix before you print

GS1 is the body that allocates prefixes, through national member organisations, for a joining fee and an annual renewal. Retailers verify that a barcode resolves to the brand that claims it, and the major grocers and marketplaces check this at onboarding.

Resold or 'lifetime' barcode numbers bought from third-party sellers are a recurring trap. They are usually blocks issued before GS1 tightened its licensing, and while they scan perfectly, they are registered to another company — which surfaces as a rejected listing at exactly the wrong moment. If the product is going to a retailer, buy the prefix directly.

Print size and the quiet zone

The nominal EAN-13 symbol is about 37.29 mm wide by 25.93 mm high at 100% magnification, and the standard permits scaling between 80% and 200%. Going below 80% is the usual cause of a code that scans in the design studio and fails at a busy checkout.

The quiet zones are part of the symbol, not the margin around it: eleven modules on the left and seven on the right, which is why the '>' marker often appears at the right edge of packaging artwork. Do not let a design put text or a fold there. Keep bars dark on a light background, avoid red for the bars — many older scanners read with red light and will see nothing — and never rotate a linear barcode into a gradient.

Other barcode formats: all formats, CODE128 Barcode Generator, UPC-A Barcode Generator, CODE39 Barcode Generator. Need a QR code instead? Generate one free.

Frequently asked questions

Is this barcode generator really free, and is my data uploaded?

Yes, free with no sign-up or watermark. The barcode is drawn in your browser — whatever you type is never sent to a server, so product codes and internal part numbers stay on your device.

How many digits does EAN-13 need?

Twelve digits, and the generator appends the thirteenth check digit for you. You can also paste all thirteen — it will be accepted if the check digit is already correct, and rejected if it is not.

Can I sell products using a barcode I generated here?

The image is yours to use, but the number is not ours to give. Retail EAN numbers are assigned by GS1, and retailers reject made-up numbers. Get your GS1 prefix first, then generate the barcode here from the number they issue.

What is the difference between EAN-13 and UPC-A?

UPC-A is the 12-digit North American format; EAN-13 is the 13-digit international superset. An EAN-13 starting with a leading zero is the same product code as the equivalent UPC-A.

Advertisement