QR Code Generator
Turn any text, link or phone number into a QR code and download it as a PNG — free, instant, and generated entirely in your browser.
Your QR code
What is a QR code?
A QR ("Quick Response") code is a two-dimensional barcode that phones can read with their camera. Invented in 1994 for tracking car parts, it now appears everywhere — restaurant menus, Raast and bank payment screens, event tickets, business cards and shop windows — because it turns any piece of text into something scannable in under a second. Unlike a 1-D barcode, a QR code stores data in both directions, and built-in error correction lets it survive smudges, folds and small print defects.
How to use this generator
Type or paste what you want to encode — a website link, WhatsApp number, Wi-Fi note, or plain text — choose a size, and the code appears immediately. Press Download PNG to save it for printing or sharing. The code is generated locally by a JavaScript library running in your page; the text you encode is never sent to any server. Before printing a batch, always test-scan the downloaded image with a phone.
How QR codes work
Your text is converted to bytes, Reed–Solomon error-correction codewords are appended (this tool uses level M, tolerating about 15% damage), and the result is laid out as a grid of black and white squares with the three large corner squares that help scanners find and orient the code. Longer text means a denser grid — which is why very long URLs produce codes that are harder to scan at small sizes.
Worked example
A shop owner in Lahore wants customers to open her online price list. She pastes https://hershop.pk/prices, picks the 384 px size, downloads the PNG and adds it to a small counter stand printed at 3 × 3 cm. Because the URL is short (25 characters), the module grid stays coarse and scans instantly even in dim light. Had she encoded a 300-character URL with tracking parameters, the grid would be far denser — the fix is to use a short link instead.
When is this useful?
Linking printed things to the web: menus, flyers, business cards, product packaging, shop signage, CVs linking to portfolios, event posters linking to registration forms, or sharing a long Wi-Fi password with guests. Combine it with the invoice generator to add a payment-details QR to your invoices, or the word counter to keep encoded text short and scannable.
Frequently asked questions
Do QR codes expire?
Codes made here are static — the text is baked into the image forever and never expires. If you encode a URL, the code works as long as that URL works. (Paid 'dynamic' QR services redirect through their servers, and those can expire.)
Is the text I enter sent to your server?
No. The QR code is generated by a JavaScript library inside your browser. Your text never leaves your device — this page works even offline once loaded.
How much data fits in a QR code?
Up to about 2,900 bytes at error-correction level M, but practical scanning favours short content. Under 100 characters scans fastest; for long URLs, use a URL shortener first.
What size should I print a QR code?
Rule of thumb: minimum 2 × 2 cm for close-range scanning, and roughly 1/10 of the expected scanning distance (a code scanned from 1 m should be ~10 cm wide). Always leave a white margin around it.
Can I put a logo on the QR code?
This tool generates clean standard codes. A logo can be overlaid in an image editor — keep it under ~15% of the area (the error-correction budget) and test-scan afterwards.