Copied to clipboard
Try It Features Usage GitHub
Open Source CLI Tool

Generate QR codes in your terminal

A fast, lightweight command-line tool that renders beautiful QR codes as ASCII art. Export to PNG or display instantly.

$ npm install -g github:asharahmed/qr-cli
Try It Live
  1. Install globally with npm install -g github:asharahmed/qr-cli
  2. Run qr "https://example.com" in your terminal
zsh
$ qr "https://github.com/asharahmed/qr-cli"

              
$

See it in action

Enter your text or URL

Ready - 0 chars - Error correction M
10 px
$ qr "https://qr-cli.dev"
Output

            
            

The developer's choice

Feature
QR-CLI
Web Tools
Works offline
No browser needed
Scriptable / automatable
Pipe from stdin
No ads or tracking
Open source

Everything you need, nothing you don't

Terminal Native

Renders QR codes as crisp ASCII art using Unicode block characters. Works in any terminal, anywhere.

PNG Export

Save high-quality QR codes as PNG files with a single flag. Perfect for sharing or printing.

Theme Support

Works on dark and light terminals. Use the invert flag to match your terminal's color scheme.

Stdin Piping

Pipe text directly from other commands. Integrates seamlessly into your shell workflows.

Blazing Fast

Lightweight with minimal dependencies. Generates QR codes instantly, even for long URLs.

Display Modes

Choose between compact and large display modes to fit your terminal size and preferences.

Simple commands, powerful output

QR-CLI is designed to be intuitive. Pass any text or URL as an argument, and get a scannable QR code instantly.

<1s Generation time
2 Dependencies
MIT License
Basic Usage
$ qr "https://example.com"
Light Terminal Mode
$ qr "Hello World" -i # invert colors
Large Display
$ qr "Hello World" -l # larger output
Save as PNG
$ qr "https://example.com" -o qrcode.png
Piped Input
$ echo "secret message" | qr

Ready to get started?

Install QR-CLI globally and start creating QR codes in seconds. Free and open source, forever.

$ npm install -g github:asharahmed/qr-cli
Install, then run qr "https://example.com" to generate your first code.