What Can a QR Code Store? URLs, Wi-Fi, Contacts and More
By Urlzee Team · Published · 6 min read
A QR code stores text and nothing else: up to 7,089 digits or 2,953 bytes in the largest version. What makes a code open a website, join a Wi-Fi network or save a contact is the way that text is written. Phones recognise certain prefixes and formats and offer the matching action.
How much data can a QR code hold?
The absolute maximum belongs to a version 40 code, a 177 × 177 grid, at the lowest error correction level.
| Encoding mode | What it covers | Maximum characters |
|---|---|---|
| Numeric | Digits 0–9 | 7,089 |
| Alphanumeric | Digits, capital letters A–Z, space and $ % * + - . / : | 4,296 |
| Byte | Any text, including lowercase letters and symbols | 2,953 bytes |
| Kanji | Japanese double-byte characters | 1,817 |
The generator chooses the mode automatically. A normal URL contains lowercase letters, so it uses byte mode, where each ordinary character takes one byte. Accented letters, non-Latin scripts and emoji take two to four bytes each when encoded as UTF-8, so they use up space faster.
These limits are theoretical ceilings. A version 40 code is so dense that it needs to be printed large and scanned with a good camera. For everyday use, tens of characters is ideal and a few hundred is the sensible upper end. Urlzee's QR code generator accepts up to 1,500 characters and warns you beyond that. Denso Wave, which created the format, lists the capacity of every version on its QR code reference site.
What types of content can a QR code contain?
Any text. The useful question is which text formats phones act on. These are the common ones.
| Content | Example of the encoded text | What the phone offers |
|---|---|---|
| Web link | https://example.com/menu | Open in browser |
| Plain text | Shelf B4, box 17 | Show or copy the text |
mailto:hello@example.com?subject=Booking | Start an email draft | |
| Phone number | tel:+15550100 | Call the number |
| Text message | sms:+15550100 or SMSTO:+15550100:Hello | Start a message |
| Wi-Fi network | WIFI:T:WPA;S:CafeGuest;P:secret123;; | Join the network |
| Contact | vCard or MECARD text | Add to contacts |
| Location | geo:51.5007,-0.1246 | Open in a maps app |
| Calendar event | iCalendar VEVENT text | Add to calendar |
Support is not identical across phones and scanner apps. Web links work everywhere. Wi-Fi, contact, email and phone formats are widely supported by current iPhone and Android cameras. Location, calendar and the two text-message variants are less consistent, so test them on both platforms before relying on them.
How does a link QR code work?
It contains the URL as text, and the phone treats anything starting with http:// or https:// as a link. That prefix matters: example.com/menu without it may be shown as plain text or sent to a search engine.
Links are by far the most common use, because a link can lead to anything a QR code can't hold itself: a PDF, a video, a form, an app store listing. The shorter the link, the simpler the pattern, which is why it helps to run long addresses through the URL shortener first. A short link also lets scans be counted, as described in static vs dynamic QR codes.
How do you store Wi-Fi details in a QR code?
Use the WIFI: format, a single line with fields separated by semicolons:
WIFI:T:WPA;S:CafeGuest;P:secret123;;
Tis the security type:WPAfor WPA, WPA2 and WPA3 personal networks,WEPfor old WEP networks, ornopassfor an open network.Sis the network name (SSID).Pis the password. Leave it out for an open network.H:truecan be added for a hidden network.
If the name or password contains a backslash, semicolon, comma, colon or double quote, put a backslash before that character. A password of pa;ss is written pa\;ss.
Anyone who can see the code can read the password, so use this for guest networks, not private ones.
How do you store a contact in a QR code?
Encode the details as vCard text. Phones recognise the block and offer to create a contact.
BEGIN:VCARD
VERSION:3.0
N:Khan;Sara
FN:Sara Khan
TEL:+15550100
EMAIL:sara@example.com
END:VCARD
A simpler alternative, MECARD, fits on one line: MECARD:N:Khan,Sara;TEL:+15550100;EMAIL:sara@example.com;;. It produces a smaller code but supports fewer fields.
Contact codes get dense quickly. Every extra field, such as a postal address or job title, adds characters and shrinks the squares. For a small print area, a link to a contact page is often the better choice.
Can you make these with Urlzee's generator?
Yes, by typing the text yourself. The generator has a single box for "URL or text" and encodes exactly what you enter. It doesn't have fill-in forms for Wi-Fi, contacts or email, so you write the line in the right format, such as the WIFI: string above, and paste it in. You can then set colours, size and error correction and download PNG or SVG as usual.
Check the result on a phone before printing. A misplaced semicolon in a Wi-Fi string or a missing END:VCARD line will make the phone treat the content as plain text.
What can't a QR code store?
Anything large. A QR code tops out at just under 3 kilobytes, which is less than a small thumbnail image.
- Images, audio and video: host the file and encode its link.
- Documents and PDFs: the same; upload, then link.
- Apps: a code can link to an app store page, not contain the app.
- Long text: a few paragraphs will technically fit, but the code becomes too dense to scan comfortably. Put the text on a web page.
A QR code also stores nothing about who scans it and cannot change after it is made. Tracking and editing are properties of a link inside the code, not of the code.
Is everything in a QR code visible to anyone?
Yes. A QR code is not encrypted. Anyone with a phone can read the full contents, and free tools decode a code from a photo. Don't put secrets in one unless you are happy for every person who sees it to have them.
The reverse is worth remembering when you scan: a code can contain any of the formats above, not only links. Look at what your phone says it is about to do. A poster claiming to show a menu shouldn't be asking to join a Wi-Fi network or send a text message. The risks are covered in QR code phishing.
Which content type should you choose?
Use the format that removes the most steps for the person scanning, as long as it is widely supported.
- To send people to information, use a link.
- To get guests online, use a Wi-Fi code.
- To hand over your details where there may be no signal, use a contact code.
- To label equipment or stock for internal use, plain text is enough and works offline.
When more than one would do, the link is usually the most flexible, because the page behind it can be updated and the code stays small. For how the pattern itself represents all this, see how QR codes work.
Frequently asked questions
- How much data can a QR code hold?
- The largest QR code, version 40 at the lowest error correction level, holds 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes. Practical codes hold far less so that they stay easy to scan.
- Can a QR code store an image, PDF or video?
- Not in any useful way. A QR code holds at most a few kilobytes of text, so the normal approach is to host the file online and put its link in the code.
- How do I make a Wi-Fi QR code?
- Encode a line of text in the form WIFI:T:WPA;S:NetworkName;P:Password;; using your own network name and password. Most phone cameras recognise it and offer to join the network.
- Do QR codes work without an internet connection?
- Scanning and decoding happen on the phone and need no connection. Content such as plain text, Wi-Fi details or a contact card works offline; a web link needs a connection to load the page.