QR Code Generator: How QR Codes Work and How to Create Them
Everything you need to know about QR codes — how they encode data, error correction levels, use cases, and how to generate custom QR codes for free.
What is a QR Code?
A QR code (Quick Response code) is a two-dimensional barcode developed by Denso Wave in 1994. Unlike a traditional 1D barcode that stores data only horizontally, a QR code stores data in both dimensions, allowing it to hold significantly more information. QR codes can encode:
- URLs (the most common use)
- Plain text
- Contact information (vCard)
- Wi-Fi network credentials
- Email addresses
- Phone numbers
- SMS messages
- App store links
How QR Codes Work
A QR code is a grid of black and white squares. Data is encoded using a specific pattern across multiple regions:
- Finder patterns — the three large squares in three corners; allows scanners to detect and orient the code
- Timing patterns — alternating black/white lines that help determine the grid size
- Data modules — the remaining squares encode the actual data using Reed-Solomon error correction
- Quiet zone — the white border around the code; required for scanning
QR Code Versions and Capacity
QR codes come in 40 versions (sizes). Version 1 is 21×21 modules; each version increases by 4 modules per side. Higher versions store more data but are larger:
- Version 1: up to 41 numeric characters or 25 alphanumeric
- Version 10: up to 652 numeric or 395 alphanumeric
- Version 40: up to 7,089 numeric or 4,296 alphanumeric
Error Correction Levels
QR codes can recover from partial damage, which makes them robust for physical print:
- L (Low) — recovers 7% of data; smallest code size
- M (Medium) — recovers 15%; default for most uses
- Q (Quartile) — recovers 25%; good for industrial environments
- H (High) — recovers 30%; allows adding a logo to the QR code center
Best Practices for QR Codes
- Use a short URL — shorter content = smaller, faster-scanning QR code. Use a URL shortener for long URLs.
- Test before printing — always scan with multiple devices before printing at scale
- Ensure adequate size — minimum 2cm × 2cm for reliable scanning; larger for billboards
- Maintain contrast — dark modules on light background; avoid complex backgrounds
- Preserve quiet zone — maintain the white border around the QR code
Using the ToolsPal QR Code Generator
- Enter your URL or text in the input field
- The QR code is generated instantly as you type
- Download as PNG for use in print or digital media
Free Online Tool
Try QR Code Generator
Generate QR codes for URLs, text or any data. Download PNG.