QR Code Generator

ToolGenerators · updated 17 September 2026

What to encode
Colours

Building your own code needs JavaScript. The example below is ready to scan.

A QR code holds your text itself, encoded with enough redundancy that a camera can still read it through a scratch, a fold or a coffee stain.

Four things go in here. A link is the common case and the shortest: fewer characters mean a sparser, more forgiving code. Text is the same thing without a protocol, useful for a serial number or a note. Wi-Fi encodes the network name and password in a format phones understand as a connection offer rather than a string. A contact card carries a vCard, so one scan fills in a name, a phone and an email.

The code below is live: it already encodes the default values, and it is rendered on the server, so it is there before any JavaScript runs and it scans exactly as it looks. Change a field and it rebuilds as you type.

Two settings deserve a word. Error correction buys damage tolerance with space — more redundancy, bigger symbol. A logo covers the middle of the code, which is only survivable because the maximum correction level can reconstruct what the logo hides; that is why choosing one locks the level.

The file holds exactly what the screen shows — same colours, same logo, same correction level, one image built once. SVG stays sharp at any size and is what a printer wants. PNG is what a chat window wants.

Questions

Does my text get uploaded anywhere?
No. The code is built by JavaScript on this page, in your browser. Nothing you type is sent to a server, which also means a Wi-Fi password or a phone number never leaves your device.
What does error correction change?
It decides how much of the code can be dirty, torn or covered before it stops reading. The redundancy costs space, so a higher level makes the same text produce a bigger, denser code. Maximum recovers about 30% of the symbol, which is why a logo in the middle forces it.
Why did my code suddenly get denser?
Because the text grew past what the current version could hold, so the symbol stepped up to a larger one. QR codes come in fixed sizes, from 21x21 modules up to 177x177, and each step adds capacity. Shorten the text and the code steps back down.
Will the code still work if I print it small?
Up to a point. A scanner needs several camera pixels per module, so a dense code printed small stops resolving. Keep the quiet zone — the empty margin around the symbol — and test a print before ordering a thousand of them.

Sources and date checked