Settings

What to encode

How big

The module is the width of the narrowest bar and it is the size that matters. The quiet zone is part of the symbol rather than a margin: without clear space either side, many scanners never find the start.

The barcode

How it works

Barcodes made on the web usually fail after the labels are printed: a check digit that does not agree, or bars too narrow to scan at the printed size. BARCODE makes barcodes, including Code 128, with the check digit worked out, sized to the width they will actually be printed, and exports SVG for sharp printing. It tells you when it has corrected a check digit. Your data stays in this tab.

Questions people ask about BARCODE

Why does it change my check digit?

It does not; it tells you. EAN, UPC and similar symbologies end in a digit computed from the ones before it, and a scanner refuses a symbol where it does not agree. If the digit you typed is wrong, the barcode drawn carries the correct one and the page says so, because the alternative is a label that looks perfect and scans nowhere.

What is the module width?

The width of the narrowest bar, and the dimension that decides whether the symbol reads. Below roughly a quarter of a millimetre, ordinary handheld scanners start refusing and a laser printer stops holding the edge cleanly. This is why a barcode scaled to fit a box on a label often stops working: the scaling changed the module.

Why should I use the SVG rather than the PNG?

Because it is resolution-independent, so it prints at whatever your printer can do rather than at whatever the bitmap was made at. The PNG here is rendered at 600 dots per inch for the places that insist on one, but a barcode from a screen-resolution bitmap loses the edge of every bar.

Why is Code 128 sometimes much narrower?

Because it has a character set that encodes two digits in one symbol. A run of digits long enough to be worth the switch is packed that way automatically, so a sixteen-digit number is close to half the width it would otherwise be. The page says which sets it used.

Does my data go anywhere?

No. Asset numbers, batch numbers and patient identifiers all end up in barcodes, and there is no network call on this page.

Doing this often? OBSCURA Vector places the barcode in a finished label or packaging design and exports SVG or PDF for print. Everything is US$5 a month or US$48 a year.