Random QR Code Generator

Type a URL or message and get a scannable QR code. Leave the box empty for a ready-made test code.

The Random QR Code Generator turns whatever you type into a QR code, drawn in the browser the moment you press the button. Paste a URL, a Wi-Fi string, a phone number or a plain sentence and you get a 300-pixel code (200 pixels on phones) that any camera app can scan. Leave the box empty and it produces a placeholder code pointing at this site, which is the "random" part: a valid, scannable code you can use to test a scanner, a form or a print layout without deciding on content first.

How it works

There is one input. Whatever text is in it becomes the payload of the QR code. The code is rendered client-side by a standard QR library, so nothing you type is sent to a server or saved anywhere; close the tab and it is gone. Press the button again after editing the text to redraw. Leading and trailing spaces are trimmed, so a box containing only spaces counts as empty and gives you the placeholder code.

There is no colour, logo or size picker, and no download button. To keep the image, take a screenshot or right-click the code and save it. For most testing and quick-share jobs that is enough; if you need a branded code with a logo, this is not the tool.

What scanners will do with different payloads

A QR code is just text, but phone cameras react differently depending on what the text looks like:

Payload you typeWhat a phone does when scanned
https://example.com/pageOffers to open the link in the browser
Plain words, e.g. "Table 12"Shows the text; usually offers copy or search
tel:+15551234567Offers to dial the number
mailto:[email protected]Opens a new email to that address
WIFI:T:WPA;S:NetworkName;P:password;;Offers to join the Wi-Fi network
SMSTO:+15551234567:HiOpens a text message pre-filled

Keep payloads short. A QR code grows denser as the text gets longer; under about 100 characters scans reliably even from a small print, while several hundred characters produce a fine grid that needs a good camera and a large print.

Ways people use it

  • Testing a scanner or check-in app. Generate a code with a known value like "TEST-001", scan it, and confirm the app reads exactly that string. Pair it with the Random String Generator or Random Code Generator when you need many distinct test values.
  • Sharing a link across the room. Put a URL in, show your screen, and let people scan instead of typing.
  • Placeholder codes for a mock-up. Designers laying out a poster or menu need a real-looking code before the final link exists. The empty-box placeholder does that.
  • Classroom and scavenger hunts. Each clue becomes a code; print a batch by generating and screenshotting one at a time.
  • Test data with other fake records. Encode a made-up address from the Random Email Generator or a device value from the Random MAC Address Generator to build end-to-end test fixtures. More of that kind of tool is under all developer & test data tools.

Frequently asked questions

Is anything I type stored or sent anywhere?

No. The code is drawn in your browser by a JavaScript library. The text never leaves your device and there is no history, account or log.

How do I download the QR code?

There is no download button. Right-click the code and choose save image, or take a screenshot. The image is a plain black-and-white code with no border, so it crops cleanly.

What does the code contain if I leave the text box empty?

A fixed placeholder link to this site's homepage. It exists so you can test a scanner or fill a mock-up without inventing content. Type anything to replace it.

Is there a limit to how much text I can encode?

QR codes top out around 4,000 alphanumeric characters, but long payloads make a dense grid that is hard to scan. Keep it under a couple of hundred characters, and use a short URL rather than a long one.