YouTools
All tools

Small Business

Barcode Generator

Turn a number or code into a scannable barcode — Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, or Pharmacode — and download it as SVG or PNG.

Barcode type

General-purpose — letters, numbers, and most punctuation. The default choice for shipping labels, ID badges, and internal SKUs.

Bar color

Keep it dark on a white background — scanners rely on strong contrast, not on style.

Preview

SVG stays sharp at any print size; PNG is the safer pick for pasting into tools that don't accept vector images.

Advertisement

How this works

Each barcode format encodes characters as a fixed pattern of bars and spaces, and most retail formats (EAN-13, EAN-8, UPC-A) add a check digit calculated from the rest of the number so a scanner can catch a misread. This tool runs that same encoding in your browser as you type, checks the value against each format's rules before drawing anything, and renders the result as a real SVG element — the download is exactly what's on screen, not a re-render.

FAQ

Which format should I use?
For retail products, EAN-13 (most of the world) or UPC-A (US and Canada). For internal labels, asset tags, or anything that isn't a retail product, Code 128 is the most flexible — it handles letters and numbers with no length restrictions.
Why does EAN-13 or UPC-A reject my number?
Both formats end in a check digit that's mathematically derived from the digits before it, so not every string of the right length is valid. Enter one digit fewer than the full length (12 for EAN-13, 11 for UPC-A) and the correct check digit is calculated and appended for you.
Will this barcode actually scan?
Yes — it's built with the same JsBarcode encoding engine used across the web for production barcodes, not an approximation. Keep the bars dark on a plain light background and avoid shrinking it so small the thinnest bars blur together.
SVG or PNG — which should I download?
SVG if you're placing it in a design tool or sending it to a printer — it stays crisp at any size. PNG if you need to paste it somewhere that only accepts a raster image, like a chat app or a basic document editor.

Advertisement