katlab tools/barcode

Barcode | Generator

Type text or a number and get a scannable barcode instantly. Download as crisp SVG for print or high-resolution PNG.

Everything runs locally in your browser. Nothing is sent to a server.
try:

How to generate a barcode

  1. Type your text or number — the barcode renders instantly as you type.
  2. Pick a format. Code 128 is right for almost everything that isn't a retail product.
  3. Download as SVG (infinitely sharp, best for print) or PNG (rendered at 3× resolution).

Which barcode format do I need?

FormatEncodesTypical use
Code 128any ASCII textlogistics, tickets, inventory, general use
EAN-13 / EAN-812–13 / 7–8 digitsretail products worldwide (GS1-assigned)
UPC-A11–12 digitsretail products in North America
Code 39A–Z, 0–9, few symbolsolder industrial & government systems
ITF-1413–14 digitsshipping cartons & outer packaging
MSI / Codabardigits (Codabar also - $ : / . +)legacy inventory, libraries, blood banks

For a product you plan to sell in shops, the EAN/UPC number must be assigned through GS1 — generating a random number produces a scannable barcode that belongs to someone else's product.

Check digits are computed for you

EAN-13, EAN-8, UPC-A and ITF-14 end in a check digit calculated from the other digits. Enter the number without it and the tool appends the correct one automatically. If you enter the full number including a check digit, it is verified — a mismatch means the code would be rejected at the till, so nothing is drawn until it's fixed.

Printing tips for scannable barcodes

Keep the bars black on white — scanners read contrast, and inverted or tinted barcodes often fail. Leave a quiet zone (blank margin) either side of the bars; this tool includes one in the export. When resizing, scale the whole image proportionally — stretching only one axis changes bar-width ratios and can make the code unreadable. Prefer the SVG export for print at any size.

Is anything uploaded?

No. Barcodes are drawn entirely in this page by a self-hosted copy of the JsBarcode library. What you encode never leaves your machine — you can even use the tool offline once loaded.