qrtool
Command-line utility for encoding and decoding QR codes
TLDR
Encode text to a QR code PNG
$ qrtool encode "[text]" -o [output.png]
Encode text as terminal ASCII art$ qrtool encode "[text]" -t ansi
Decode a QR code from an image$ qrtool decode [image.png]
Encode as SVG with custom colors$ qrtool encode "[text]" -t svg --foreground "#000000" --background "#ffffff" -o [output.svg]
Generate a Micro QR code$ qrtool encode "[text]" --variant micro -o [output.png]
Read from stdin and output QR code$ echo "[text]" | qrtool encode -o [output.png]
SYNOPSIS
qrtool command [options]
DESCRIPTION
qrtool is a command-line utility for encoding text into QR codes and decoding QR codes from images. It supports multiple output formats including PNG, SVG, EPS, ANSI terminal art, and Unicode, plus QR code variants including standard, Micro QR, and rMQR. It reads from stdin and writes to stdout for Unix pipeline integration.
PARAMETERS
encode TEXT
Encode text into a QR code.decode FILE
Decode a QR code from an image file.-t, --type FORMAT
Output format: png, svg, eps, pic, ansi, ascii, unicode.-o, --output FILE
Output file path.--variant TYPE
QR code type: normal, micro, rmqr.--foreground COLOR
Foreground color in CSS format.--background COLOR
Background color in CSS format.-v, --symbol-version VERSION
QR code symbol version (size). Auto-selected if omitted.--margin WIDTH
Width of margin around the QR code (default: 4 for normal, 2 for others).
HISTORY
qrtool was created by sorairolake and is written in Rust.
