QR Code Generator
Create QR codes for URLs, text, WiFi networks, email addresses, phone numbers and SMS messages. Download as PNG.
How QR codes work
A QR code is a two-dimensional barcode that stores data as a grid of black and white squares. Unlike a traditional barcode, which only encodes along one axis, a QR code holds information in both directions - which is why it can carry thousands of characters in a small square.
The three large squares in the corners are position markers, letting a scanner find and orient the code from any angle. That is why a QR code works upside down or at a slant.
Key takeaways
- QR codes are static images - the data is in the pattern itself.
- Error correction lets a code work even when partly damaged or obscured.
- A shorter URL produces a simpler, more reliable code.
- Codes generated here contain no tracking and never expire.
- Always test a code with a real phone before printing it.
What you can encode
| Type | Format | What happens on scan |
|---|---|---|
| URL | https://example.com | Opens the link |
| Plain text | Any text | Displays the text |
| WiFi | WIFI:S:name;T:WPA;P:password;; | Offers to join the network |
| Contact | vCard or MECARD format | Offers to save the contact |
| mailto:someone@example.com | Opens a new email | |
| Phone | tel:+441234567890 | Starts a call |
| SMS | sms:+441234567890 | Opens a message |
| Location | geo:51.5074,-0.1278 | Opens a map |
This generator has forms for text and links, WiFi, email, phone and SMS (it writes SMS codes as SMSTO:number:message, which phones also accept). There is no contact or location form: to make one of those, paste the vCard or geo: text into the Text/URL box.
Error correction
QR codes include redundant data so they still scan when partially damaged, dirty or covered. There are four levels, and the trade-off is between resilience and capacity.
| Level | Recoverable damage | Capacity cost | Use for |
|---|---|---|---|
| L (Low) | ~7% | Smallest code | Clean digital display |
| M (Medium) | ~15% | Slightly larger | The general-purpose default |
| Q (Quartile) | ~25% | Larger | Industrial or outdoor use |
| H (High) | ~30% | Largest | Codes with a logo overlaid |
High error correction is what makes it possible to place a logo in the center of a QR code - the covered modules fall within the recoverable margin.
Capacity
| Data type | Maximum characters |
|---|---|
| Numeric only | 7,089 |
| Alphanumeric | 4,296 |
| Binary / UTF-8 | 2,953 bytes |
| Kanji | 1,817 |
These are the standard's maximums at the lowest error correction (L). This generator encodes everything as UTF-8 bytes, so its limit is the byte row: 2,953 bytes at L and 2,331 at the default M. Plain English letters take 1 byte each, accented letters 2, Chinese or Japanese characters 3 and emoji 4. In practice, keep the payload short - more data means a denser grid, which is harder to scan.
Printing QR codes
- Minimum 2 × 2 cm for close scanning; larger for anything read at a distance.
- A useful rule: the code should be at least one tenth of the scanning distance. A code read from 2 meters should be at least 20 cm across.
- Keep the quiet zone. A clear margin of at least four modules around the code is part of the specification, not decoration.
- Maintain contrast. Dark on light. Inverted codes fail on many scanners.
- Never stretch it. A QR code must stay square.
- Avoid glossy or curved surfaces where reflections and distortion interfere.
- Test the actual printed piece with several phones before the full run.
Static versus dynamic codes
| Static (this tool) | Dynamic (paid services) | |
|---|---|---|
| Data location | Encoded in the image | Points at a redirect service |
| Can change the destination? | No | Yes |
| Scan analytics | No | Yes |
| Expires? | Never | If the subscription lapses |
| Third-party dependency | None | Yes |
| Cost | Free | Usually a subscription |
A static code works forever with no dependency on anyone. A dynamic code stops working entirely if the provider shuts down or you stop paying - which has caught out organizations with codes already printed on physical products.
If you want to change the destination later without a subscription, encode a URL on a domain you control and set up your own redirect. You keep both the flexibility and the independence.
Frequently Asked Questions
Are these QR codes free to use commercially?
Yes. The codes are generated in your browser, contain no tracking, never expire and carry no usage restrictions. QR code technology itself is patent-free for standard use.
Do the QR codes expire?
No. These are static codes - the data is encoded directly in the image pattern, with no dependency on any service. The code will work for as long as the destination it points to exists.
What is the difference between static and dynamic QR codes?
A static code contains the data itself and works forever with no dependency. A dynamic code points at a redirect service, which allows the destination to be changed and scans to be tracked, but stops working entirely if that service ends or the subscription lapses.
How much data can a QR code hold?
The QR standard allows up to 7,089 digits or 4,296 alphanumeric characters using its numeric and alphanumeric modes. This generator encodes text as UTF-8 bytes, which works for any language, so its limit is 2,953 bytes at Low error correction and 2,331 at the default Medium: about 2,331 plain English characters, 1,165 accented letters or 777 Chinese or Japanese characters at Medium. Keep the payload much shorter in practice, because more data means a denser pattern that is harder to scan.
What is error correction in a QR code?
Redundant data allowing the code to be read even when partly damaged or covered. Four levels exist, recovering roughly 7 to 30 percent. High correction is what allows a logo to be placed in the center of a code.
How large should a printed QR code be?
At least 2 by 2 centimeters for close scanning. A useful rule is that the code should be about one tenth of the intended scanning distance, so a poster read from 2 meters needs a code around 20 centimeters across.
Why is my QR code not scanning?
Common causes are insufficient size, missing quiet zone margin, poor contrast, a stretched non-square image, a glossy or curved surface, or too much data creating an overly dense pattern. Test on a real device before printing.
Can I put my logo in the middle of a QR code?
Yes, if you use high error correction. The covered modules then fall within the recoverable margin. Keep the logo to roughly 20 to 30 percent of the code area and always test the result before using it.
How do WiFi QR codes work?
They encode the network name, security type and password in a standard format. Both iOS and Android recognize it natively and offer to join the network, so guests connect without typing a password. No app is required. Characters the format reserves (backslash, semicolon, comma, colon and double quote) are escaped automatically, so passwords containing them still work.