Dailiyo

Online Barcode Generator

Generate Code 128 barcodes that you can print or download as SVG — for product labels, IDs and ticket stubs.

Online Barcode Generator

Online Barcode Generator — inputs

Enter your values above and press Process file to see the result.

This tool runs entirely in your browser — no data is sent to our servers. If JavaScript is disabled, the fully interactive version will not run; enable JavaScript to compute results.

About this online barcode generator

Barcodes encode short strings (typically a product code, ID number or ticket reference) as a sequence of black and white bars that can be scanned by hardware. Code 128 is the most common general-purpose barcode standard — it encodes all 128 ASCII characters and is supported by virtually every barcode scanner on the market.

The generator produces clean SVG barcodes that you can print at any size without quality loss. For label printing, copy the SVG into a label design tool (Word, Illustrator, Avery Designer) and lay it out at the size your printer and labels need.

For retail-grade EAN-13 or UPC barcodes (the 13-digit codes on supermarket products), you need a registered prefix from GS1 and validation rules this tool does not enforce. For internal product codes, inventory tracking, ticket stubs and general-purpose use, Code 128 from this tool is fine.

How to use it

  1. Type the text or number you want to encode.
  2. Pick the format (Code 128 is currently the only option).
  3. Right-click the barcode and save it as SVG or PNG.
  4. Print or embed the barcode anywhere you need it.

Tips & notes

  • For small printed barcodes, increase the bar width — too narrow and scanners struggle.
  • For retail products, register with GS1 and use proper EAN-13 — Code 128 is for internal use.
  • SVG scales perfectly at any size. Use it for print; convert to PNG only when needed.

Frequently asked questions

Will this barcode work with retail scanners?

Most scanners read Code 128 fine, including retail scanners — they just will not look up the code against any product database. For supermarket-style scanning that actually looks up the product, you need a registered EAN-13 from GS1.

How big should the barcode be printed?

Code 128 prints reliably at 2 cm wide and up. Smaller barcodes need higher print resolution to scan reliably.

What characters can I encode?

All printable ASCII characters (letters, digits, common punctuation). Non-ASCII (emoji, accented characters) is not supported by Code 128.

Online Barcode Generator in the Image & File collection

The Online Barcode Generator lives alongside Image Compressor, Image Resize, Image to PDF on the Image & File page. That landing page collects every image & file tool Dailiyo publishes, plus the editorial notes on formula sources, review cadence and how each result should (and should not) be interpreted. If a related image & file calculation isn't yet in the collection and you'd like to see it, drop a line via the contact page — the editorial team reviews every request and prioritises tools that come up most often in reader questions.

Last reviewed: by the Dailiyo editorial team, part of Xposure Soft Solution. Read our content review policy for details on how often we re-verify calculators.