Code 128 barcode generator

Create Code 128 barcodes for shipping labels, Amazon FNSKU, asset tags and inventory — letters, numbers and symbols.

  • Free · no watermark
  • Runs in your browser
1 · Formattype: 'code128'
Retail
Logistics
Industrial
Any printable ASCII, up to 48 characters
Ready — 13 characters encoded
3 · Bars
60 px
Module width
10 px · 5.0 X
4 · Text
14 px
5 · Color
Bars
Background
6 · Rotation
Live previewCode 128
100%
BFX-2026-0042
Modules
167
X-dimension
0.282 mm
Size
50.0 × 15.0 mm
Status
Valid
Export

Vector · best for print · 50.0 mm wide

Specs
Check digit
Mod 103, built in
Quiet zone
5.0 X
Bar height
8.5 mm
Human text
Below
etiket · label.ts
import { barcode } from 'etiket'

const svg = barcode('BFX-2026-0042', {
  type: 'code128',
  height: 60,
  barWidth: 2,
  showText: true,
  textPosition: 'bottom',
  fontSize: 14,
  margin: 10,
  background: '#FFFFFF',
})

About Code 128

What is a Code 128 barcode?

Code 128 is a high-density barcode that encodes all 128 ASCII characters: letters, digits and symbols. It is the default choice for shipping labels, Amazon FNSKU labels, asset tags and any internal code that mixes letters and numbers.

Data
Variable length, up to 48 characters here
Characters
Any printable ASCII character — A–Z, a–z, 0–9 and symbols.
Check digit
Mod 103, built in
Print size
Variable; keep the X-dimension at 0.25 mm or more and a quiet zone of 10X on each side
Used for
Shipping, FNSKU, asset tags, SKUs

How to create a Code 128 barcode

  1. 1
    Enter your data
    Type or paste the text to encode — any printable ASCII, up to 48 characters.
  2. 2
    Adjust bars and text
    Set bar height, module width and quiet zone, and choose whether to print the human-readable text.
  3. 3
    Set the print size
    Enter the final width in mm, cm, inches or pixels. The X-dimension and height update as you type.
  4. 4
    Download and test
    Export SVG for print or PNG at 300–600 dpi, then run a test scan before you print a full batch.
Other barcode generators

FAQ

Code 128 questions

More answers in the general FAQ and the barcode size guide.

How do I create a Code 128 barcode?

Choose Code 128 in the format list, enter your data (any printable ASCII, up to 48 characters), set the print width, then download SVG or PNG.

What data can a Code 128 barcode hold?

Variable length, up to 48 characters here. Any printable ASCII character — A–Z, a–z, 0–9 and symbols.

What size should a Code 128 barcode be?

Variable; keep the X-dimension at 0.25 mm or more and a quiet zone of 10X on each side. Keep the quiet zone clear and print dark bars on a light background.

Is this Code 128 generator free for commercial use?

Yes. There is no watermark, sign-up or usage limit, and barcodes are generated in your browser — your data is never uploaded.