Generate a QR Code for Plain Text
Create a QR code that displays plain text when scanned. Understand how text encoding works in QR codes, character limits, encoding modes, and practical applications for text-based QR codes.
Detailed Explanation
QR Codes for Plain Text
QR codes can store arbitrary plain text — not just URLs. When scanned, the text is displayed directly on the user's device without opening a browser or any other application.
Text Encoding Modes
QR codes support four encoding modes, each optimized for different character types:
| Mode | Characters | Bits per Character |
|---|---|---|
| Numeric | 0-9 | 3.33 |
| Alphanumeric | 0-9, A-Z, space, $%*+-./: |
5.5 |
| Byte (UTF-8) | Any character | 8 |
| Kanji | Shift JIS double-byte | 13 |
The encoder automatically selects the most efficient mode. If your text contains only digits, Numeric mode is used, allowing up to 7,089 characters. Mixed-case text with special characters uses Byte mode, which has a lower capacity.
Character Limits
For practical text QR codes, keep content under 300 characters for reliable scanning. While QR codes can theoretically hold thousands of characters, larger codes require higher resolution printing and closer scanning distances.
Multi-line Text
Line breaks are encoded as standard newline characters (\n). Most QR scanners render multi-line text correctly:
Meeting Room: 4B
Date: 2025-03-15
Time: 14:00-15:00
Bring your laptop
Encoding Considerations
- UTF-8 support — Modern QR scanners handle UTF-8 encoded text, including accented characters, CJK characters, and emoji.
- No formatting — QR codes store raw text. Bold, italic, or colored text is not supported.
- Scanner behavior varies — Some scanners try to detect if the text looks like a URL, phone number, or email address, and may offer to open the relevant application.
When to Use Text vs. URL
Use plain text QR codes when the information is self-contained and does not need internet access — serial numbers, short instructions, inventory codes, or reference numbers.
Use Case
Plain text QR codes are used for inventory labels, equipment identification tags, short instructions on machinery, conference badge information, warehouse bin labels, and any scenario where a small amount of text needs to be quickly accessible by scanning without requiring internet connectivity.