Barcode Generator: Create Code 128, EAN and UPC Barcodes

Make scannable 1D barcodes in Code 128 (automatic A/B/C subsets), EAN-13, EAN-8, UPC-A, Code 39, ITF-14, and Interleaved 2 of 5. The tool adds or checks the check digit, renders a live SVG preview, and downloads SVG or PNG files. Batch mode turns a list of values into a list of barcodes. Everything runs in your browser and nothing is uploaded. QR codes and other 2D symbols are not supported.

Data

Mode

Appearance

Blank margin left and right of the bars.

Text
Ready.

Preview

The preview shrinks to fit narrow screens. Downloads always use the exact pixel size shown in the details.

    How it works and limits

    • Code 128: the encoder uses dynamic programming to find the shortest mix of subsets A, B, and C. It uses Shift for single characters and Code C for runs of digits. Then it adds the mod-103 check symbol and the 13-module stop pattern. ASCII 0–127 and FNC1 are supported. FNC2, FNC3, FNC4, and Latin-1 extended characters are not. For GS1-128, turn on escapes and start the data with \F. Application Identifiers are not checked.
    • EAN-13, EAN-8, UPC-A, ITF-14: enter the number without its last digit and the GS1 mod-10 check digit is added. Enter the full length and the check digit is verified. A wrong check digit is reported, not silently fixed. Add-on codes (EAN-2 and EAN-5) and UPC-E are not generated.
    • Code 39: uppercase A–Z, digits, space, and - . $ / + %, with * start and stop characters added automatically. The mod-43 check is optional. Full ASCII Code 39 is not supported.
    • Interleaved 2 of 5: needs an even number of digits. No check digit is added for plain ITF.
    • Output: the SVG is built element by element. The PNG is drawn on a canvas from the same layout, so the bars line up with whole pixels when the module width and scale are whole numbers. Text uses your system monospace font, so it can look slightly different on other machines.
    • Out of scope: QR Code, Data Matrix, PDF417, Aztec, and other 2D codes. Also Codabar, Code 93, MSI, and GS1 DataBar. Always test printed labels with a real scanner, because print size, print quality, and contrast matter as much as correct encoding.