Barcode Generator
Create Code 128 and EAN-13 barcodes with a live preview — encoded on your device, exported as PNG or SVG.
🔒 Encoded in your browser — nothing is uploaded or stored.
Two real standards, encoded from scratch
Code 128 packs any ASCII text and auto-switches between code set B (text) and C (pairs of digits) for compact numeric runs, with the required modulo-103 check symbol. EAN-13 takes 12 digits, computes the modulo-10 check digit (or verifies it if you supply all 13), and lays out the left/right guard and centre patterns. The encoders are written in plain JavaScript right on this page — no library, no server.