Barcode Generator

Generate barcodes in 8 formats — download as SVG or PNG, all in your browser.

Barcode settings

Samples:

Preview

Download

Examples

EAN-13 product barcode

Enter 12 digits (check digit auto-computed) or all 13 digits, select EAN13, and download the SVG to include on a product label. EAN-13 is the standard format used on most retail products worldwide.

CODE128 internal label

CODE128 encodes any printable ASCII character, making it ideal for internal part numbers, shipping labels, or any alphanumeric identifier. Enter your value, adjust height to 60px for a compact label, and export as PNG.

Details

This tool generates standard 1-D barcodes entirely in your browser — no data is sent to a server. Choose from eight widely-used formats, enter a value, tweak line width and height, and toggle the human-readable text below the bars. When the value is invalid for the chosen format (wrong character set or digit count) the error is shown instantly. Download the result as a lossless SVG or a rasterised PNG for print or web use.

About this tool

The Barcode Generator creates standard 1-D barcodes for products, logistics, pharmaceuticals, and internal labels — all inside your browser with no data ever leaving your device. Enter a value, pick from eight widely-used formats, and the barcode renders immediately.

Each format enforces its own character set and length rules. The tool validates your input before rendering and surfaces a clear error when the value is incompatible — for example EAN-13 requires 12–13 digits, while CODE39 permits only uppercase letters, digits, and a few symbols.

When the barcode looks right, export it as a lossless SVG for scalable print use or as a 2× PNG for web and documents. Controls for line width, bar height, and human-readable text let you match any label specification.

How to use

  1. Generate a CODE128 barcode

    Select CODE128, type any text value, and adjust the line width and height sliders. The barcode updates live; click Download SVG or PNG to save.

  2. Create an EAN-13 product barcode

    Select EAN-13 and enter 12 digits (the check digit is computed automatically) or all 13. An invalid value shows an error; once valid, download for print.

  3. Export a high-resolution PNG

    Click Download PNG to render the barcode into a canvas at 2× resolution with a white background — ready for labels or documents.

Barcode format reference

FormatTypical use
CODE128Shipping labels, part numbers, any ASCII text
CODE39Automotive/military labels, uppercase alphanumeric IDs
EAN-13Retail product packaging worldwide (13 digits)
EAN-8Small product packaging (8 digits)
UPC-ANorth-American retail products (12 digits)
ITF-14Outer carton / wholesale packaging (14 digits)
PharmacodePharmaceutical packaging (number 3–131070)

Frequently asked questions