HHelpje

Barcode Generator

Create EAN-13, EAN-8, UPC, CODE128, CODE39 and other barcodes — download as PNG or SVG.

12 or 13 digits (check digit added automatically)— check digit will be added automatically

Dark bars on a light background scan best — coloured and inverted styles may be harder for readers to decode.

Online barcode generator — EAN, UPC, CODE128 and more

Our free barcode generator lets you create a barcode in any popular format within seconds — from EAN-13 and EAN-8 used on food products, to UPC-A used in the USA, CODE128 for logistics, and Codabar used in libraries and healthcare. Enter a value, choose a format, and customise the appearance: bar width, height, colours, margin, font size, and transparent background. Download the finished barcode as an SVG file (vector, ideal for printing) or PNG (raster, great for websites).

How does barcode validation work?

Each barcode format has its own requirements for length and allowed characters. The generator validates input in real time — for EAN-13 and EAN-8 it accepts only digits and automatically calculates the check digit (if you do not provide it), for CODE128 and CODE39 it accepts any alphanumeric text, and for ITF-14 it requires an even number of digits. If the entered data is invalid, you will see an explanatory message — the barcode will not be rendered until the data meets the format requirements.

FAQ

Is the barcode generator free?
Yes, completely free and unlimited. No login or registration required, and generated barcodes have no watermark. Codes are generated directly in your browser.
What barcode formats does the generator support?
The generator supports 10 popular formats: EAN-13 and EAN-8 (European product codes), UPC-A (American product codes), CODE128 (any text and numbers), CODE39 and CODE93 (alphanumeric text), ITF-14 (logistics and cartons), Codabar (libraries, healthcare), MSI (inventory management), and Pharmacode (pharmaceutical industry).
How do I download a barcode as PNG or SVG?
After generating the barcode, click the Download SVG or Download PNG button. SVG is a vector format suitable for printing at any size. PNG is a raster format great for websites and documents. If you enable a transparent background, both formats will preserve transparency.
Why does EAN-13 only require 12 digits?
An EAN-13 code consists of 12 data digits and 1 check digit. The generator automatically calculates and appends the check digit, so you only need to enter 12 digits. You can also provide all 13 digits — the generator will verify them and render the code.

See also