Code 128: compact and flexible
Code 128 encodes all ASCII characters — upper- and lowercase letters, digits and symbols — and includes a check character. Runs of digits are packed in pairs, so number-heavy values stay short. It is the default for shipping and logistics (GS1-128 is a standardised use of it).
Code 39: simple and widely supported
Code 39 covers capital letters A–Z, digits 0–9, the space and - . $ / + %. It is wider than Code 128 for the same value, but very tolerant, and many older systems and industry labels still expect it. An optional mod-43 check character adds protection.
Which one to choose
- New labels, your own system: Code 128 — shorter labels and any characters.
- A system or customer that already uses Code 39: stay with Code 39 so existing scanners and software keep working.
- Products sold in shops: neither — use EAN-13 or UPC-A with GS1 numbers.
Size and margins
Keep the narrowest bar at about 0.25 mm or wider for everyday scanners, leave a clear margin of 10 times that width on both sides, and keep the bars at least 6 mm tall — taller is easier to scan by hand. Our generator sets the margins for you and exports SVG at the exact millimetre size.
Questions people ask
Does Code 39 support lowercase letters?
Not in its standard form. Use capital letters, or switch to Code 128.
Why is my Code 128 barcode shorter for numbers?
Code 128 stores pairs of digits in a single symbol character, so long numbers take about half the space.
Do I need a check digit?
Code 128 always includes one. For Code 39 it's optional — turn it on if your scanning software expects it.
Put it into practice
Free, no account needed for static codes.