Skip to main content
QuickToolsWorld

Guide

How to Create a QR Code from a Link or Text

A practical guide to making a QR code for a website link or a short message: choosing the size and colors, testing it, and avoiding common mistakes.

By QuickToolsWorldPublished 8 min read

The short answer: paste your link or text into a QR code generator, generate the code, check that it scans with your phone, and download it as an image. For printing, choose a large image size, keep dark modules on a light background, and leave the blank margin around the code untouched.

That takes less than a minute. The rest of this guide covers the details that decide whether a code scans reliably in the real world: size, contrast, the quiet zone, and the difference between static and dynamic codes.

What a QR code is

A QR code (short for “Quick Response” code) is a square, two-dimensional barcode that a phone camera can read. It was invented in 1994 by Denso Wave, a Japanese company, to track car parts, and is now used everywhere from restaurant menus to event tickets. QR Code is a registered trademark of DENSO WAVE INCORPORATED.

Unlike a traditional barcode, which stores data in one direction, a QR code stores it both horizontally and vertically, so it can hold much more information in a small space.

How QR codes store information

A QR code is made of small black and white squares called modules. Three large squares in the corners, called finder patterns, let a scanner locate the code and work out its angle. The remaining modules encode your data, plus extra error-correction data.

Error correction lets a scanner rebuild the content even if part of the code is dirty, scratched or covered. There are four levels, which can recover roughly 7%, 15%, 25% or 30% of the code. The QuickToolsWorld generator uses the 15% level (called “M”), a common balance between reliability and size.

The more you encode, the more modules the code needs, and the denser it looks. A short URL makes a simple code with large modules. A long paragraph makes a dense code that needs to be printed bigger to scan well.

How to create a QR code from a link

  1. Copy the full address of the page from your browser’s address bar, including https://.
  2. Open the QR Code Generator and paste the address into the Text or URL box.
  3. Select Generate QR code. The preview appears on the right, or below on a phone.
  4. Scan the preview with your phone camera and make sure it opens the right page.

Including https:// matters. Without it, some scanners treat the content as plain text instead of a link, so people see the address but can’t tap to open it. The generator encodes exactly what you type and never rewrites or shortens your link.

How to create a QR code from plain text

A QR code doesn’t have to contain a link. You can encode any text, such as a short message, a product serial number or instructions. When someone scans it, their phone shows the text on screen.

To share a location, open the place in Google Maps or Apple Maps, use Share to copy its link, and turn that link into a QR code. For a PDF or other document, put the file somewhere with a public link, such as your website or a cloud storage share link, and encode the link. A QR code can’t hold the file itself.

Some special formats trigger actions on most phones. For example, mailto:hello@example.com starts a new email to that address, and tel:+15551234567 offers to call the number. Test these on the phones your audience is likely to use, because support varies.

The generator accepts up to 2,331 bytes, the most a QR code can hold at this error-correction level. Most letters take one byte, but accented letters, other alphabets and emoji take two to four bytes each. A live counter shows how much space you have used.

Downloading your QR code

When the code is ready, select Download PNG. The image is saved as qr-code.png. PNG is lossless, so the edges of every module stay sharp, which is exactly what scanners need. Avoid converting a QR code to JPEG, because JPEG compression can blur those edges.

If you change the text, size or colors after generating, the tool tells you the preview is out of date. Select Generate QR code again before downloading, so the file matches your settings.

Choosing the right size

The generator lets you choose an image size from 128 to 1024 pixels square. For screens, such as a slide or a web page, 256–512 pixels is usually enough. For print, choose a larger size so the code stays sharp when enlarged.

To estimate printed size, divide the pixel size by your printer’s resolution. At 300 dots per inch, a 512-pixel image prints sharply at about 4.3 cm (1.7 in) wide, and a 1024-pixel image at about 8.7 cm (3.4 in).

Scanning distance matters too. A widely used rule of thumb is that a code can be scanned from up to about ten times its width, so a 3 cm code works at arm’s length while a code on a poster across a room must be much larger. Treat this as a starting point, then test in the actual location.

Why contrast and the quiet zone matter

Scanners look for a clear difference between dark and light modules. Black on white is the most reliable combination. You can use brand colors, but keep the foreground dark and the background light. Many scanners fail on light codes on a dark background, and on pairs of colors with similar brightness, such as red on green. The generator warns you when your colors have low contrast or are inverted.

The quiet zone is the plain margin around the code. It separates the code from surrounding text and images, so the scanner can find its edges. The QR code standard recommends a quiet zone four modules wide, and the generator includes one automatically. When you place the code in a design, don’t crop this margin or put other graphics right up against it.

How to test a QR code before sharing it

  • Scan it with at least two different phones, ideally one iPhone and one Android device.
  • Check that the link opens the right page and that the page works well on a phone.
  • Print a test copy at the final size and scan it from the distance people will actually use.
  • Try it in the real lighting. Glossy surfaces and dim rooms can cause problems.
  • Recheck the code after any design changes, such as new colors or a different size.

Static versus dynamic QR codes

A static QR code stores your content directly in its pattern. It works without any service in between, never expires, and can’t be changed after it’s printed. The QuickToolsWorld generator creates static codes only.

A dynamic QR code stores a short link to a redirect service. The service sends people on to the real destination, which you can change later, and it can count scans. The trade-off is dependence: if the service shuts down or the subscription lapses, every printed code may stop working.

If you might need to change the destination later, a simple alternative is to encode a page on your own website. You can then update that page, or redirect it, whenever you like.

Privacy and safety

Anyone who scans a QR code can read its content, so never put passwords, private notes or other secrets in one. A static code also has no expiry, so anything you print stays readable for as long as the paper survives.

QR codes are also used in phishing scams, sometimes called “quishing”. Criminals stick fake codes over real ones on parking meters or posters, or send them in emails. Before opening a scanned link, check the address your phone shows, and be cautious of any page that asks for passwords or payment details. To learn more about recognizing phishing, see CISA’s guide to phishing.

On the creation side, the QuickToolsWorld generator runs in your browser. The text you enter isn’t uploaded, and the codes contain no tracking.

Common mistakes

  • Not testing before printing. A single typo in a URL means hundreds of useless flyers.
  • Printing too small. Dense codes need more space. Shorten the content or print larger.
  • Low contrast or inverted colors. Pale codes, or light codes on dark backgrounds, often fail.
  • Cropping the margin. Without its quiet zone, a code can be hard for scanners to detect.
  • Linking to a page that may move. If the page is deleted or renamed, a static code breaks.
  • Saving as JPEG or stretching the image. Keep the PNG and scale it evenly, without distortion.

Frequently asked questions

Do QR codes expire?

Static QR codes don’t expire. They keep working as long as the content they contain is still valid, for example as long as the linked web page exists. Dynamic codes can stop working if the redirect service ends.

Can I change where my QR code points after printing it?

Not with a static code. The content is part of the pattern itself. To change the destination, generate a new code, or link to a page on your own site that you can redirect.

Can I track how many people scan my QR code?

Not with a static code, because no server is involved when it is scanned. You can still measure visits to the linked page with your own website analytics, for example by adding campaign parameters to the URL before generating the code.

Is it free to use QR codes commercially?

The codes you create with the QuickToolsWorld generator are free to use, including on printed materials. Denso Wave has said it does not exercise its patent rights for standard QR codes. If you use the name “QR Code” in your own products, follow its trademark guidance.

Why won’t my QR code scan?

The most common causes are low contrast, inverted colors, a cropped margin, printing too small for the scanning distance, or blurring from enlargement or JPEG compression. Regenerate with default colors and a larger size, then test again.

Summary

Creating a QR code is quick. Making one that works every time takes a little care: encode the exact URL with https://, choose a size suited to where it will appear, keep dark modules on a light background with an intact quiet zone, and test it on real phones. Ready to make yours? Open the QR Code Generator.

All articles