Skip to content

Barcode Generator

Create CODE128, EAN-13, UPC and more.

Runs in your browser · free · no sign-up

About the Barcode Generator

Create barcodes for products, inventory labels or tickets. EAN and UPC check digits are validated, and you can download a sharp SVG for printing.

Barcodes are still the backbone of retail, warehousing, libraries, events and asset tracking. Small businesses need them for stock labels, makers for product packaging and event organisers for tickets. This generator creates the common one-dimensional formats in your browser: CODE128, CODE39, EAN-13, EAN-8, UPC, ITF-14, MSI, Codabar and Pharmacode.

Choose a format, enter the value, and adjust bar width, height, colours and whether human-readable text appears below. EAN and UPC check digits are validated, and if you leave the check digit out, it is calculated for you. Download as PNG for documents or SVG for sharp printing on labels at any size.

SVG output describes the bars as shapes, so a label printer or design app can scale it to any size without blurring, which is important because scanners need crisp edges. PNG is convenient for documents, spreadsheets and quick previews.

How to use the Barcode Generator

  1. 1Choose the barcode format.
  2. 2Enter the value and adjust width, height and text.
  3. 3Download as PNG or SVG.

Key features

  • Nine barcode formats.
  • Check digit validation and calculation.
  • Bar width, height and colours.
  • Optional text below the bars.
  • PNG and SVG downloads.

Practical uses

  • Stock labels for a small shop or warehouse.
  • Product packaging with registered EAN codes.
  • Library or asset tags.
  • Event tickets and membership cards.

Example

Entering the 12 digits 590123412345 in EAN-13 adds the check digit 7, producing 5901234123457 with the digits printed under the bars.

Tips and common mistakes

  • Use dark bars on a white background for reliable scanning.
  • Do not stretch barcodes unevenly; scale them proportionally.
  • Test printed labels with the scanner you will actually use.

Limitations

  • 2D codes other than QR are not supported here; use the QR Code Generator for QR.
  • Retail EAN and UPC numbers must be registered with GS1 to be used on products.

Privacy

Barcodes are generated locally.

Frequently asked questions

Which format should I use?

CODE128 for general labels and inventory. EAN-13 or UPC-A for retail products (you need a registered GS1 number).

Why is my EAN-13 invalid?

It must have 12 or 13 digits; the 13th is a check digit. Leave it out and it is calculated for you.

SVG or PNG for printing?

SVG. It stays sharp at any size.

What is the difference between CODE128 and CODE39?

CODE128 is more compact and supports all ASCII characters; CODE39 is older and supports fewer characters but is still common in industry.

Can I make a barcode for a book?

Books use ISBN numbers, which are encoded as EAN-13 barcodes starting with 978 or 979.

Related tools

QR Code GeneratorCreate QR codes for links, text and Wi-Fi.
Password GeneratorStrong random passwords, generated on your device.
Color ConverterConvert HEX, RGB and HSL colors.
Password Strength CheckerHow long would your password take to crack?