QR Code Generator

Advertisement

Generate QR codes for URLs, text, WiFi credentials, contacts, and more. Download as PNG or SVG.

0 / 2331 bytes
QR Code Preview
Advertisement

About This Tool

The QR code—short for Quick Response code—was invented in 1994 by Masahiro Hara and his team at Denso Wave, a subsidiary of Toyota. Originally designed to track automotive parts on factory assembly lines, the two-dimensional barcode could store far more data than traditional one-dimensional barcodes and could be scanned at high speed from any angle. For years, QR codes remained a niche technology used primarily in Japanese manufacturing and logistics. That changed dramatically during the COVID-19 pandemic, when businesses worldwide adopted QR codes for contactless menus, digital payments, health verification passes, and event check-ins. Between 2020 and 2022, QR code usage surged by over 400%, transforming the technology from an industrial tool into an everyday convenience. A QR code stores data as a pattern of black and white squares called modules, arranged in a grid. The three large squares in the corners are finder patterns that help scanners detect and orient the code. Data is encoded using one of several modes—numeric, alphanumeric, byte, or kanji—depending on the content. The code also includes error correction data based on Reed-Solomon algorithms, allowing it to be read even when partially obscured or damaged. This generator follows the ISO/IEC 18004 standard and supports multiple content types including URLs, plain text, WiFi credentials, vCard contacts (RFC 6350), email, phone, SMS, and geographic locations. You can customize the size, colors, module style, and error correction level (L, M, Q, or H). All processing happens entirely in your browser—your data is never transmitted to any server.

How to Use

  1. Select your content type (URL, text, phone, email, SMS, WiFi, or location) and enter the information in the fields provided.
  2. Customize the appearance by choosing module style, colors, size, and error correction level. Add a logo if desired.
  3. Download your QR code as PNG or SVG. The code generates automatically as you type and updates in real-time.

How to Use

  1. Select your content type (URL, text, phone, email, SMS, WiFi, or location) and enter the information in the fields provided.
  2. Customize the appearance by choosing module style, colors, size, and error correction level. Add a logo if desired.
  3. Download your QR code as PNG or SVG. The code generates automatically as you type and updates in real-time.

Methodology

QR code generation follows the ISO/IEC 18004 standard using the qrcode.js library for in-browser rendering. The encoding process begins by analyzing the input data to select the optimal mode: numeric mode for digits only, alphanumeric for uppercase letters and symbols, byte mode for UTF-8 text, or kanji for Japanese characters. Each mode uses different bit-packing strategies to maximize data density within the module grid. Error correction is implemented using Reed-Solomon codes at four levels: L recovers 7% of damaged codewords, M recovers 15%, Q recovers 25%, and H recovers 30%. Higher correction levels add more redundancy, increasing the physical size of the QR code but making it resilient to partial obstruction, scratches, or printing defects. Level H is recommended when embedding a logo, as the logo obscures central modules. The generator automatically selects the smallest QR version (1 through 40) that can contain the encoded data at the chosen error correction level. The resulting matrix is rendered to an HTML5 Canvas element with customizable module styles, eye patterns, and color schemes, then exported as either a raster PNG image or a scalable SVG vector file. Special content types such as WiFi credentials, vCard contacts, and geo-locations are formatted using their respective standardized URI schemes before encoding.

Understanding Your Results

Always test your QR code with at least two or three different scanner apps on different devices before distributing it widely. Some older smartphones and dedicated barcode scanners struggle with high-density codes, custom colors, or non-standard module styles. Ensuring cross-device compatibility avoids frustration for your audience. Choose the error correction level based on your use case. Level L (7% recovery) is sufficient for digital-only codes displayed on clean screens. Level M (15% recovery) works well for general printed materials. Level Q (25%) suits outdoor signage or packaging that may suffer wear. Level H (30% recovery) is essential when embedding a logo in the center of the code, since the logo physically obscures data modules that must be reconstructed through error correction. Maintain adequate contrast between the foreground and background colors. Dark modules on a light background scan most reliably; inverted or low-contrast color schemes can cause failures on many readers. Always preserve the quiet zone—the white border around the code—at a minimum of four modules wide, as specified by the ISO standard. For WiFi codes, double-check the network name and password before printing, and for vCard codes, verify the contact information renders correctly on both Android and iOS devices.

The Science & History of QR Codes

The QR code was born from a practical manufacturing challenge. In the early 1990s, Japanese automaker Toyota needed a faster way to track thousands of components moving through its factories. Traditional one-dimensional barcodes could store only about 20 characters and had to be scanned at a precise angle. Masahiro Hara, an engineer at Toyota subsidiary Denso Wave, set out to create something better. Inspired by the black and white stones on a Go board, his team developed a two-dimensional matrix code that could encode over 7,000 characters and be read instantaneously from any direction. The key innovation was the three square finder patterns positioned in three corners of the code. These distinctive markers allow scanners to determine the code's position, size, and angle in a single glance, enabling high-speed reading even on fast-moving assembly lines. Denso Wave patented the technology in 1994 but made the crucial decision not to enforce licensing fees, allowing anyone to use QR codes freely. This open approach was instrumental in driving global adoption. Mathematically, QR codes rely on Reed-Solomon error correction, the same algorithm used in audio CDs and deep-space communication. Data is encoded as polynomials over a finite field (Galois field GF 256), and parity symbols are appended so that missing or corrupted codewords can be reconstructed. This is why a QR code can still be read even with scratches, dirt, or a logo covering part of its surface. The code's structure includes several functional regions beyond the data area. Alignment patterns help correct geometric distortion when the code is photographed at an angle. Timing patterns establish the grid spacing between modules. Format information strips near the finder patterns declare the error correction level and mask pattern in use. Version information, present in codes version 7 and above, identifies which of the 40 possible grid sizes is being used. QR codes gained modest traction in Japan throughout the 2000s, appearing on train tickets, magazine advertisements, and food packaging. But the worldwide explosion came during the COVID-19 pandemic, when contactless interaction became a public health priority. Restaurants replaced physical menus with QR-linked digital versions, governments issued QR-based health verification passes, and payment systems from China's WeChat Pay to Europe's mobile banking apps made QR scanning a daily habit for billions of people.

Practical Examples

Restaurant owners place WiFi QR codes on table tents so customers can connect instantly without asking staff for the password. A single scan configures the network name, password, and security type automatically on the customer's device. Real estate agents attach QR codes to yard signs linking to virtual tour pages. Prospective buyers scan the code while driving by and immediately access photos, floor plans, and pricing details on their phones. Event organizers print QR codes on badges and promotional materials that encode vCard contact information. Attendees scan each other's badges to save contact details directly to their phone's address book, eliminating the need for paper business cards. Retail stores generate QR codes for product packaging that link to instruction manuals, warranty registration, or customer support pages, reducing the need for printed inserts and keeping information always up to date.

Tips & Best Practices

Keep your QR code content as short as possible. Shorter data means fewer modules, which produces a simpler code that scans faster and more reliably from a distance. For URLs, use a link shortener if the original address is very long. When printing QR codes, ensure a minimum size of 2 centimeters (about 0.8 inches) per side for close-range scanning, and scale up proportionally for codes that will be scanned from farther away. A billboard QR code may need to be 30 centimeters or larger. Always use high error correction (level H) when adding a logo to the center of your code. The logo physically covers data modules, so the extra redundancy from level H ensures the code remains scannable. Keep the logo size under 30% of the total code area. Avoid placing QR codes on highly reflective or curved surfaces, as glare and distortion interfere with scanning. Matte finishes on printed materials produce the best results. If the code will be displayed on a screen, ensure brightness is adequate and the display is not dimmed by power-saving mode.

All calculations are performed locally in your browser. No data is sent to any server.

Embed This Tool

Get embed code

Was this tool helpful?
Want to tell us more?
0/500
Want us to follow up?
Thanks for your feedback!

Frequently Asked Questions

What types of QR codes can I create?
URLs, plain text, WiFi credentials (SSID, password, security), vCard contacts (name, phone, email), and pre-filled emails.
What is error correction?
Error correction allows QR codes to be scanned even if partially damaged. Levels range from L (7%) to H (30%) recovery.
PNG or SVG?
PNG for immediate use in documents and social media. SVG for scaling to any size without quality loss.
Is my data stored?
No. QR codes are generated entirely in your browser. No data is sent to any server.
How much data can a QR code store?
A QR code can store up to 4,296 alphanumeric characters or 7,089 numeric digits per the ISO/IEC 18004 standard. However, more data means a denser, harder-to-scan code. For URLs, keep them under 300 characters for reliable scanning. Higher error correction levels reduce the maximum data capacity but improve scan reliability.
Will my QR code work with all scanner apps?
Yes. The generated QR codes follow the ISO/IEC 18004 standard and are compatible with all standard QR code scanners, including built-in phone cameras on iOS and Android. WiFi and vCard QR codes use standardized encoding formats recognized by most modern smartphones. Always test your code with a phone camera before printing.