QR Code Generator

Create QR codes for URLs, text, WiFi networks, email addresses, phone numbers and SMS messages. Download as PNG.

px
Low (7%)
Medium (15%)
Quartile (25%)
High (30%)
Scan with any phone camera

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

TypeFormatWhat happens on scan
URLhttps://example.comOpens the link
Plain textAny textDisplays the text
WiFiWIFI:S:name;T:WPA;P:password;;Offers to join the network
ContactvCard or MECARD formatOffers to save the contact
Emailmailto:someone@example.comOpens a new email
Phonetel:+441234567890Starts a call
SMSsms:+441234567890Opens a message
Locationgeo:51.5074,-0.1278Opens 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.

The WiFi QR code is the most underused of these. Encoding your guest network credentials means visitors join by pointing a camera at a card on the wall, with no password to read out or mistype. Both iOS and Android support it natively with no app required.

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.

LevelRecoverable damageCapacity costUse for
L (Low)~7%Smallest codeClean digital display
M (Medium)~15%Slightly largerThe general-purpose default
Q (Quartile)~25%LargerIndustrial or outdoor use
H (High)~30%LargestCodes 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 typeMaximum characters
Numeric only7,089
Alphanumeric4,296
Binary / UTF-82,953 bytes
Kanji1,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.

Shorter data makes a better code. A long URL produces a dense pattern of tiny modules that needs a steady hand, good light and a decent camera. Shortening the URL first produces a visibly simpler code that scans instantly from further away. This matters enormously for print.

Printing QR codes

  1. Minimum 2 × 2 cm for close scanning; larger for anything read at a distance.
  2. 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.
  3. Keep the quiet zone. A clear margin of at least four modules around the code is part of the specification, not decoration.
  4. Maintain contrast. Dark on light. Inverted codes fail on many scanners.
  5. Never stretch it. A QR code must stay square.
  6. Avoid glossy or curved surfaces where reflections and distortion interfere.
  7. Test the actual printed piece with several phones before the full run.
Always test before printing at volume. A QR code that fails on ten thousand printed flyers is an expensive and entirely avoidable mistake. Print one, scan it with an old phone in poor light, and only then approve the run.

Static versus dynamic codes

Static (this tool)Dynamic (paid services)
Data locationEncoded in the imagePoints at a redirect service
Can change the destination?NoYes
Scan analyticsNoYes
Expires?NeverIf the subscription lapses
Third-party dependencyNoneYes
CostFreeUsually 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.

Everything runs in your browser. Nothing you enter is uploaded, logged or stored on a server.

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.

Related Calculators