Generate custom barcodes for products, inventory management, and retail use with our free online Barcode Generator. This tool creates high-quality Code 128 barcodes that are compatible with virtually every laser and image scanner, ready to print on labels, packaging, and asset tags in seconds. No registration, no watermarks.
Code 128 is a one-dimensional (linear) barcode: it encodes data as a sequence of vertical bars and spaces of varying widths that a scanner reads in a single pass. Unlike a QR code, which stores data in a 2D grid, a linear barcode holds a single short string. That makes it ideal for product IDs, SKUs, and serial numbers where you want a compact, universally-scannable identifier.
Type any alphanumeric value and the generator renders it as a Code 128 barcode on the right. The bars represent your value encoded as a sequence of widths; the scanner decodes those widths back into the original text:
PROD-000123456|||| ||| | |||| || ||||| ||| | || ||A barcode is a machine-readable representation of data. The most common retail style is the one-dimensional (linear) barcode, which prints data as parallel vertical bars and spaces of different widths. A scanner shines a light or laser across the bars, measures the widths of the dark and light regions, and converts that pattern back into the original characters using a defined symbology.
This tool generates Code 128, one of the most powerful linear symbologies. Code 128 can encode all 128 ASCII characters (digits, letters, and symbols) and comes in three subsets: Code 128 A (uppercase letters and control characters), Code 128 B (upper- and lowercase letters), and Code 128 C (pairs of digits, which are the most compact). The generator auto-selects the best subset for your input and appends a check digit — a calculated character that lets a scanner detect a misread, so a damaged or smudged code is rejected rather than silently returning the wrong value.
Code 128 is the backbone of shipping labels (GS1-128), warehouse bins, and asset tags because it is compact and universally supported. It is different from retail point-of-sale codes like EAN-13 or UPC-A (which have a fixed 12–13 digit length) and from QR codes (which are two-dimensional and hold far more data). For anything longer than a short ID — a URL, contact, or Wi-Fi login — reach for a QR code instead. To turn a generated label graphic into a raster file, use SVG to PNG.