QR Code Generator
Make QR codes for links, text, WiFi logins, email, phone numbers and SMS, choose the error-correction level, and download SVG or PNG. Shows the version, how full the code is and the mask it uses.
How to Use
- Choose what the code holds: Text / URL, WiFi, Email, Phone or SMS.
- Fill in the fields. The code redraws as you type, and the payload line shows exactly what will be encoded.
- Pick the error-correction level: L (about 7% of the code can be damaged), M (15%), Q (25%) or H (30%), and the image size.
- Read the readouts and Show Work: the version, how full the code is and which of the 8 mask patterns was chosen.
- Download as SVG for print or PNG for screens, and test-scan it with a phone before printing.
Worked Example
Encode https://example.com at level M. The URL is 19 bytes of UTF-8. In byte mode the data is a 4-bit mode indicator, an 8-bit character count and 8 bits per byte: 4 + 8 + 19 × 8 = 164 bits.
Version 1 at level M has 16 data codewords, 128 bits: too small. Version 2 at M has 28 data codewords, 224 bits, so the code is version 2, 4 × 2 + 17 = 25 × 25 modules, and 164 ÷ 224 = 73.2% full. Version 2 has 44 codewords in all, so 44 − 28 = 16 are error correction. Of the 8 mask patterns, this generator picks pattern 5 for this text, the one with the lowest penalty score.
Raising the level. The same URL at level H no longer fits version 2 (16 data codewords, 128 bits); version 3 at H holds 26 data codewords, 208 bits, so the code grows to 29 × 29 modules and is 78.8% full. HELLO WORLD is 11 bytes, 4 + 8 + 88 = 100 bits, which just fits version 1 at level Q (13 codewords, 104 bits): 96.2% full.
The common mistake: cropping the quiet zone. A QR code needs a blank border 4 modules wide on every side, so a version 2 code is really 25 + 8 = 33 modules across. At an image size of 256 px each module is ⌊256 ÷ 33⌋ = 7 px, the image is 231 px, and 4 × 7 = 28 px on each side is white. Trimming that white edge to save space, or placing the code against a dark photo, is the most common reason a printed code will not scan.
Show Work
Formulas and Payload Formats
Where the QR Code Came From
The QR (“Quick Response”) code was invented in 1994 by Masahiro Hara at Denso Wave, a Toyota group company, to track car parts on the production line. Barcodes held a few dozen characters and had to be scanned straight on; Hara wanted more data and a code that could be read from any angle, which is what the three square finder patterns in the corners are for. Denso Wave chose not to enforce its patent, and the code became ISO/IEC 18004 in 2000.
Error correction uses Reed–Solomon codes, the same family used on CDs, which is why a code with a scratch or a logo over it can still be read. Western use stayed small while scanning needed a separate app; it changed when iPhones gained QR scanning in the camera with iOS 11 in 2017, and again when restaurant menus and health certificates moved to QR codes in 2020.
About This Tool
Reference: Call Forwarding & Star Codes.
Reference: Email-to-Text Gateways.
This generator builds standard QR codes (ISO/IEC 18004) for text and links, WiFi logins, email, phone calls and text messages, with the four error-correction levels. Text is encoded as UTF-8, so accented letters and emoji scan correctly, and WiFi names and passwords are escaped for you. It always picks the smallest version that fits, and the readouts show that version, how full it is and the mask pattern chosen.
SVG downloads are vector and print sharp at any size; PNG downloads are the image you see. Everything, including any WiFi password, stays in your browser. Links can be shared with ?text=, ?type= and ?ec= in the URL.
Related tools: URL Encoder / Decoder, Favicon Generator, and Base64 Encoder / Decoder.
Frequently Asked Questions
Which error-correction level should I use?
M (15%) suits most codes. L (7%) gives the smallest code for screens where nothing will cover it. Use Q (25%) or H (30%) for stickers and packaging that may get scuffed, or when a logo will cover the middle: with H a logo up to about a quarter of the width can usually be read through. Higher levels need a bigger code: https://example.com is 25 × 25 modules at M but 29 × 29 at H.
How much data fits in a QR code?
The largest code, version 40 (177 × 177 modules) at level L, holds 2,953 bytes, which is what this generator uses for text. Codes with only digits or capital letters can use denser modes and hold up to 7,089 digits. In practice anything over about 300 characters becomes hard for a phone to scan, so long content is better behind a short URL.
How does the WiFi QR code work?
It encodes WIFI:S:network;T:WPA;P:password;; where T is WPA, WEP or nopass and H:true marks a hidden network. A backslash goes before any ; , : " or \ inside the name or password, which this tool adds for you. Current iPhone and Android cameras offer to join the network straight from the code.
Should I download SVG or PNG?
SVG for print: it is made of squares, so it stays sharp at any size on a poster or a business card. PNG for web pages, emails and slides where a fixed-size image is easier. Keep the white border (the quiet zone, 4 modules wide) in either case; scanners need it to find the code.
Will the code still work in years to come?
Yes. QR codes are an ISO standard (ISO/IEC 18004) and every scanner reads codes made decades ago. A code never expires; what can break is what it points to. For a long-lived printed code use a URL on a domain you control, so you can redirect it if the page moves.
How do I use the QR Code Generator?
Simply pick your options and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.
Is it free? Does it work without internet?
Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.
Where does my data go?
Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.
Common Use Cases
Restaurant tables
A menu link printed on table stickers; level Q can rebuild about 25% of the data if the sticker is scuffed or wet.
Guest WiFi
A framed WiFi code at reception: CafeGuest with a 10-character password fits a version 3 code at level M, 29 × 29 modules.
Business cards
A portfolio or contact URL as SVG, printed at least 2 cm wide so a phone can read it from a hand’s length.
Posters and packaging
A tagged landing-page URL per placement shows which poster gets scanned; keep URLs short to keep the code small.
Event badges
A ticket ID per attendee for check-in, at level Q or H because badges bend and crease.
Last updated: