How-to GuidePublished Updated 8 min read

How to Make a QR Code: Create One from a URL or Text for Free

Flyers, business cards, store displays, links to documents: there are more and more reasons to make a QR code, and just as many cases of “I made one but it won’t scan”. This guide covers how to create a QR code and the conditions that make it scan reliably.

What you can put in a QR code

A QR code is simply a container for a string of text. If the content is a URL, a smartphone camera treats it as a link; otherwise, it is shown as text. Typical uses include:

  • URLs of websites and social media accounts
  • URLs of contact or survey forms
  • Location links for map apps (store directions and similar)
  • Short messages or text such as campaign codes
  • Links to pages where documents or manuals can be downloaded

How to create a QR code in your browser

  1. 1

    Enter a URL or text

    For a URL, enter the complete address starting with https://. If you leave out the scheme, some scanners may not treat it as a link.

  2. 2

    Adjust the size and colors

    Choose a size that fits where it will appear. If you change colors, the rule is a dark code on a light background.

  3. 3

    Download it as a PNG image

    You can save the generated QR code as is. Paste it into your document or flyer files.

  4. 4

    Test it on real devices

    Once it is created, always scan it with both an iPhone and an Android phone. For printed materials, test the printed paper as well.

4 conditions for a QR code that scans

QR codes that fail to scan usually share the same causes. Following these four points eliminates almost all failures.

  • Keep a margin (quiet zone): the code needs a blank margin of about 4 modules around it. Squeezing it right up to other design elements lowers the scan rate.
  • Use strong light/dark contrast: make the code a dark color and the background a light one. Avoid pairs of pale colors or placing the code directly on top of a photo.
  • Don’t invert it: “inverted” codes with a dark background and a light code cannot be read by some devices.
  • Keep the aspect ratio when resizing: a horizontally squashed QR code will not scan. Cropping off the edge of the code is fatal too.

What is the error correction level?

QR codes have built-in error correction so they can still be read when part of the code is dirty or missing. There are four levels; the higher the share that can be recovered, the denser the code becomes.

LevelApprox. data recoverableBest for
LAbout 7%Screens and other places where dirt is not a concern
MAbout 15%General use. The standard choice
QAbout 25%Outdoor signs and other places that get dirty
HAbout 30%Codes with a logo on top, industrial use

This site’s QR code generator uses level M (about 15%), a well-balanced choice in practice. It works fine for both on-screen and printed everyday use.

Things to watch out for in practice

  • Don’t change the destination URL. If you change it after handing out printed materials, the QR code is dead
  • Make sure the destination page works on smartphones. A desktop-only page makes people leave
  • If you use a URL shortener, consider the risk of the link breaking when the service shuts down
  • Always test on real devices before distributing, and never skip checking the printed paper

“QR Code” is a registered trademark of DENSO WAVE INCORPORATED. The specification is public and anyone may create and use the codes freely, but it is good practice to credit the trademark when you mention it in commercial materials.

Decide what to encode for each use

Whether a QR code succeeds depends more on what you put in it than on its design. Decide what you want people to do first after scanning, then choose the text to encode.

GoalWhat to encodeNotes
Send people to a document or siteThe page URLCheck first that it displays well on smartphones
Let people join your Wi-FiA Wi-Fi connection stringNo need to read out the network name and password
Share contact detailsText in vCard formatIt holds a lot of data, so print the code larger
Get social media followsYour profile page URLIf you have several accounts, prepare one page that links them all

Steps for posting guest Wi-Fi are in how to make a Wi-Fi QR code, and sharing contact details on business cards or at events is covered in how to make a contact QR code.

Final checks before printing

  1. 1

    Scan it on two or more devices on screen

    The default iPhone and Android cameras behave differently. Try each device you have on hand, one by one.

  2. 2

    Do a test print at actual size

    A code that scans on screen may be too dense at the actual print size. Print one copy on the same paper and at the same size as the final piece and check it.

  3. 3

    Switch the link to the final version

    Sending a design to print with a test URL still in it is a common mistake. Scan it and confirm with your own eyes that the page that opens is the public version.

  4. 4

    Check whether you can change it after distribution

    If you might change the destination after printing, route the code through a redirect URL that you control.

FAQ

Can I create a QR code for free?
Yes. This site’s QR code generator creates QR codes from URLs or text for free with no sign-up, and you can download them as PNG files.
Can I put non-English text, such as Chinese or Korean, in a QR code?
Yes, text in other languages is supported. However, more characters make the code denser, so for long text we recommend linking to a URL instead.
Can I use the QR codes I create commercially?
You can use the generated QR code images on flyers, business cards, store displays, and so on. The QR code standard itself is public, and no permission is needed to create or use the codes.
My QR code won’t scan. What is the cause?
The four most common causes are not enough margin around the code, not enough contrast, inverted colors, and a print size that is too small. First leave a margin of 4 modules around the code and go back to a dark code on a light background, then try again.
Do the QR codes I create expire?
The code itself never expires. It stops working when the destination page is removed or when a URL shortening service shuts down. If you might change the destination after distributing it, route it through a URL you control so you can swap the destination.
Will it still scan if I put a logo on it?
If you place a logo in the center, keep it within about 10% of the code’s area and generate the code with a high error correction level. Always test it on real devices after adding the logo.
What format can I save the QR code in?
You can download it in PNG format. When placing it in printed materials, use it without shrinking and do not trim the margin around it.

Tools in this article

Related articles

How-to Guide14 min read

How to Do a Traffic Count: Vehicle Classes, 15-Minute Tally Sheets, and Heavy Vehicle Percentage

“How many vehicles use this road per hour?” “When is the morning peak?” “How many trucks are in the mix?” Traffic counts are used for road planning, choosing store locations, student research projects, and neighborhood school-route safety work. But when you try one yourself, it is easy to get stuck on how to classify vehicles, where to count, how to build a 15-minute table, and how to calculate the peak hour and heavy vehicle percentage. This guide walks through preparation, counting on the day, building the tally sheet, calculating the peak hour, heavy vehicle percentage, and passenger car equivalents, running a pedestrian count, and recording on a phone tally counter and exporting to CSV, all with worked numbers.

Read article →
How-to Guide10 min read

How to Find the BPM of a Song: Tap Tempo Tips and Telling Double-Time from Half-Time

Transcribing by ear, practicing a dance, mixing as a DJ, cutting a video to the beat, setting a delay: all of these start with knowing the song’s tempo (BPM). But when you tap along a few times, the number changes every time, or the result comes out as double or half the real value. This guide covers what BPM means, how to keep tap-tempo error small, how to count with a clock, how to check with a DAW or app, how to tell double-time from half-time, and typical BPM ranges by genre and by tempo marking.

Read article →
How-to Guide10 min read

How to Test for Stick Drift: Check PS5, Switch, and Xbox Controllers with Numbers

Your character slowly starts walking on its own, or the camera keeps turning. When that happens, stick drift is the first suspect. But just by watching, it is hard to tell whether you are imagining it, whether it is a game setting, or whether the controller is actually faulty. This guide shows how to read your stick values in a browser and confirm drift with numbers, what the 0.05, 0.10, and 0.20 thresholds mean, how to read the drift direction and jitter, what to do if the controller is not detected, and how to use your results when asking for a repair.

Read article →