/qr Terminal QR Code Generator

Encode a URL, a Wi-Fi string, or any text into a QR code rendered as terminal blocks you can scan straight from your shell. Use HTTPS when the payload is sensitive.

GET · POST plain HTTP ok no signupnothing stored
curl curlhub.sh/qr?data=https://curlhub.sh

Usage

With curl

curl curlhub.sh/qr?data=https://curlhub.sh
printf 'WIFI:S:cafe;T:WPA;P:hunter2;;' | curl --data-binary @- curlhub.sh/qr

With the CLI

curlhub qr?data=https://curlhub.sh

Output

Parameters

InputWhat it does
?data=The text or URL to encode. URL-encode special characters.
--data-binary @-Read the payload from stdin instead of the query string.

Recipes

Share a link to a phone

curl curlhub.sh/qr?data=https://curlhub.sh/p/AbC123

Point a camera at your terminal — handy for moving a paste or file link to a device.

A Wi-Fi join code

printf 'WIFI:S:Guest;T:WPA;P:letmein;;' | curlhub qr