QR Code Generator

How do I create a QR code for my website or text?

Create scannable QR codes for any text or URL you need to share. Enter your content — get a code you can save, print, or share immediately. Perfect for business cards, event flyers, or quick link sharing. Supports text, URLs, phone numbers, and email addresses.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
How It Works
The formula, explained simply

QR codes work like digital barcodes that smartphones can read with their cameras. Unlike traditional barcodes that only hold product numbers, QR codes can store websites, contact information, WiFi passwords, or any text up to about 4,000 characters. The black and white squares encode your content using error correction — even if part of the code gets damaged or dirty, phones can still read it successfully.

The three large squares in the corners help phones recognize and orient the code correctly, no matter which angle you scan from. The smaller patterns throughout the code contain your actual content, compressed and encoded with mathematical redundancy. Modern smartphones automatically detect QR codes in the camera app — no special software needed.

This tool generates codes at medium error correction level, meaning they can sustain minor damage and still scan reliably. The size you choose affects how close people need to be for successful scanning, but the encoded content remains identical regardless of pixel dimensions.

When To Use This
Right tool, right situation

Use QR codes when you need to transfer digital information quickly without typing. They excel at bridging physical and digital worlds — restaurant menus, business cards, event check-ins, WiFi sharing, and product information. QR codes work best when scanning is more convenient than typing, especially for URLs, contact details, or complex passwords.

Don't use QR codes for content people can easily type themselves, like single words or short phrases. They're also poor choices when your audience might not have smartphones, when internet connectivity is required but unreliable, or when the scanning environment has poor lighting. Traditional text or simple URLs often work better for content under 20 characters.

Consider QR codes temporary solutions unless you control the content they link to. If your QR code points to a website you don't own, a moved or deleted page makes every printed code worthless. Always test codes with multiple phone types before mass printing.

Common Mistakes
Why results sometimes look wrong

Many people create QR codes that are too small for their intended scanning distance. A code that works fine on your computer screen becomes unreadable when printed on a business card and scanned from normal reading distance. The rule of thumb: codes should be at least 10 times larger than the scanning distance — a code scanned from 12 inches away needs to be at least 1.2 inches square.

Another common error is using low contrast colors or busy backgrounds. While QR codes can technically work in various color combinations, black on white provides the highest reliability across different lighting conditions and phone cameras. Colored codes or those placed over patterned backgrounds often fail to scan, especially on older phones or in dim lighting.

Users also frequently encode the wrong content format for their intended use. Typing 'www.mysite.com' instead of 'https://www.mysite.com' means phones won't automatically open the browser — they'll just display the text. Similarly, encoding 'Call me at 555-1234' requires manual dialing, while encoding just '5551234' or 'tel:5551234' triggers automatic dial prompts.

The Math
Worked examples and deeper derivation

QR codes use Reed-Solomon error correction to encode data into a grid of black and white squares. Your content first gets converted into binary data, then split into blocks with mathematical redundancy added. For a standard QR code, about 30% of the code contains error correction data — this means the code remains scannable even if nearly one-third gets damaged or obscured.

The encoding process starts with mode indicators that tell scanners what type of data follows (numeric, text, binary, or special formats like URLs). Character counts and terminator patterns frame your content, while the entire message gets divided into codewords of 8 bits each. Reed-Solomon algorithms then generate error correction codewords based on polynomial mathematics.

Physical placement follows strict patterns: finder patterns occupy the three corners, timing patterns create alignment grids, and data modules fill the remaining space in a specific zigzag order. Version 2 QR codes (25×25 modules) can hold up to 47 alphanumeric characters, while larger versions scale up to thousands of characters with proportionally more error correction capacity.

Restaurant menu QR code
Website URL 'https://myrestaurant.com/menu' at 400×400 pixels
Creates a scannable code perfect for table tents — customers point their phone camera to access the digital menu instantly, eliminating printed menus and reducing contact.
Business card contact info
Contact text 'John Smith, CEO, john@company.com, 555-0123' at 300×300 pixels
Generates a medium-sized code for business cards — recipients scan to automatically add your contact information to their phone without manual typing.
Event WiFi sharing
WiFi details 'Network: EventWiFi, Password: Welcome2023' at 500×500 pixels
Produces a large code for conference signage — attendees scan once to connect to WiFi automatically, eliminating the need to manually enter complex passwords.
Expert Unlock
The thing most explanations skip

QR codes have four error correction levels (L, M, Q, H) that trade data capacity for damage resistance. Most generators default to 'M' level (15% error correction), but 'H' level (30% error correction) works better for codes printed on curved surfaces, outdoor signs, or materials that might get scratched. The higher error correction also allows deliberate modification — you can overlay small logos or designs on up to 30% of an H-level code without breaking scannability.

How do I make sure my QR code works on all phones?

What's the difference between small and large QR code sizes?
Small codes (200×200) work for business cards and close-up scanning, while large codes (400×400 or 500×500) are better for posters, signs, or when people scan from arm's length. The content is identical — only the physical size changes.
Can I put any type of text or link in a QR code?
Yes, QR codes can encode any text including URLs, email addresses, phone numbers, WiFi credentials, or plain messages. Most phones automatically detect the content type — URLs open in the browser, phone numbers offer to dial, emails open the mail app.
Why won't my QR code scan properly on some phones?
Scanning issues usually come from low contrast, damaged codes, or scanning from too far away. Make sure there's good lighting, hold the phone steady, and get close enough that the code fills about one-third of your camera screen for reliable scanning.

Need something this doesn't cover?

Suggest a tool — we'll build it →