LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

zint

Multi-format barcode generator

TLDR

Generate QR code
$ zint -b 58 -d "[data]" -o [output.png]
copy
Generate Code 128 barcode
$ zint -b 20 -d "[data]" -o [output.png]
copy
Generate EAN-13 barcode
$ zint -b 13 -d "[1234567890123]"
copy
Set output format
$ zint -b 58 -d "[data]" -o [output.svg]
copy
Scale barcode size
$ zint -b 58 -d "[data]" --scale [3]
copy
Generate with human-readable text
$ zint -b 20 -d "[data]" --notext=0
copy

SYNOPSIS

zint [options]

DESCRIPTION

zint is a barcode generator supporting over 50 barcode types. It creates 1D barcodes (Code 128, EAN, UPC), 2D barcodes (QR Code, Data Matrix, PDF417), and specialized formats (postal codes, pharmaceutical).Output formats include PNG, BMP, GIF, PCX, SVG, EPS, and EMF. The tool can also output raw hex dumps for debugging or custom rendering.zint includes both a command-line interface and a GUI (zint-qt). A library (libzint) is available for integration into applications.

PARAMETERS

-b type

Barcode type (number or name)
-d data
Data to encode
-o file
Output filename
--scale factor
Scale factor for output
--height value
Barcode height (for 1D barcodes)
--fg color
Foreground color (hex)
--bg color
Background color (hex)
--notext
Disable human-readable text
-i file
Read data from file
--batch
Process batch data from file
--dump
Output hex dump instead of image
-e
Display symbol information

BARCODE TYPES

Common types: 1 (Code 11), 13 (EAN-13), 20 (Code 128), 29 (UPC-A), 55 (PDF417), 58 (QR Code), 71 (Data Matrix), 92 (Aztec Code), 142 (MaxiCode)Use zint -t to list all supported types.

INSTALL

sudo apt install zint
copy
sudo dnf install zint
copy
sudo pacman -S zint
copy
sudo apk add zint
copy
sudo zypper install zint
copy
brew install zint
copy

CAVEATS

Different barcode types have different data requirements. Some accept only numbers, others have length restrictions.QR codes and other 2D barcodes have error correction levels that trade capacity for redundancy.Not all barcode scanners support all symbologies. Verify compatibility with target readers.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid