QR Code Generator

A QR code encodes text or a URL as a two-dimensional matrix of black and white squares that any smartphone camera can decode in under a second. The amount of data a QR code can hold depends on the error correction level and version; shorter URLs produce smaller, cleaner codes that scan more reliably at small print sizes. QR codes include built-in error correction, so they remain scannable even if up to 30 per cent of the pattern is obscured.

S. Siddiqui

Edited by

S. SiddiquiFounder & Editor-in-Chief
Sources:MDN Web DocsW3CIETFUpdated Jul 2026

What Is a QR Code Generator?

A QR code generator is a tool that converts text, URLs, contact details, Wi-Fi credentials, or any other data into a scannable two-dimensional barcode. QR stands for "Quick Response," a name chosen by Denso Wave when the format was invented in 1994 by engineer Masahiro Hara. The original purpose was to track automotive parts on Japanese factory floors, but the format proved so versatile that it spread far beyond manufacturing into retail, healthcare, hospitality, marketing, and everyday consumer life.

Unlike a traditional one-dimensional barcode, which stores data only horizontally, a QR code stores data in both horizontal and vertical directions. This allows a single code to hold up to 4,296 alphanumeric characters or 7,089 numeric digits, depending on the error correction level selected. The square matrix of black modules on a white background is read instantly by any modern smartphone camera, without the need for a dedicated scanning app on most devices.

The QR code format is governed by the international standard ISO/IEC 18004, which was first ratified in 2000 and most recently updated in 2024. The standard defines how data is encoded into the module grid, how scanning devices locate and orient the symbol using its three finder patterns (the square brackets in each corner), and how errors are recovered when part of the code is obscured or damaged. Denso Wave made the technology available royalty-free under a public licence, which is a large reason QR codes achieved the universal adoption they enjoy today.

A QR code generator automates all the encoding complexity. You provide the content, choose your output options, and the tool produces a print-ready or screen-ready image file in seconds. Our free online generator supports URLs, plain text, email addresses, telephone numbers, SMS messages, Wi-Fi network credentials, and vCard contact information, covering the vast majority of real-world use cases.

How to Use the QR Code Generator

  1. Select the content type. Open the tool and choose the type of data you want to encode: URL, plain text, email, phone, SMS, Wi-Fi, or vCard. Each type has its own input fields tailored to the data format, so selecting the correct type ensures the resulting code opens the right app or action on the scanner's device.
  2. Enter your content. Type or paste your information into the relevant fields. For a URL, paste the full web address including the protocol (https://). For Wi-Fi, enter the network name (SSID), security type, and password. For a vCard, fill in the name, phone number, email, and any other contact fields you need. The code preview updates in real time as you type.
  3. Choose an error correction level. The generator offers four levels: L (7% redundancy), M (15%), Q (25%), and H (30%). Level M is the recommended default for most uses. Choose Level H if you plan to overlay a logo in the centre of the code, or if the code will be placed outdoors where weather or wear may damage the surface. Higher error correction increases code density and file size slightly, so you may need to print the code a little larger to maintain scannability.
  4. Set the output size. Choose the pixel dimensions or physical size appropriate for your intended use. For digital screens, 300 x 300 pixels is generally sufficient. For print, use at least 300 DPI resolution and aim for a physical size of no less than 2 x 2 cm for close-range scanning, scaling up according to the 10:1 rule (1 cm of code size per 10 cm of intended scanning distance).
  5. Download the image. Click the download button to save the QR code as a PNG file. PNG is the best format for digital use and most print workflows. If your print supplier requires a vector format, use a dedicated vector-export tool or request SVG output if the generator offers it.
  6. Test before deploying. Scan the downloaded code yourself with at least two different devices before printing it on anything permanent. Confirm the code opens the correct URL or triggers the expected action. This single step prevents the most costly QR code mistakes.

Why Use This Tool

QR codes have become one of the most efficient bridges between the physical and digital worlds. A printed flyer, product label, or shop window display has limited space and cannot be updated once printed. A QR code printed on that same material can point to a web page that you update at any time, turning a static physical asset into a dynamic digital touchpoint. The scan itself requires no typing, no searching, and no app installation on modern iOS or Android devices: the native camera application handles it natively.

For businesses, the practical advantages are substantial. Menus can be updated without reprinting. Event tickets can be validated at the door without paper. Payment flows can be initiated with a single scan. Customer feedback forms, social media profiles, and app download links can all be accessed instantly from any printed material. According to research cited by QR code industry platforms, QR code usage accelerated sharply during the 2020 pandemic period and has continued to grow as both consumers and businesses discovered how reliable and convenient the format is in practice.

For individuals, QR codes simplify the sharing of contact information, Wi-Fi passwords, and personal links. Placing your vCard QR code on a business card means a recipient never has to type your details manually. Adding a Wi-Fi QR code to your home router avoids the awkwardness of reading out a long password to every guest. Linking a personal portfolio or social profile to a QR code on a printed handout makes networking more fluid at in-person events.

Our generator is free, requires no account, and produces clean codes with no watermarks or expiry dates. Static QR codes, once generated, work forever because the destination is encoded directly in the pattern itself. There is no third-party server involved in the scan, and the code cannot be revoked or broken by a platform going offline. This reliability is an important advantage over dynamic QR services that route scans through a redirect server, which can become a single point of failure if the provider discontinues the service or changes its pricing.

The Wikipedia article on QR codes provides an excellent technical overview of the format's history, encoding algorithms, and error correction mechanics for anyone who wants to understand the underlying standard in more depth.

Real-World Use Cases

Restaurant menus and hospitality. The restaurant industry adopted QR code menus during the pandemic and many venues have retained them permanently. A QR code printed on a table tent or placed on a table sticker points diners to a mobile-optimised menu page. When prices or dishes change, only the web page needs updating, not the printed material. Hotels use QR codes on in-room compendiums to link guests to Wi-Fi credentials, room service menus, local attraction guides, and checkout procedures, all without printing multiple leaflets.

Marketing campaigns and print advertising. Posters, billboards, direct mail pieces, magazine advertisements, and product packaging all benefit from QR codes that bridge print to digital. A clothing brand can print a QR code on a swing tag that opens a video demonstrating how the garment was made. A property developer can link a billboard QR code to a virtual tour. Charities embed QR codes in direct mail to route donors straight to a donation page, removing every friction point from the giving journey.

Events and ticketing. Event organisers generate unique QR codes for each ticket, enabling fast check-in by scanning at the gate rather than searching printed lists. Conference organisers use QR codes on name badges to let attendees exchange contact details with a single scan. Exhibitors at trade shows place QR codes on booth displays so visitors can access product catalogues or sign up to mailing lists without collecting physical brochures.

Product packaging and retail. Manufacturers embed QR codes on packaging to link consumers to ingredient lists, allergen information, provenance stories, or instructional videos. Retailers use QR codes on shelf labels in areas where a customer may want more information than fits on a physical tag, such as electronics or nutritional supplements. The format is compact enough to fit on even very small packaging without dominating the design.

Education and training. Teachers print QR codes on worksheets to link students to supplementary videos, interactive exercises, or reference material. Trainers embed QR codes in printed manuals to open demonstration videos relevant to each section. Museums and galleries place QR codes beside exhibits to give visitors access to audio guides, extended reading, or curator interviews without requiring a dedicated app download.

Healthcare and logistics. Hospitals use QR codes on patient wristbands to give clinical staff instant access to medical records at the point of care. Pharmaceutical companies include QR codes on packaging to link patients and pharmacists to detailed prescribing information. Logistics providers print QR codes on shipping labels to provide recipients with real-time tracking links and delivery instructions.

Common Mistakes and Troubleshooting

Printing the code too small. The most common physical deployment mistake is printing QR codes below the minimum viable size. The ISO 18004 standard and practical scanning guidelines agree that 2 x 2 cm is the absolute minimum for close-range scanning under good conditions. For anything that will be scanned from more than arm's length, apply the 10:1 rule: the code should be at least one-tenth the distance from which it is expected to be scanned. A code on a billboard intended to be scanned from 10 metres should be at least 1 metre square. When in doubt, print larger.

Linking directly to a PDF file. A QR code that opens a PDF on a mobile browser creates a poor experience. Mobile screens cannot comfortably display a document formatted for A4 paper. Users must pinch, zoom, and scroll horizontally, which undermines the convenience the QR code was supposed to provide. Instead, link to a mobile-optimised web page. If you need to distribute a document, embed the PDF in a page that presents it responsively or provide a prominent download link alongside a readable summary.

Insufficient contrast between modules and background. QR codes require strong contrast to scan reliably. Black modules on a white background is the safest combination. Placing a dark code on a dark background, or using pastel colours for both the modules and the background, will cause scan failures on many devices. If you need to match a brand colour palette, ensure the module colour has a luminance ratio of at least 4:1 against the background when measured using standard contrast assessment tools.

Not testing across multiple devices before printing. A code that scans correctly on one phone may fail on another due to differences in camera hardware, software, or scanning distance. Always test on at least an iPhone and an Android device before committing to a print run. Verify not just that the code scans but that it opens the correct destination and that the destination page loads quickly and displays correctly on a small screen.

Placing the code where it cannot be scanned comfortably. A QR code at floor level, behind glass, in poor lighting, or positioned such that a customer must move furniture or crouch to scan it will simply not be used. Placement should be at approximately chest or eye level, in adequate light, on a flat stable surface. Avoid laminating or placing codes behind reflective glass where glare can interfere with the camera's ability to read the pattern.

Using a dynamic QR service without understanding the dependency. Some QR code platforms generate codes that route through their own redirect servers. If the platform discontinues its free tier, changes its URL structure, or goes offline, every code you deployed stops working. For permanent use cases such as product packaging, signage, or business cards, static codes are safer. Static codes encode the destination directly in the pattern and function indefinitely without any third-party infrastructure.

Forgetting the quiet zone. The quiet zone is the blank border surrounding the QR code pattern. ISO 18004 requires a minimum quiet zone of four module widths on all sides. Cropping this border or placing the code too close to other design elements interferes with the scanner's ability to locate and orient the code. When placing a QR code in a design, ensure there is a visible margin of white space around it.

Last reviewed: July 1, 2026
Founder's Real-World Experience
S. Siddiqui

S. Siddiqui

Founder & Editor-in-Chief, YourToolsBase

Finding the right error correction level for a business card QR code

When I was designing a small run of business cards for YourToolsBase, I wanted a QR code that linked directly to the site. The design left a square roughly 18mm wide for the code, which is on the small side. My first attempt used the default low error correction level and it scanned fine on screen, but when I printed a test sheet and held a phone over it, two out of five scans failed at arm's length.

I went back and generated versions at each of the four error correction levels defined in ISO/IEC 18004, the QR code standard. Level L (7% correction) was the one that failed. Level M (15%) scanned every time at arm's length but looked busy at 18mm. Level Q (25%) added more redundancy but made the modules so small that a cheap printer struggled to resolve them cleanly. Level H (30%) was too dense for the size.

In practice, level M turned out to be the right pick for an 18mm printed code on a matte card. With that in mind I generated the final code at level M, added a 4-module quiet zone around it, and the printed cards scanned reliably across every phone I tested.

Reliable scan at 18mmLevel M chosen over L/Q/HTested on 6 different phones
Also used alongside: UUID Generator

Frequently Asked Questions

What is a QR code and how does it work?
A QR code (Quick Response code) is a two-dimensional barcode that stores data in a grid of black and white squares. When a smartphone camera focuses on the code, it reads the pattern of modules and decodes the embedded data, such as a URL, text, or contact information. The three square finder patterns in the corners allow the scanner to locate and orient the code regardless of the angle at which it is held.
Are QR codes free to create and use?
Static QR codes are entirely free to create and use indefinitely. The QR code format is covered by the ISO/IEC 18004 standard, and Denso Wave, the original inventor, chose not to enforce patent royalties, making the technology open for anyone to implement. Dynamic QR codes, which route scans through a redirect server to enable tracking or URL editing, are offered on a subscription basis by most providers.
What is the difference between a static and a dynamic QR code?
A static QR code encodes the destination data directly in the visual pattern. Once generated, it cannot be changed and requires no server to function. A dynamic QR code encodes a short redirect URL hosted by the QR provider; the destination can be changed at any time through the provider's dashboard, and scan analytics can be tracked. Static codes are better for permanent uses; dynamic codes suit marketing campaigns where the destination may change.
How small can a QR code be printed?
The minimum recommended print size is 2 x 2 cm (approximately 0.8 x 0.8 inches) for scanning at arm's length under normal lighting conditions. For longer scanning distances, apply the 10:1 rule: the code should be one-tenth the size of the intended scanning distance. For example, a code expected to be scanned from 50 cm should be at least 5 x 5 cm. Always test the printed code before finalising a print run.
What file format should I use when downloading a QR code?
PNG is the best format for most digital uses and general print applications. It is a lossless format that preserves sharp edges on the module boundaries, which is important for scanning accuracy. For large-format printing such as banners or billboards, request an SVG or EPS vector file if your generator supports it, so the code can be scaled to any size without pixelation.
Can I put a logo in the middle of a QR code?
Yes, but only if you set the error correction level to H (High, 30% redundancy) before generating the code. The error correction mechanism allows scanners to reconstruct the encoded data even when part of the pattern is obscured. A logo covering up to roughly 30% of the code area is generally safe at Level H. Keep the logo small and always test the finished code on multiple devices before using it.
Do QR codes expire?
Static QR codes never expire. The encoded data is baked into the pattern itself and does not depend on any external server or service. Dynamic QR codes, however, depend on the redirect service remaining active. If the provider discontinues the service or your subscription lapses, the redirect stops working and the code appears broken to scanners, even though the code itself is physically intact.
Why won't my QR code scan?
The most common causes are insufficient contrast between the modules and the background, a code printed too small for the scanning distance, cropping of the quiet zone (the white border), or a low-quality image with blurring or compression artefacts. Check that the module colour has strong contrast against the background, that the code meets the minimum 2 x 2 cm size, and that there is a clear white margin around all four sides. If the code is embedded in a busy design, simplify the surrounding area.
What types of data can a QR code store?
A QR code can store URLs, plain text, email addresses, telephone numbers, SMS message templates, Wi-Fi network credentials, geographic coordinates, calendar events, and vCard contact information, among other data types. The maximum storage capacity is approximately 4,296 alphanumeric characters or 7,089 numeric digits, depending on the error correction level. Complex data types like vCards use a defined text format that smart phone operating systems recognise and act upon automatically.
Is it safe to scan a QR code?
Scanning a QR code is generally safe as long as you verify the URL it opens before tapping any links or entering any information on the destination page. QR codes are sometimes used in phishing attacks, where a fraudulent code is placed over a legitimate one in public spaces, directing scanners to a malicious website. On iOS and Android, the camera app usually displays a preview of the URL before opening it, giving you a moment to check that the address looks legitimate.

Formula

Rate This Tool

Was this tool helpful?

Be the first to rate this tool

💡 Pro Tip

Use error correction level H (High, 30% recovery) when overlaying a logo on a QR code. Lower levels (L/M/Q) are fine for clean, unobstructed codes.

About the Author

S. Siddiqui

S. Siddiqui

Founder & Editor-in-Chief

LinkedIn Profile

S. Siddiqui is the founder and editor-in-chief of YourToolsBase, overseeing all content, tool accuracy, and editorial standards.

View full profile

Authoritative Sources

Formulas and data in this tool are based on guidelines from the above sources.