1D & 2D Barcode Generator
Generate 1D and 2D barcodes. Everything runs locally — nothing is sent to any server.
Any ASCII text
Looking for a scannable QR code with custom colours and logo? Try the QR Code Generator →
About
The Barcode Generator creates industry-standard 1D and 2D barcodes including Code 128, EAN-13, EAN-8, UPC-A, ISBN, ITF-14, QR Code, PDF417, Aztec, and DataMatrix. It supports customisation of size, margin, background colour, and line colour, and exports high-quality SVG or PNG files suitable for print or digital use. Need a scannable QR code with custom design and logo? Try the dedicated QR Code Generator.
How to use
- 1 Enter the data you want to encode in the input field.
- 2 Select the barcode format from the dropdown (1D formats like Code 128, or 2D formats like QR Code, PDF417).
- 3 Adjust size and colour settings if needed.
- 4 Click Download to save as SVG or PNG.
- Which barcode format should I use?
- Use Code 128 for general-purpose alphanumeric data (shipping labels, internal tracking). Use EAN-13 or UPC-A for retail products sold in stores. Use ISBN for books. Use QR Code, PDF417, or DataMatrix for higher-density 2D barcodes that need to encode more data in a compact space. QR codes are the most widely scanned 2D barcode format.
- What is the difference between a QR code and a barcode?
- Traditional barcodes (Code 128, EAN-13, UPC) are 1D — they encode data in a single row of lines. QR codes and other 2D barcodes (PDF417, DataMatrix) encode data in both dimensions, storing far more information in less space and remaining readable even when partially damaged. Both are generated by this tool.
- Can I download the barcode for printing?
- Yes. Barcodes can be downloaded as SVG (vector, infinitely scalable — ideal for print and labels) or PNG (raster, suitable for web and documents). For professional print use, always prefer SVG to avoid pixelation at large sizes.
- What data can I encode in a barcode?
- It depends on the format. Code 128 supports all 128 ASCII characters. EAN-13 and UPC-A encode numbers only (13 and 12 digits respectively). ISBN encodes 10 or 13-digit book identifiers. QR codes, PDF417, and DataMatrix support alphanumeric data, binary data, and extended character sets at higher density.