Developer

Barcode Generator

Details

How to use Barcode Generator

What the tool does, how to run it, and what to expect from the result.

How to generate a Code 128 barcode

Code 128 is the workhorse of internal barcoding: it takes arbitrary text, is compact, is self-checking, and every handheld scanner reads it. It is what goes on shipping labels, asset tags, and warehouse bins, as opposed to the EAN and UPC codes that identify products at retail.

This generator encodes your text with Code Set B, appends the required checksum, and draws the bars as an SVG you can paste anywhere. Everything happens in the browser.

  • Type the text or number to encode, using printable ASCII characters only.
  • Pick a bar width: small, medium, or large.
  • Toggle whether the human-readable text is printed under the bars.
  • Copy the SVG and paste it into your label template or design tool.
  • Scan the printed result once with a phone before running a full batch.
Tips

Getting a better result out of Barcode Generator

Specific settings and thresholds, not general advice.

  • This encodes Code 128 in Code Set B, which covers printable ASCII 32 to 126: uppercase, lowercase, digits, and common punctuation. Anything outside that (accented letters, emoji, tabs) is rejected with an error rather than silently mangled.
  • Code Set C, which packs two digits per symbol, is not used. A 12-digit number therefore produces a barcode roughly twice as wide as a Code C encoder would give you. If label width is tight and your data is all digits, this is the wrong encoder.
  • The quiet zone is 10 modules on each side and is part of the SVG. Do not crop it, do not put a border flush against the bars, and do not place the barcode on a busy background: scanners need that blank margin to find the start pattern.
  • The checksum (modulo 103 over the start value and each symbol weighted by position) is calculated for you and appended, so what you get is a valid symbol, not a picture of one. Scan the result with your phone before you print 5000 labels.
  • Bar width is a module multiplier of 1, 2, or 3 pixels, but the output is SVG, so it stays crisp at any print size. Scale in your design tool by percentage rather than trying to pick a pixel size here.
Limits

What Barcode Generator does not do

The honest boundary, so you do not lose time finding it yourself.

  • Code 128 Code Set B only. No EAN-13, UPC-A, Code 39, ITF-14, QR, or Data Matrix.
  • No Code Set C numeric compaction, so pure-digit payloads produce a wider barcode than they need to.
  • Characters outside printable ASCII (32 to 126) cannot be encoded.
  • Output is SVG markup to copy. There is no PNG or PDF download and no batch or CSV mode.
At a glance

Who Barcode Generator is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Anyone creating barcodes for labels and inventory.

Ideal for

Using the barcode generator without installing anything or signing up.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

Can I make a retail product barcode with this?

No. Products sold at retail use EAN-13 or UPC-A, which are different symbologies with a fixed digit count and an issued GS1 company prefix. Code 128 is for internal use: asset tags, shipping labels, warehouse bins, ticket numbers. A scanner will read this barcode, but a supermarket till will not recognise it as a product.

Why is my numeric barcode so wide?

Code 128 has a Code Set C that encodes pairs of digits in a single symbol, roughly halving the width of a numeric payload. This encoder uses Code Set B only, so each digit costs a full symbol. For a 20-digit serial that is a noticeably wider label.

What is the quiet zone and why does it matter?

The quiet zone is the blank margin either side of the bars, here 10 modules wide, and it is included in the SVG. Scanners rely on it to detect where the symbol begins and ends. If you crop it off or place artwork against the bars, the barcode may fail to scan even though it looks perfect to the eye.

Does the barcode include a check digit?

Yes. Code 128 requires a modulo-103 checksum symbol before the stop pattern, computed from the start value plus each data value multiplied by its position. It is calculated and appended automatically, which is why you should not hand-edit the SVG rects.

How do I get a PNG instead of SVG?

Copy the SVG markup, paste it into a design tool such as Figma, Illustrator, or Inkscape, and export a raster from there. SVG is the better format to print from anyway, because the bars stay perfectly sharp at any label size, while a resampled PNG can blur the module edges enough to break a scan.

Can it make an EAN-13 or UPC barcode for retail?

No, and for retail you would not want a homemade one anyway: EAN and UPC numbers are issued by GS1, and a made-up number will collide with someone else’s product at the till. Code 128 is the right symbology for what this tool is for: internal SKUs, asset tags, shelf labels, tickets, and anything scanned by systems you control.

Is Code 128 the same as a QR code?

No. Code 128 is a one-dimensional barcode read by laser and camera scanners, ideal for short identifiers on labels. A QR code is two-dimensional, holds far more data, and is aimed at phone cameras. If the scanner is a phone, you probably want the QR Code Generator instead.

Is this barcode generator free for commercial use?

Yes. The barcodes are generated locally, carry no watermark, and the Code 128 symbology itself is an open standard with nothing to license.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon