Skip to content
🎲

Random QR Code Generator

Make random and sample QR codes for testing scanners, design mockups and print checks. Every sample is safe to scan, and downloads are free in PNG and SVG.

Built by Toolsque Team · last updated October 13, 2026 · checked against our testing process

What should the sample code hold?
This code contains
Six more to pick from

Every sample is safe to print: links go to example.com, a domain reserved for examples that will never belong to anyone, phone numbers use the fictional 555-01xx range, and emails use example.com. Nothing is uploaded; the codes are made in your browser.

How to make a random or sample QR code

  1. Pick what it should hold. Random text or a random number for testing, or a sample link, WiFi login, phone, email or contact card for a mockup.
  2. Press New random code until you like it, or pick one of the six below the main code.
  3. Check the content. The box under the code shows exactly what it holds.
  4. Download it. PNG for screens and documents, SVG for anything going to print, since it stays sharp at any size.

What a sample QR code is for

A sample QR code is a real, working code that holds harmless placeholder content. People reach for one in a handful of situations, and they all come down to needing a code that scans without it mattering what it says:

  • Testing a scanner or an app. If you are building or checking a QR reader, you need codes of every type to throw at it: plain text, a link, a WiFi login, a phone number, a contact card.
  • Design mockups. A menu, poster, label or business card design needs a code in the layout long before the real link exists.
  • Printing tests. Before printing a thousand stickers, print one sample at the size you plan to use and check it scans from the distance people will stand.
  • Teaching. Showing a class or a team how QR codes work is easier with codes that are safe for anyone to scan.

Pick a type above, press New random code until you like the look, and download it as a PNG for screens or an SVG for print.

Why every sample here points somewhere harmless

The most common mistake with placeholder QR codes is filling them with something that looks fake but is real. A made-up link can belong to a stranger, and a printed mockup tends to travel further than anyone planned: it ends up on a proof sheet, in a pitch deck or on a sign that never got its real code swapped in.

So every sample this tool makes uses addresses that are set aside for exactly this purpose:

  • Links go to example.com, a domain reserved by the internet standards body for documentation and examples. Nobody can ever register it.
  • Phone numbers use the 555-0100 to 555-0199 range, which is reserved for fictional use in North America and connects to no one.
  • Email addresses also use example.com, so a test message goes nowhere.
  • WiFi samples name a network that does not exist, so a phone that scans one simply fails to join.

When the real content is ready, make the final code with the QR code generator and drop it into the same spot in your design.

QR code examples by type, and what each one holds

Every QR code is just text in a pattern. What changes between types is the format of that text, which tells the phone what to do with it. These are the formats the samples above use:

  • Plain text holds the words as they are. A phone shows them and does nothing else.
  • A link holds a full address starting https://. The phone offers to open it.
  • WiFi holds a line like WIFI:T:WPA;S:network;P:password;;. The phone offers to join that network. The WiFi QR code generator makes real ones for your own network.
  • Phone holds tel: followed by the number. The phone offers to dial it.
  • Email holds mailto: followed by the address. The phone opens a new message.
  • Contact holds a vCard, a short block starting BEGIN:VCARD with a name, number and email. The phone offers to save it. For a real one, use the contact QR code generator.

The more a code holds, the denser its pattern. A random number makes a sparse, chunky code; a contact card makes a busy one. That difference matters when you print small, which is one reason to test the actual type you will use rather than any code at all.

Random or sample: which one do you need?

Random text and random numbers are best for testing. Each press gives a different code, so you can check that a scanner reads every one rather than just one familiar pattern, and you can tell results apart.

Sample links, WiFi, phone, email and contact are best for mockups and demonstrations, because they behave like the real thing when scanned: a phone recognizes the type and offers the matching action.

How to test a printed QR code properly

Print the sample at the exact size it will appear, then scan it with two different phones from the distance people will actually stand. A rough rule is that a code needs to be about one tenth as wide as the scanning distance, so a code read from a metre away wants to be around 10 cm across.

If it struggles, the usual causes are too small a print, low contrast, a glossy surface catching light, or too little white space around the edge. The QR code not scanning guide covers each of these. To check what a code really contains before you trust it, run it through the QR code scanner, which shows the content and where any link goes.

Frequently Asked Questions

Is it safe to scan these sample QR codes?

Yes. Links go to example.com, a domain reserved for examples that nobody can own, phone numbers use the fictional 555-01xx range, and emails use example.com. Scanning one cannot send you to a real website, call a real person or reach a real inbox.

Can I use these codes in my own designs?

Yes, freely, including commercial mockups and printed proofs. They are placeholders, so remember to swap in your real code before the final print run.

Do the sample codes expire?

No. They are static codes, meaning the content is stored in the pattern itself, so they keep working as long as the image exists. Nothing depends on a server or an account.

Why does the contact sample look so much busier than the number?

A QR code grows denser as it holds more text. A contact card carries a name, phone and email in a structured format, so it needs many more squares than a twelve digit number. Test the type you will really use, at the size you will print it.

Is anything I make here uploaded or stored?

No. The codes are generated in your browser and the downloads are created on your device. Nothing is sent to a server.

What is the best way to test whether a printed QR code scans?

Print it at its real size and scan it with two different phones from the distance people will actually stand. As a rule of thumb, make the code about one tenth as wide as the scanning distance.