A sample QR code is a code with known content: you know what it should do before you scan it, so you can tell at once whether the scanner, the app or the print got it right.

Below: what each sample holds, how the random button works, how to run a quick scanner test, and how to use a sample as a placeholder in a mockup. To make a code with your own content, start from the QR code generator.

Sample QR codes for every type

Each code holds sample data reserved for examples: the example.com website, a test@example.com address and a 555-0142 phone number, a range kept for fiction in North America. Here is what a working scanner should do with each one.

TypeWhat the code holdsWhat the scan should do
Linkhttps://example.com/Show the address, then open the page
Wi-FiThe network QRQuill-Test and a passwordOffer to join the network
Contact (vCard)Alex Sample, a phone and an emailOffer to save a new contact
TextA short sentenceShow the text on screen
Emailtest@example.com with a subjectOpen a new email draft
SMSA 555-0142 number and a messageOpen a text message draft
PhoneA 555-0142 numberOffer to call the number
LocationA point in downtown MontrealOpen a map at that point

The Wi-Fi sample cannot connect, since no network by that name is near you: the test passes when the phone offers to join. For the screens behind each type, see the QR code types.

A printed sheet of nine sample QR codes on a wooden desk, next to a phone

The random QR code button

Press Random code and the gallery draws a new code that holds a random test string, such as QRQuill test 7F3K-29QA. No two presses give the same pattern, which helps when an app needs a code it has never seen, or when you want to check that a scanner reads a new code instead of a saved one.

The code is made in your browser and saved nowhere. A random code holds text, not a link, so a scan only shows the string: nothing opens.

How to test a QR code scanner with sample codes

  1. Open the camera

    On iPhone or Android, open the Camera app and point it at the Link sample. No app is needed.

  2. Check the preview

    The phone should show example.com before it opens anything. Tap to open it.

  3. Try the other types

    Scan the Wi-Fi, Contact and Text samples and compare each result with the table.

  4. Test from a distance

    Step back until the scan stops working. That tells you the range of the camera and the size your codes need.

A phone that reads nothing at all may need the scanner turned on: see how to scan a QR code.

Test a print proof before the full run

Download a sample as an SVG, place it at the size you plan to use and print one proof on the real paper. If the sample scans from the distance people will stand at, your own code will too, as long as it holds about as much data. A link of the same length is the fairest test.

Test with two phones, one recent and one older, and under the light the code will hang in. Our guide to static and dynamic QR codes explains why a printed static code keeps working for good.

Cut-out QR code test stickers on a green cutting mat, a phone on a stand behind them

Placeholder QR codes for mockups and templates

Designers often need a dummy QR code for a flyer, a menu or a business card before the real link exists. The Link sample is a safe placeholder: example.com is reserved for examples, so a stray scan of a proof lands on a blank page and never on someone else’s business.

  • Keep the placeholder at the final size, so the layout does not move later.
  • Mark the proof clearly, for example Sample code, replace before print.
  • Swap in the real code before the files go to the printer, then scan the final proof.

QR code examples with a call to action

A code with a few words next to it gets more scans than a bare one, because people know what they will get. Some short examples that work:

Questions about sample QR codes

A code that will not scan or a type you are missing? We answer every message.

Ask a question
Printed sample QR code stickers on a cutting mat, cut out and ready for a scan test

What is a sample QR code?

It is a QR code with known test content, such as a link to example.com or a short sentence. Because you know what it should do, you can check at once whether a phone, a scanner app or a printed proof reads it correctly. The samples on this page are free to scan, download and print.

Is there a QR code I can use as a placeholder?

Yes. Use the Link sample: it opens example.com, a domain reserved for examples, so a stray scan of a proof reaches no real business. Download it as an SVG, place it at the final size in your layout, and swap in the real code before the files go to the printer.

How do I check that my phone can scan QR codes?

Open the Camera app and point it at the Link sample on this page. A working phone shows example.com within a second or two. If nothing happens, turn on code scanning in the camera settings, or scan with Google Lens on Android. Our guide to scanning QR codes covers each phone.

Are the random QR codes safe to scan?

Yes. A random code holds a short test string such as QRQuill test 7F3K-29QA, not a link, so scanning it only shows the text on screen. Nothing opens and nothing is sent. The code is drawn in your browser and is not stored anywhere, so each press gives a new one.

Can I use these sample codes in my own work?

Yes, they are free to use in mockups, templates, slides, tutorials and app tests, with no credit needed. They hold only example data, so they are fine to publish. For a code that leads to your own page, make one with the free generator instead and download it as a PNG or SVG.