QR Code Generator — Create QR Codes from Text or URLs
Generate QR codes from any text or URL. Customize size and download as PNG images. Perfect for sharing links, WiFi credentials, or contact info.
See it worked out
Example — Content (text or URL) https://example.com/, QR Code Size 200 px:
Info
QR code generated for: https://example.com/
The formula
QR Code = Error-corrected data modules + Finder patterns + Timing patterns
- Modules
- QR Code Modules
- Finder Pattern
- Position Detection Pattern
- Error Correction
- Reed-Solomon Error Correction
- Version
- QR Code Version
Worked example — Content (text or URL) https://example.com/, QR Code Size 200 px
Info = QR code generated for: https://example.com/
How QR Code Generator Works
QR Code = Error-corrected data modules + Finder patterns + Timing patterns
A QR (Quick Response) code is a two-dimensional matrix barcode invented by Denso Wave in 1994. Data is encoded in black and white square modules arranged in a grid pattern. The structure includes finder patterns (the three large squares in corners for position detection), timing patterns for module alignment, format and version information, and the data area with error correction codewords using Reed-Solomon codes.
- Modules
- QR Code Modules — The individual black and white squares that make up a QR code. Version 40 QR codes have 177 x 177 = 31,329 modules.
- Finder Pattern
- Position Detection Pattern — The three large square patterns in the corners of a QR code that allow scanners to detect the code orientation and position regardless of rotation.
- Error Correction
- Reed-Solomon Error Correction — QR codes use Reed-Solomon error correction with four levels (L, M, Q, H) allowing recovery of 7%, 15%, 25%, or 30% of the data respectively.
- Version
- QR Code Version — The size of the QR code matrix, from Version 1 (21 x 21 modules) to Version 40 (177 x 177 modules). Higher versions store more data.
How to Use
- Enter the text, URL, WiFi credentials, or any content you want to encode in the QR code.
- Adjust the pixel size (100px to 500px) using the slider or number input to control image resolution.
- Select the desired error correction level (L, M, Q, H) to balance between data capacity and damage resilience.
- The QR code image is generated via the QR Server API and displayed in the interactive preview panel below.
- Use the download button to save the QR code as a PNG image file for use in print, web, or sharing.
Quick Reference
| Version 1 capacity | 25 alphanumeric / 17 bytes / 10 kanji |
| Version 40 capacity | 4,296 alphanumeric / 2,953 bytes / 1,817 kanji |
| Error Correction L | Recovers 7% of codewords |
| Error Correction H | Recovers 30% of codewords |
Common Uses
- •Sharing website URLs and landing pages in print media, posters, and business cards.
- •Encoding WiFi credentials for quick network access without typing passwords on mobile devices.
- •Storing contact information (vCard format) for easy mobile phone import and address book integration.
- •Providing product information, serial numbers, and authentication codes in manufacturing and logistics.
- •Contactless payment and ticketing systems in retail, events, and public transportation.
Understanding the Result
QR (Quick Response) codes are two-dimensional barcodes invented by Denso Wave, a subsidiary of Toyota, in 1994 for tracking automotive parts. The technology quickly spread beyond manufacturing into consumer applications worldwide. A QR code encodes data using black modules arranged in a square grid on a white background, read by cameras and image processing algorithms. The structure includes finder patterns (three identical squares in corners) that allow omnidirectional scanning, timing patterns that define module positions, alignment patterns for larger versions, format information, version information, and the actual data regions with error correction codewords. Reed-Solomon error correction is key to QR code reliability: even if a QR code is partially damaged, dirty, or obscured, the data can still be recovered. The four error correction levels (L, M, Q, H) allow users to trade data capacity for resilience. QR codes support four data modes: numeric, alphanumeric, byte/binary, and Kanji. The maximum capacity depends on both version and error correction level: a Version 40 QR code with L-level correction can store up to 4,296 alphanumeric characters or 2,953 bytes.
Worked Examples
A marketing team is designing a brochure and wants to include a QR code linking to their product landing page at https://shop.example.com/brand-new-widget. They need the QR code to be large enough for print at 300 DPI.
Content = https://shop.example.com/brand-new-widget · Size = 350 px
QR code generated for: https://shop.example.com/brand-new-widget (350x350 px)
For print use at 300 DPI, a 350 px QR code produces a physical size of approximately 1.17 inches (350/300). This is large enough for a standard brochure. Always test print a sample before mass production to verify scannability under real-world lighting conditions.
A developer needs to encode a PostgreSQL connection string: "postgresql://user:password@db.internal.example.com:5432/mydb?sslmode=require" and verify that special characters like colons, slashes, and question marks are handled correctly.
Content = postgresql://user:password@db.internal.example.com:5432/mydb?sslmode=require · Size = 200 px
QR code generated for: postgresql://user:password@db.internal.example.com:5432/... (200x200 px)
QR codes handle special characters including colons, slashes, question marks, and @ symbols without any issue. However, for security, never encode passwords or connection strings in QR codes that will be shared publicly — anyone who scans the code can extract the full content.
Frequently Asked Questions
- How much data can a QR code store?
- The capacity depends on the version and error correction level. The maximum is Version 40 with Level L correction: 7,089 numeric digits, 4,296 alphanumeric characters, 2,953 bytes, or 1,817 Kanji characters. Higher error correction levels reduce capacity but increase damage tolerance.
- What is the difference between static and dynamic QR codes?
- Static QR codes encode data directly in the pattern — the data cannot be changed after generation. Dynamic QR codes encode a short URL that redirects to the actual content, allowing the destination to be changed without reprinting the code. Dynamic codes also support tracking scan statistics.
- Can QR codes be scanned at any angle?
- Yes, QR codes use three finder patterns in corners that allow omnidirectional scanning. The scanner detects the patterns to determine orientation, regardless of whether the code is rotated 0, 90, 180, or 270 degrees. This is a key advantage over traditional barcodes which require alignment with a scanner.
- Can I use a QR code to share WiFi credentials?
- Yes, WiFi QR codes use the format: WIFI:S:<SSID>;T:<WPA|WEP|>;P:<password>;;. For example, WIFI:S:MyNetwork;T:WPA;P:mypassword123;; encodes a WPA-protected network. When a smartphone scans this QR code, it automatically connects to the WiFi network. This is especially useful for guest networks in offices, cafes, and homes.
- What are Micro QR codes and how are they different?
- Micro QR codes are a smaller variant with only one finder pattern instead of three, designed for applications where space is extremely limited, such as tiny electronic components or high-density data matrices. They can encode up to 35 numeric digits or 21 alphanumeric characters. Micro QR codes are commonly used in inventory management for small parts, printed circuit boards, and pharmaceutical packaging.
Pro Tips
- →Always test scan a newly generated QR code with at least two different devices (iOS and Android) before distributing it. Different camera sensors and scanning apps handle contrast and lighting conditions differently.
- →For printed QR codes, maintain at least a 4-module quiet zone (white border) around the code. Without sufficient white space, the scanner may fail to identify where the QR code begins and ends.
- →When encoding URLs, prefer short URLs or use a URL shortener. Longer URLs require higher QR code versions with smaller modules, making them harder to scan reliably — especially for URLs over 50 characters.
- →For logos overlaid on QR codes, limit the logo to no more than 30% of the QR code area and use the H (high) error correction level to ensure enough redundant data remains for successful scanning.
- →QR codes work best with maximum contrast: black modules on a white background. Avoid gradient backgrounds, low-contrast color schemes, and patterned backgrounds behind QR codes.
- →Dynamic QR codes (encoding a redirect URL) let you update the destination without reprinting. Services like Bitly or QR Code API can create trackable dynamic QR codes with scan analytics.
Limitations to Know
- •This generator uses a third-party API (api.qrserver.com) to generate QR code images, which means it requires an internet connection. Offline QR generation would require a JavaScript library like qrcode.js running entirely in the browser.
- •The maximum data capacity depends on the QR code version and error correction level. Very long content (over ~2000 characters) may fail to generate as it exceeds even a Version 40 QR code with Level L correction. When not to use: encoding very large payloads like full documents or large JSON blobs.
- •QR codes cannot encode binary data or non-UTF-8 character sets through this API interface. For binary data encoding, use a specialized QR library that supports byte mode directly.
- •The generated QR code images are static — once created, the encoded data cannot be changed. When not to use for: updatable content like dynamic event schedules or changing URLs without a redirect service.
- •Print scaling should maintain a 1:1 pixel ratio. If a 200px QR code is printed at 2x physical size, the effective resolution halves, making smaller modules harder to scan. The smallest module should be at least 0.4mm in physical size.
Cite this calculator
TheCalcUniverse. "QR Code Generator — Create QR Codes from Text or URLs." TheCalcUniverse, 2026, https://thecalcuniverse.com/devtools/qr-code-generator/. Accessed July 24, 2026.
Embed this calculator on your site
You may also like
-
UUID Generator
Generate random UUID v4 and ULID identifiers instantly. Bulk generate multiple IDs, copy to clipboard, and cho…
-
JWT Debugger
Decode and inspect JSON Web Tokens (JWT) client-side. View the header, payload, and signature information with…
-
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text instantly. Supports text and file input with live encoding…
-
JSON Formatter
Format, validate, and beautify JSON data instantly. Paste messy JSON and get clean, indented output with synta…