QR Code Generator
Generate a QR code from text.
Input
Result
What is a QR Code Generator?
A QR Code Generator creates QR (Quick Response) codes from text, URLs, or other data. QR codes are two-dimensional barcodes that can be scanned by smartphone cameras to quickly access encoded information. They are widely used for marketing links, contact sharing, payment systems, menu access, and product tracking because they store more data than traditional barcodes and scan from any angle.
How to calculate QR code error correction (the formula)
QR codes use Reed-Solomon error correction. Four levels are available: L (low, 7% recovery), M (medium, 15%), Q (quartile, 25%), and H (high, 30%). Higher recovery levels allow the code to be scanned when partially damaged or obscured but reduce data capacity. The data capacity for a version 40 QR code at level L is up to 4,296 alphanumeric characters; at level H it drops to 1,852 characters.
Example calculation
Enter URL https://123calcs.com into the generator. The QR code encodes this as a URL type with mode indicator 0100 (byte mode). The data is converted to a bit stream, split into 8-bit codewords, and Reed-Solomon error correction codewords are appended. The final matrix is a grid of black and white modules. A version 2 QR code (25×25 modules) with level M can hold this URL easily. The white finder patterns in three corners help the scanner orient the code.
Common mistakes
- Using too much error correction for small data — Level H is overkill for a short URL and forces a larger QR version. Level M or Q is usually sufficient.
- Placing QR codes on curved surfaces — Distortion from curved surfaces (bottles, mugs) can make the finder patterns unreadable. Use flat surfaces when possible.
- Choosing colors that reduce contrast — QR codes need high contrast (dark modules on a light background). Light-colored or gradient QR codes may fail to scan reliably.
Frequently asked questions
What is a QR code?
A QR code is a 2D barcode that stores data readable by smartphone cameras and scanners.
How much data can a QR code hold?
Up to 3 KB of data (approx. 4,300 alphanumeric characters or 7,000 digits), depending on version and error correction.
Can I scan QR codes without an app?
Most modern phones scan QR codes directly through the camera app without extra software.
What is error correction in QR codes?
Error correction allows the QR code to be read even if partially damaged, from 7% to 30% recovery.
What types of data can QR codes encode?
URLs, plain text, contact info (vCard), Wi-Fi credentials, email addresses, and phone numbers.
Do QR codes expire?
QR codes themselves are static images that never expire, but the encoded URL or data may become outdated.