QR Code Generator

By Asira Tools Team · Last updated 20 November 2026

Turn any URL or text into a QR code you can print, share, or download as a PNG — free, with no signup and no expiry.

Advertisement

QR Code Generator

Enter text above to generate a QR code
QR code
Download

The code is generated in your browser and never expires. Print it at least 2 cm (about 0.8 in) across for reliable scanning.

What Is a QR Code?

A QR code — short for Quick Response code — is a two-dimensional barcode that a phone camera can read in a fraction of a second. Where a traditional barcode stores a short number in a row of vertical lines, a QR code stores text in a square grid of black and white modules, and it can hold far more: up to 2,953 characters of text in byte mode, or up to 4,296 characters if the content is digits only. Point a phone camera at it, and the phone offers to open the link, show the text, or save the contact — no app download needed on any modern phone.

QR codes were invented in 1994 by Masahiro Hara and his team at Denso Wave, a subsidiary of Toyota, to track car parts on a factory floor. The three large squares in the corners are finder patterns: they let a scanner work out the code's position and orientation, which is why a QR code can be read at an angle, upside down, or partly in shadow. Denso Wave chose not to enforce its patent rights, which is why QR codes are free for anyone to generate and use — including this tool, which charges nothing and adds no watermark.

How to Use This QR Code Generator

Type or paste your text or URL into the box. The QR code appears immediately and updates as you type, so you can watch it change. Use the Download PNG link to save the image, then print it, add it to a flyer, or drop it into a document. The code never expires, because the data is stored in the pattern itself — there is no server in the middle that could shut it down or start charging for it.

For a URL, include the full address starting with https:// so phones open it directly in a browser. A bare domain such as "example.com" will usually work too, but the full URL is more reliable across different phones and scanner apps. For anything else — a Wi-Fi password, a short message, a product code — plain text works fine.

How Much Can a QR Code Hold?

The capacity depends on what kind of data it stores and how much error correction is built in. QR codes come in 40 versions, from Version 1 (21 by 21 modules) to Version 40 (177 by 177 modules). A larger version holds more data but produces a denser pattern that needs to be printed larger to scan reliably. This generator picks the version automatically based on the length of your text.

At the largest version with the lowest error correction (level L), a QR code holds 2,953 bytes of text, 4,296 digits, or 1,817 characters of Japanese kanji. Those are the maximum figures in the QR standard (ISO/IEC 18004). In practice, most QR codes hold far less: a typical URL is 30 to 100 characters, which fits comfortably in a small, easy to scan code. Shorter content means a simpler pattern, which scans faster and from farther away — one more reason to keep URLs short.

This generator uses medium error correction (level M), which can recover the data even if about 15 percent of the code is damaged or covered. That is the standard choice for printed codes: it survives a creased poster, a coffee stain, or a logo placed in the middle, while still holding about 2,331 bytes at the largest version. Higher levels (Q and H) survive 25 and 30 percent damage, but hold less data.

What Can You Put in a QR Code?

Website URLs. The most common use by far: a code on a business card, a poster, or product packaging that opens a website. Short URLs work best, because they produce simpler codes.

Wi-Fi credentials. A code can carry a network name and password in a standard format, so guests join the network by scanning instead of typing a long password. The format is WIFI:T:WPA;S:NetworkName;P:password;; — paste a string like that into the generator and a phone will offer to connect.

Contact details. A vCard string stores a name, phone number, and email address that a phone can save directly to its contacts. Business cards with a QR code on the back are increasingly common for exactly this reason.

Plain text. Anything short: a serial number, a discount code, a short message, or instructions. Text codes are useful where there is no internet connection, because the phone does not need to go online to read them.

Payments and tickets. Payment apps and event tickets use QR codes to encode an account or a booking reference. These usually need a code generated by the payment or ticketing system itself, because the data format is specific to that system.

Worked Example

Suppose you run a cafe and want customers to reach your menu page, https://example-cafe.com/menu, which is 30 characters long. Paste it into the generator and you get a small code — around Version 2 or 3, roughly 25 by 25 modules — that any phone can read from 30 cm away when printed at 2 cm across. Print the same code at 5 cm across on a table card and it scans from across the table. Now compare that with a 400-character URL full of tracking parameters: the code becomes Version 10 or larger, with more than 50 modules per side, and needs to be printed much bigger to scan reliably. The lesson is simple: shorten the URL before you encode it, and the code gets easier to scan.

Tips for Codes That Scan Every Time

Print big enough. The minimum practical size is about 2 cm (0.8 inches) across for a short URL scanned at arm's length. A useful rule is that the scanning distance should be no more than about ten times the code's width: a 2 cm code scans from about 20 cm away, a 10 cm code from about a metre. A billboard code needs to be enormous — which is why QR codes on billboards are usually a bad idea.

Keep the contrast high. Black modules on a white background scan best. Colored codes can work if the contrast is strong — dark blue on white is fine — but light colors on dark backgrounds, inverted codes, and codes over busy photographs often fail. Always test a styled code on several phones before printing it.

Leave a quiet zone. The blank border around a QR code is part of the code: scanners need at least four modules of white space on every side to find the finder patterns. This generator includes a margin in the downloaded image, so do not crop it off.

Test before you print. Scan the code with two or three different phones, in the lighting where it will be used, at the distance people will stand. A code that scans on your phone in bright office light may fail on an older phone in a dim restaurant.

Common Mistakes to Avoid

The biggest mistake is putting a QR code somewhere people cannot scan it: on a highway billboard, on a moving vehicle, on a TV screen that changes after three seconds, or at the bottom of an email — where the reader is already looking at a screen and would have to photograph their own device. A QR code is a bridge from the physical world to the digital one; it makes no sense where that bridge is not needed.

The second mistake is linking to a page that is not mobile-friendly. Almost everyone who scans a QR code is on a phone, so a desktop-only page, a PDF that downloads instead of opening, or a page that takes ten seconds to load wastes the scan. Test the destination on a phone, not just on your computer.

Finally, be careful about scanning codes you do not trust. A QR code can link anywhere, including to a phishing site or a malicious download, and the destination is not visible until you scan it. Most phones show the URL before opening it — check that it goes where you expect before tapping through, and never scan a code stuck over another code on a poster or a parking meter.

Advertisement

Frequently Asked Questions

Do QR codes expire?

No. A static QR code like the ones this tool makes stores its data in the pattern itself, so it works forever. Only dynamic QR codes, which route through a paid service that can redirect the link, can stop working if the subscription lapses.

How much text can a QR code hold?

Up to 2,953 characters of text in byte mode, or 4,296 digits, at the largest version with the lowest error correction. In practice, short URLs of 30 to 100 characters produce the most reliable codes.

How big should I print a QR code?

At least 2 cm (about 0.8 inches) across for a short URL scanned at arm's length. A good rule is that the scanning distance should be no more than about ten times the code's width.

Can I put a logo in the middle of a QR code?

Yes, if the code uses medium or higher error correction, which can recover data when up to 15 to 30 percent of the code is covered. Keep the logo small, centered, and covering only the middle, and always test the result on several phones.

Is it safe to scan a QR code I find in public?

Usually, but check the URL your phone shows before opening it. A QR code can link anywhere, and scammers sometimes paste fake codes over real ones on posters and parking meters. If the URL looks wrong, do not open it.