UtilityBase logoUtilityBase

Generators

Barcode Generator

Code 128 barcodes as crisp SVG or PNG — generated entirely on this page.

Updated July 9, 2026

How to use the barcode generator

  1. 1Type the text or number to encode.
  2. 2Adjust bar height and toggle the readable text line.
  3. 3Download SVG for labels and design work, PNG for documents.
  4. 4Print with the white quiet zone intact.

Common uses

  • Making SKU labels for inventory and resale stock
  • Asset-tagging equipment with scannable IDs
  • Membership or loyalty cards for a small business
  • Order and bin labels for a home-based shop

Frequently asked questions

What can I encode in Code 128?

Any standard keyboard text — letters, numbers, and common symbols (ASCII 32–126), up to a practical length of a few dozen characters before the barcode gets unwieldy to scan. That flexibility is why it's the default for internal uses: SKUs like 'WH-2024-0347', order numbers, asset tags, member IDs. Accented and non-Latin characters aren't in the character set.

Will this scan at a store, or work for selling products?

Any scanner will read it — Code 128 is universally supported — but retail is about the number, not the barcode: products sold in stores carry UPC/EAN codes whose digits are assigned by GS1, the global registry, so every till on earth agrees what they identify. For your own shop, warehouse, or booth where your system does the lookup, the barcodes made here are exactly the industry-standard tool.

Why do my printed barcodes fail to scan?

Four usual suspects, in order: the quiet zone was cropped (the blank margins flanking the bars are part of the symbol — never trim them); printed too small (keep bars at least ~0.5" tall and don't shrink width below readability); low-quality printing blurring bar edges (use the SVG, or the 3× PNG at full size, on a decent printer); and scanning from a glossy or curved surface at an angle. Matte labels, black on white, generous size: near-100% reads.

SVG or PNG?

SVG for anything going through design software or label templates — it's vectors, so it stays razor sharp at any size and prints perfectly. PNG (rendered here at 3× resolution) for direct use in documents, spreadsheets, and label apps that don't take SVG. Both are generated locally; if you're barcoding URLs or things for phones to scan, that's a QR code job — we have that tool too.

About this tool

The barcode generator produces Code 128 symbols — the workhorse format for inventory labels, asset tags, membership cards, and internal tracking — encoded from scratch on this page: start code, weighted mod-103 checksum, stop pattern, quiet zones, all per spec. Download as SVG for infinite sharpness or PNG at 3× for direct printing, with optional human-readable text beneath. Honestly scoped: retail products need GS1-assigned UPC/EAN numbers; a Code 128 of your SKU will scan anywhere, but only your system knows what it means — which is exactly the point for internal use.

Like most tools on UtilityBase, the barcode generator runs entirely in your browser — nothing you enter is uploaded or stored on a server. It's free to use with no account required. Browse more generators here.

Was this tool helpful?

Related tools