142+ Free Online Tools · Easy. Fast. Accurate.

Barcode Generator

Generate EAN-13, Code 128, UPC-A, Data Matrix, or Aztec barcodes from any text or number in seconds. Adjust the size, colors, and label text, then download the result as a PNG image.

How to use the Barcode Generator

  1. Enter the text or number to encode. EAN-13 and UPC-A need digits only.
  2. Choose the barcode type: EAN-13 or UPC-A for retail products, Code 128 for shipping and inventory, or Data Matrix and Aztec for compact 2D codes.
  3. Adjust the width, height, quiet-zone margin and colors, and choose whether to show the human-readable text.
  4. Click Run to generate the barcode, then download the PNG.

How the Barcode Generator works

Each symbology has its own rules for turning characters into bars or modules. EAN-13 and UPC-A are fixed-length numeric codes with a final check digit: enter 12 digits (or 11 for UPC-A) and the generator calculates the check digit for you, or enter the full code and it is verified. Code 128 can encode any ASCII text and automatically switches between its character sets to keep the barcode short.

Data Matrix and Aztec are two-dimensional codes that store data in a grid with built-in error correction, so they hold far more in a small space and remain readable when slightly damaged. A clear quiet zone around the code and strong contrast between foreground and background are essential for reliable scanning, so keep dark bars on a light background.

Frequently asked questions

Is this barcode generator free?
Yes. Generate unlimited barcodes at no cost, with no account required.
Which barcode types are supported?
EAN-13, Code 128, UPC-A, Data Matrix, and Aztec.
What can I encode in EAN-13 or UPC-A?
EAN-13 accepts 12 digits (the checksum digit is calculated for you) or 13 digits (the checksum is verified). UPC-A accepts 11 or 12 digits the same way. Both are numeric-only retail barcode formats.
What can I encode in Code 128, Data Matrix, or Aztec?
Any text, letters, numbers, and most symbols. Data Matrix and Aztec are compact 2D formats that can hold more data in a smaller space, commonly used for shipping labels and tickets.
Can I hide the human-readable text under the barcode?
Yes. Enable "Hide human-readable text" to render just the bars or modules without the digits or text printed alongside them.

More Developer Tools

Browse all Developer Tools →