Tools ·
qrcodegen
A command-line tool and Python library that generates styled QR codes as SVG or raster images, optionally with a logo in the center.
- Stack
- Python, CLI, uv
What it is
A small QR code generator for the command line:
uv run qrcodegen "https://example.com" -l logo.svg -s rounded -o qr.svg
The file extension picks the output format: .svg writes SVG, anything else (.png, .jpg, …) writes a raster image.
Features
- Module shapes:
square,gapped,circle,rounded,vbarsandhbars. The three corner finder patterns always stay plain squares so the code still scans. - Custom foreground and background colors, module size and quiet zone.
- A centered logo (SVG or raster) on a rounded plate. The logo size is capped so the code still scans, and error correction defaults to
Hwhen a logo is used. - A Python API (
generate,generate_svg) that takes the same options as the CLI.