Barcode generator
Generate retail and product barcodes — Code 128, EAN-13/8, UPC-A, Code 39, ITF-14, MSI, Pharmacode and Codabar — then export PNG or SVG. Fully offline.
Open Barcode generator →What is the barcode generator?
A barcode generator for retail and product codes — Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, MSI, Pharmacode and Codabar — with a live preview as you type, then export as PNG or SVG. It runs entirely in your browser and works fully offline.
How to use Barcode generator
- Pick a barcode type — Choose the format from the Type menu. Each format shows a hint about what data it accepts, such as digit counts or allowed characters.
- Enter your data — Type the value into the Data field. The preview updates live, and an error message explains the rules if the value isn't valid for that format.
- Adjust the appearance — Set the bar width, height and margin, toggle the human-readable text under the bars, choose the text size, and pick the bar and background colours.
- Export the barcode — Use the header download actions to save the result as a PNG image or a crisp SVG vector. PNG exports at a higher resolution for clean printing.
Frequently asked questions
Which barcode types are supported?
Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, MSI, Pharmacode and Codabar. Each has its own rules — for example EAN-13 takes 12 or 13 digits and Pharmacode takes a whole number from 3 to 131070.
Why does my barcode show an error?
The data doesn't fit the chosen format's rules. The error message names the format and repeats its requirements, such as the allowed characters or the expected number of digits.
PNG or SVG — which should I export?
PNG is a fixed-resolution image that's great for screens and documents and exports at a higher scale for sharp printing. SVG is a vector that stays crisp at any size, ideal for packaging and large print runs.
Is the barcode data sent anywhere?
No. Barcodes are generated locally in your browser, so the data you encode never leaves your device and the tool keeps working offline.
Are my settings remembered?
Yes. Your last format, data and appearance options are saved in your browser, so the tool reopens with the same configuration. Use Reset to return to the defaults.
Tips
- Read the hint under the Type menu before typing — it lists exactly what each format accepts.
- Keep the bars black on a white background for the most reliable scans.
- Export the SVG for packaging or labels so the bars stay sharp at any print size.
- Increase the bar width and height if a scanner struggles with a small code.
- Test the printed barcode with a real scanner before committing to a large batch.