Barcode generator — free online tool
Generate CODE128 or EAN-13 barcodes as SVG with the digits printed below. EAN-13 adds its check digit, and colors are checked for scan contrast.

Choose a destination, then fill only the fields it needs.
Keep a dark code on a light background for reliable scans.
Preview updates as you edit. Keep the quiet border for reliable scans.
What to know
Barcodes here are linear: a row of bars read along one line by a laser or camera scanner. The tool offers CODE128 for general text and EAN-13 for retail numbers, and it always prints the human-readable value under the bars with a 12 px quiet margin.
Choose CODE128 when the value is an internal serial, a shipping reference or a shelf label that may contain letters. Choose EAN-13 when the code must be exactly thirteen digits, like a product number issued under GS1. EAN-13 cannot hold letters, and many retail checkouts expect EAN rather than CODE128.
Colors default to near-black bars (#07111f) on white. The contrast against the background must reach 4.5:1 or the page reports an error, since scanners need a clear difference between bars and spaces. The export is an SVG file named chatcument-barcode.svg, which stays sharp at any print size, from a small shelf tag to a large carton label.
A barcode only stores characters. It does not register a product or reserve a number, so for a shop the prefix must come from the company prefix your own organization has been assigned.
Choose a specific task 2
Related tools 2
How to use Barcode generator — free online tool
- Choose CODE128 or EAN-13 in Code type.
- Enter the value: CHATCUMENT for CODE128, or 590123412345 for EAN-13.
- Pick the dark and light colors, keeping the bars close to black.
- Download the SVG, print it at the size your scanner needs, and test-scan the printout.
Quick answers
Which type suits inventory labels with letters?
CODE128, because it encodes the full ASCII set. EAN-13 accepts digits only.
Can I download a PNG barcode?
Barcodes export only as SVG. QR codes offer PNG, SVG and WebP. Open the SVG in a graphics editor if you need a raster copy.
Why is the error shown for my bar color?
The page checks the bar color against the background and reports an error below 4.5:1 contrast. Choose a darker bar or a lighter background.
