Skip to content
English

Barcode generator

Type a number or some text: the barcode is drawn right away, with the white margin that scanners need. For an EAN-13, EAN-8 or UPC-A, the check digit is calculated if it's missing and verified if you include it. Put one code per line to create several, then download them all in one archive.

Your files stay on your device: nothing is uploaded to our servers. Privacy policy · About

How to use it

  1. Choose the format: Code 128 for text or a reference, EAN-13 or UPC-A for an item sold in stores.
  2. Type the number or text (one line per code).
  3. Download the SVG for printing, or the PNG for a document or a website.

Which barcode format should you choose?

Code 128: it encodes letters, numbers and punctuation. It's the format used on shipping labels, internal part numbers, inventory and ID badges. A run of digits is packed two at a time, which makes the code shorter.

EAN-13: the code on products sold in stores in Europe and most other countries, 13 digits, the last of which is a check digit. EAN-8 is its short version for small packaging. UPC-A, 12 digits, is the North American equivalent.

The check digit of an EAN-13 barcode

The last digit of an EAN-13 is calculated from the other 12: starting from the right, the digits are multiplied alternately by 3 and by 1, the results are added up, and the check digit is whatever is needed to reach the next multiple of ten. A scanner that finds a wrong sum rejects the code.

Type 12 digits and the tool adds the 13th. Type 13 and it checks the last one: if it doesn't match, the page shows the correct digit instead of drawing a code that checkouts would reject.

Can you sell in stores with an EAN-13 created here?

The tool accurately draws the code for the number you type. But the number itself has to be assigned: to sell through retailers, businesses get their numbers from GS1, the organization that manages barcode numbers in each country (GS1 US in the United States). A made-up number may already belong to another product.

For internal use (stock, libraries, inventory, storage labels), Code 128 works perfectly well and doesn't need an assigned number.

How to print a barcode properly

Go with SVG: it's a vector drawing, sharp at any size, accepted by layout software and label printers. Keep the white margin around the bars, print black on a white background and don't shrink it too much: an EAN-13 scans well from about 30 mm (1.2 in) wide.

PNG works for a document or a web page; in that case, choose a larger bar size so it stays sharp.

Frequently asked questions

Is the code sent to a server?

No. The barcode is drawn in your browser, on your device. Nothing you type is sent over the internet.

Why is my EAN-13 rejected?

It must have 12 or 13 digits. With 13 digits, the last one must be the correct check digit: the page shows the one it expects.

How do you create several barcodes at once?

Type one code per line, up to 50. Each code gets its own SVG and PNG, and one button downloads everything as a ZIP archive.

Barcode or QR code: which should you choose?

A classic barcode holds a short number, read by checkouts and laser scanners. A QR code holds a web address or a long text and is read with a phone: for that, use our QR code generator.

More tools

QR code generator

Turn a link, text, email or phone number into a printable QR code that never expires.

Open the tool

Wi-Fi QR code

Your guests scan the code and join the Wi-Fi without typing the password.

Open the tool

Android and iOS app icon generator

One image gives you every icon your app needs, organized for Android Studio and Xcode.

Open the tool

Updated on