How to Generate a QR Code: Step-by-Step Guide
QR codes are everywhere — on restaurant menus, business cards, product packaging, and event tickets. They make it easy for anyone with a smartphone to instantly access a URL, contact information, or Wi-Fi credentials. In this guide, you'll learn exactly how to generate a QR code, what types of data you can encode, and best practices for printing and sharing.
What Is a QR Code?
A QR (Quick Response) code is a two-dimensional barcode that stores data in a grid of black and white squares. Unlike traditional barcodes that hold only a few dozen characters, QR codes can store up to 4,296 alphanumeric characters. They were invented in 1994 by Denso Wave for tracking automotive parts, but today they are used for nearly everything.
How to Generate a QR Code in 3 Steps
- Open the generator: Go to our free QR Code Generator
- Enter your data: Paste a URL, type a message, or enter Wi-Fi credentials. The QR code generates in real time as you type.
- Download or copy: Save the QR code as a PNG image or copy it directly. No sign-up required.
What Can You Encode in a QR Code?
| Data Type | Example | Use Case |
|---|---|---|
| URL | https://convertcasetool.com | Marketing, business cards |
| Plain text | Hello, scan me! | Notes, messages |
| Wi-Fi credentials | SSID + password | Guest network access |
| Email address | mailto:user@example.com | Contact sharing |
| Phone number | tel:+15551234567 | Click-to-call |
| vCard | Contact info | Digital business cards |
QR Code Best Practices
- Keep URLs short: Shorter URLs produce simpler QR codes that are easier to scan. Use a URL shortener or encode only what is needed.
- Test before printing: Always scan the QR code with multiple devices before printing it on physical media.
- Maintain contrast: QR codes work best with dark modules on a light background. Avoid low-contrast color combinations.
- Add a quiet zone: Leave a white margin of at least 4 modules around the code so scanners can detect the edges.
- Size matters: For print, a minimum size of 2 cm x 2 cm works for close-up scanning. For posters or billboards, scale up proportionally to the expected scanning distance.
Error Correction Levels
QR codes include built-in error correction, which allows them to remain scannable even if partially damaged or obscured. There are four levels:
- Level L (Low): Recovers up to 7% of data. Produces the smallest QR code.
- Level M (Medium): Recovers up to 15%. A good default for most uses.
- Level Q (Quartile): Recovers up to 25%. Good for printed materials that may get dirty.
- Level H (High): Recovers up to 30%. Use when adding a logo overlay to the center of the code.
Related Tools
If you work with encoded data frequently, you may also find these tools useful:
- Base64 Encoder/Decoder — Encode binary data as text for embedding in URLs or JSON
- URL Encoder/Decoder — Properly encode special characters in URLs before embedding them in QR codes
Generate a QR Code Now
Create QR codes for URLs, text, and more — free, no sign-up required.
Open QR Code Generator →