Barcode Generator
Free barcode generator. Enter any text or numbers to create a scannable Code 128 barcode instantly, then download it as a crisp SVG. No signup needed.
About this tool
A barcode generator turns any text or numbers into a scannable barcode image. Shops, warehouses, libraries and small businesses use barcodes to track products, label shelves and speed up checkouts. Instead of buying special software, you can create one right here in seconds.
Our free tool uses the Code 128 standard, the most widely supported barcode format in the world. It works with almost every handheld scanner and phone scanning app. Everything runs entirely in your browser, so the text you enter never leaves your device.
How to use
Type the text or numbers you want encoded into the input box. Short codes work best, but Code 128 can handle letters, numbers and common symbols. Click the Generate Barcode button and your barcode appears instantly below.
The barcode is drawn as a crisp SVG image, which means it stays sharp at any size. Click Download SVG to save it, then print it or drop it into your labels, packaging or documents. Test-scan it with your phone camera before printing a large batch.
The math behind it
Code 128 encodes each character as a pattern of dark bars and light spaces of varying widths. A start symbol tells the scanner which character set is used, then every character becomes an 11-module pattern, and a check digit at the end lets the scanner verify it read the code correctly.
Because the mapping from characters to bar patterns is fixed by the standard, any compliant scanner in the world can read a Code 128 barcode. That is why one simple web tool can produce barcodes that work everywhere.