UtilityBase logoUtilityBase

2 min read

How to Generate a Barcode Online

Create Code 128 barcodes as sharp SVG or PNG files right in your browser. Nothing is uploaded, so your product codes and labels stay completely private.

What a Barcode Actually Encodes

A linear barcode is just a visual encoding of a short string of characters. The pattern of thick and thin bars represents letters, digits, or symbols that a scanner reads back as plain text. The barcode itself holds no database and no price; it is only a pointer that your inventory or point-of-sale system looks up.

The Code 128 symbology used by this generator is a high-density format that can encode all 128 ASCII characters, including uppercase and lowercase letters, digits, and common punctuation. That flexibility makes it a popular choice for shipping labels, asset tags, and internal product codes where you control the numbering scheme yourself.

Generating Your Barcode Step by Step

The tool runs entirely in your browser. You type the value you want to encode, preview the result instantly, and download it in the format your workflow needs.

  1. 1Open the Barcode Generator and click into the input field.
  2. 2Type or paste the exact text you want encoded, such as a SKU, order number, or asset ID.
  3. 3Check the live preview to confirm the value reads correctly and contains no stray spaces.
  4. 4Choose SVG if you plan to print at any size, or PNG if you need a raster image for a document or listing.
  5. 5Click download and save the file to your device.
  6. 6Scan the printed or on-screen barcode with a phone app to verify it decodes back to your original text.

SVG or PNG: Which to Download

SVG is a vector format, meaning the barcode is drawn from math rather than fixed pixels. It stays perfectly crisp whether you print it on a small label or blow it up across a poster, which is why it is the safest choice for anything that goes to a printer.

PNG is a raster format made of pixels at a fixed resolution. It is handy when you need to drop the barcode into a document, a spreadsheet, or an online listing that does not accept vector files. If you pick PNG, generate it larger than you think you need so the bars stay sharp when scaled down.

Printing Barcodes That Scan Reliably

Scanning reliability depends less on the software and more on how you print. Keep a clear margin of white space, called the quiet zone, on both ends of the barcode so the scanner can find where the pattern begins and ends. Never stretch a barcode disproportionately, since distorting the bar widths can make it unreadable.

Print in solid black on a plain white background at the highest quality your printer allows. Avoid glossy or reflective label stock under bright light, and test one label with your actual scanner before running a full batch.

Privacy and Where Your Data Goes

Because the Barcode Generator builds the image locally in your browser, the text you encode is never sent to a server. This matters when your codes reveal internal information such as customer identifiers, warehouse locations, or unreleased product names. You can generate as many barcodes as you like without creating an account or leaving a trace on a remote service.

Frequently asked questions

What barcode format does this tool use?

It generates Code 128 barcodes, a widely supported linear symbology that encodes letters, numbers, and standard punctuation. Code 128 is common for shipping labels, asset tags, and internal product codes, and most modern scanners read it without any special configuration.

Can I use these barcodes on products sold in stores?

Code 128 is ideal for your own internal tracking. Retail products sold through major stores usually require a UPC or EAN number registered with GS1, which is a separate paid process. If you already have a valid retail number, you can still encode it, but confirm your retailer accepts the symbology first.

Is my barcode data uploaded anywhere?

No. The barcode is created entirely inside your browser, so the text you type never leaves your device. That keeps sensitive values like internal SKUs or customer identifiers private, and it means you can work offline once the page has loaded.

Tools mentioned in this guide

Keep reading