QR code generator
Make a QR code for a link, Wi-Fi network, email or any text. Download it as a PNG. No sign-up and no tracking redirects.
This tool runs in your browser. We never send what you type or paste to a server.
Static QR codes, no middleman
Many "free" QR generators encode their own short link that redirects to yours, so they can track scans or switch the code off later. stackbite codes contain your actual content, so they work forever and nobody can see when they're scanned.
Tips for codes that scan reliably
- Keep strong contrast: dark code on a light background. Inverted codes fail on some phones.
- Leave the white border (quiet zone) around the code.
- Shorter content makes a simpler, easier-to-scan code. Shorten long URLs first.
- Print at least 2 × 2 cm (about 0.8 inches), larger for posters scanned from a distance.
- Choose a higher error correction level if the code might get scratched or partly covered.
Wi-Fi QR codes
Choose Wi-Fi and enter the network name and password. Guests point their camera at the code to join without typing. The password is stored inside the code itself, so only share it where you'd share the password.
Before you print
- Test the code with two different phones before you print it.
- Use High error correction if a logo will cover part of the code, or if it will be printed small or outdoors.
How a QR code stores data
A QR code is a grid of square modules. Its size, called the version, runs from 1 (21 × 21 modules) to 40 (177 × 177), growing by four modules per side each step. The generator picks the smallest version that holds your content at the chosen error correction level, so longer text gives a denser code that needs to be printed larger.
Error correction adds Reed-Solomon recovery data, so a damaged code can still be read. The four levels restore roughly 7% (L), 15% (M, the default here), 25% (Q) and 30% (H) of the code. Higher levels cost space: the largest code holds 2,953 bytes at L but only 1,273 at H. If the generator says the content is too long, lowering the level is one way to make it fit.
The standard has compact modes for digits only and for upper-case letters, but this generator always uses byte mode with UTF-8, which handles any text, accents and emoji included. Capacity is counted in bytes, so non-ASCII characters take two to four bytes each. The PNG has whole-pixel modules and a quiet zone four modules wide, as the standard requires.
What goes inside: payload formats
Phones decide what to do from the text in the code. The Wi-Fi, email and phone options build these strings for you; you can type others into the Text option:
- Link: the URL itself, such as
https://example.com/menu. The generator addshttps://if you leave it out. - Wi-Fi:
WIFI:T:WPA;S:network;P:password;;, withH:true;for a hidden network. - Email:
mailto:address?subject=...&body=..., with the subject and body percent-encoded. - Phone:
tel:+442079460000. Spaces and brackets are stripped; use the international form with + so it works from abroad. - Text message:
sms:+442079460000?body=...(type it into the Text option; support for the body part varies between phones).
In the Wi-Fi format the characters \ ; , : " have special meanings, so the generator escapes them with a backslash. If you build Wi-Fi codes in a script, do the same, or a password containing a semicolon will be cut short:
def wifi(ssid, password, security='WPA', hidden=False):
esc = lambda s: re.sub(r'([\\;,:"])', r'\\\1', s)
return f'WIFI:T:{security};S:{esc(ssid)};P:{esc(password)};{"H:true;" if hidden else ""};'
print(wifi('Cafe Guest', 'tea;and:cake')) # → WIFI:T:WPA;S:Cafe Guest;P:tea\;and\:cake;;
const esc = (s) => s.replace(/([\\;,:"])/g, '\\$1');
const wifi = (ssid, pass) => `WIFI:T:WPA;S:${esc(ssid)};P:${esc(pass)};;`;
console.log(wifi('Flat 3', 'a"b\\c')); // → WIFI:T:WPA;S:Flat 3;P:a\"b\\c;;
console.log(new TextEncoder().encode('café').length); // → 5 bytes, not characters, fill a QR code
console.log(`sms:+442079460000?body=${encodeURIComponent('Table 4')}`); // → sms:+442079460000?body=Table%204
print('mailto:help@example.com?subject=' + quote('Order #42 & refund', safe='')) # → mailto:help@example.com?subject=Order%20%2342%20%26%20refund
print('tel:' + re.sub(r'[^\d+]', '', '+44 20 7946 0000')) # → tel:+442079460000
On Linux and macOS, the qrencode package makes the same codes from the command line: qrencode -o code.png -l M 'https://example.com/' (not run on this page).
Questions
Do these QR codes expire?
No. The content is stored in the code itself, with no redirect service in between, so it works forever.
Can I track scans?
Not with a static code. To count scans, point the code at a URL with tracking parameters, such as ?utm_source=poster.
How much data can a QR code hold?
Up to 2,953 bytes with Low error correction, the largest version, and byte mode, which is what this generator uses. At the default Medium level the limit is 2,331 bytes. In practice, keep content much shorter: a short URL produces a small, sparse code that scans quickly from further away.
Can I put a logo in the middle of a QR code?
Yes, as long as the logo covers less than the error correction can repair. Choose High, keep the logo small and away from the three large corner squares, and test the result with several phones before printing.
Which size should I download?
For screens and documents 512 px is plenty. Choose 1024 px for print, so the modules stay sharp when scaled. Print size matters more than pixels: the further away people scan from, the larger the code needs to be.