Barcode Generator
Local — Runs in your browser; files and input stay on this deviceFree — Free to useGenerate crisp Code 128 barcodes from any text or numbers, then download them as SVG or PNG. Fast, free, and fully offline.
Runs in your browser; files and input stay on this device
About Code 128 barcodes
Code 128 is a high-density barcode that encodes all standard ASCII characters — letters, digits, and symbols — making it ideal for inventory, shipping, and asset labels. This generator builds the barcode in your browser as vector SVG (also exportable to PNG), so it stays sharp at any size and nothing is uploaded.
How to use Barcode Generator (Code 128)
- 1Enter printable ASCII text for a Code 128-B barcode.
- 2Set foreground and background colors, module scale, bar height, and whether to show the value below the bars.
- 3Download the barcode as SVG for scalable output or PNG for a raster image.
Frequently asked questions
- Which barcode standard does this tool use?
- It generates Code 128 subset B, including its calculated checksum and quiet zones. It does not generate UPC, EAN, ISBN, or Code 39.
- Which characters are supported?
- Code 128-B input is limited to printable ASCII characters with codes 32 through 126. Arabic and other non-ASCII characters do not produce a barcode.
- What do scale and height change?
- Scale changes the width of every barcode module and therefore the total image width. Height changes only the bar area. Neither changes the encoded value.
- Why are quiet zones important?
- Blank space before and after the bars helps scanners locate the code boundary. Avoid cropping it from the downloaded image.