Barcode Generator
Create a barcode in seconds — type text or a number, pick CODE128 or CODE39, and the barcode appears, ready to print or download as an SVG. Shops use barcodes on products, warehouses on boxes, and offices on files and ID cards. Everything runs in your browser with a small open-source library shipped with this page: your text is never sent to a server.
How to use this converter
Type the text or number, pick CODE128 or CODE39, and press Generate. The barcode appears with its text underneath. Press “Download SVG” to save a sharp vector file you can print at any size.
Formula
A barcode is a row of black bars of different widths. The scanner reads the widths: wide and narrow bars in a set pattern spell out each character, with a start pattern, a check digit (CODE128) and a stop pattern. CODE128 stores all 128 ASCII characters; CODE39 stores A–Z, 0–9 and - . space $ / + %.
CODE128 is the standard for products and shipping: it packs letters, numbers and symbols tightly and is read by almost every scanner. CODE39 is older and simpler — capital letters, digits and a few symbols — and is still common on ID cards and inventory labels. Pick the format your scanner or system expects; if you are unsure, CODE128 is the safer choice.
Barcode formats
| From | Equals |
|---|---|
| CODE128 | Letters, numbers, symbols · products, shipping, most scanners |
| CODE39 | A–Z, 0–9, - . space $ / + % · ID cards, inventory |
| EAN-13 | 13 digits · retail products (not generated here) |
| QR code | Links, text, Wi-Fi · phone cameras (see our QR generator) |
Frequently asked questions
Which barcode format should I use?
CODE128 for most uses — it stores letters, numbers and symbols and is read by almost every scanner. Use CODE39 only if your system specifically asks for it.
Can I print the barcode?
Yes — press “Download SVG” and print the file. SVG is a vector format, so it stays sharp at any size. Print at 100% scale and do not stretch it.
Will my scanner read it?
CODE128 and CODE39 are read by nearly all barcode scanners. Print it dark on a light background, at least 2–3 cm wide, and check it with your own scanner before printing hundreds.
Is my text uploaded anywhere?
No. The barcode is drawn entirely in your browser by a small library shipped with this page — your text never leaves your device.