QR Code Generator
Published Updated
Turn a link or any text into a static QR code, set colours, size and error correction, and save it as PNG or SVG.
A static code: what you type is what is stored
This generator writes your text straight into the QR symbol with the open-source qrcode library (version 1.5.4). Nothing goes through a short link, so there is nothing to sign up for, no expiry date and no scan tracking. If you need to change the destination later, encode a link to a page you control and change that page.
How text length changes the code
Measured with the same library the tool uses. A QR code grows from version 1 (21 x 21 modules) to version 40 (177 x 177), four modules per side per version, as Denso Wave explains. At 300 pixels with the 4-module margin, fewer modules mean bigger dots:
| Content | Level | Version | Modules | PNG at the default 300 (pixels per module) |
|---|---|---|---|---|
| https://www.goconvertfiles.com (30 characters) | M | 3 | 29 x 29 | 296 px (8) |
| Same link | H | 4 | 33 x 33 | 287 px (7) |
| Wi-Fi login string (46 characters) | M | 4 | 33 x 33 | 287 px (7) |
| Shop link with tracking parameters (81 characters) | M | 5 | 37 x 37 | 315 px (7) |
| Same link | H | 8 | 49 x 49 | 285 px (5) |
Long tracking parameters make the dots smaller. The short link at level H still has bigger dots than the long link at level M.
Error correction levels
The share of the code that can be damaged and still read, as listed in the tool's menu. Denso Wave recommends Q or H in dirty environments and calls M the most common choice.
| Level | Recovers about | Most letters it holds |
|---|---|---|
| L | 7% | 2,953 |
| M (default) | 15% | 2,331 |
| Q | 25% | 1,663 |
| H | 30% | 1,273 |
Read back with a decoder: text, colors and margin
We built symbols with the same library the tool uses (qrcode 1.5.4), drew them as pixels in Node 22.23.1 and read them back with the open-source jsQR decoder (version 1.4.0). This is one decoder, not a phone camera or a scanner app, so a phone may do better or worse.
Every text we tried was read back as the same text at all four error correction levels, unless the text did not fit: the short link, an 81-character shop link, a Wi-Fi string, a Hebrew sentence, a line with accents, emoji and Japanese, and 1,000 characters of letters (version 22 at level L up to version 36 at H). A 2,000-character text fit at L (version 32) and M (version 37), and at Q and H the library refused it with “The amount of data is too big to be stored in a QR Code”, which the page shows as the error message.
| Colors (symbol on background) | Contrast ratio | Read by jsQR |
|---|---|---|
| Black on white | 21.0 : 1 | Yes |
| Dark grey #333333 on white | 12.6 : 1 | Yes |
| Navy #1a1a6e on lavender #e6e6fa | 12.0 : 1 | Yes |
| Blue on yellow | 8.0 : 1 | Yes |
| Mid grey #777777 on white | 4.5 : 1 | Yes |
| Red on white | 4.0 : 1 | Yes |
| Light grey #aaaaaa on white | 2.3 : 1 | No |
| Very light grey #cccccc on white | 1.6 : 1 | No |
| Green on red | 1.3 : 1 | No |
| Yellow on white | 1.1 : 1 | No |
| White on yellow | 1.1 : 1 | No |
| White on black (light symbol, dark background) | 21.0 : 1 | Yes with jsQR's default; No when its inversion check was switched off |
In this test the pairs with a contrast ratio of 4.0 or more were read and the pairs at 2.3 or lower were not. We did not test ratios between 2.3 and 4.0. Light symbols on a dark background were read only because jsQR tries an inverted image by default, and many scanners do not, so the usual dark-on-light order is the safer choice.
Margin matters when the code sits on a dark page. With the symbol on a #222222 background, margin 0 was not read, and margins 1, 2 and the default 4 were. The 4-module margin is the width the tool starts with.
How much damage the error correction takes
To see what the levels mean in practice, we covered a centred square of a 54-character link with the background color and increased its side in 1 percent steps until jsQR failed. Larger levels use a bigger symbol for the same text (version 4 at L and M, 5 at Q, 6 at H), so the figures include that. A hidden square is only one kind of damage; scratches or glare can behave differently.
| Level | Largest hidden square that still read | Share of the symbol's area |
|---|---|---|
| L | 24 percent of the side | 5.8 percent |
| M | 30 percent of the side | 9.0 percent |
| Q | 43 percent of the side | 18.5 percent |
| H | 44 percent of the side | 19.4 percent |
The levels are listed as 7, 15, 25 and 30 percent of the codewords. The hidden square is a different measure from the percentage of codewords in the menu, so the two sets of figures do not line up. Treat the table as one reading with one decoder, not as a promise about any code on a printed page. A logo in the middle should be small even at level H.
Making a QR code
Step 1
Type a link or any text
The code redraws as you type. Up to 2,331 plain letters fit at the default error correction level.
Step 2
Adjust the look
Pick colours, error correction (L, M, Q or H), a size of 100 to 1,000 pixels and a margin of 0 to 4 modules.
Step 3
Download or copy
Save a PNG close to the chosen size, with every module a whole number of pixels, an SVG that scales without blur, or copy the SVG code.
Ready-made formats
For common jobs the site has generators that build the exact text format phones expect:
- Wi-Fi QR Code Generator for network logins.
- vCard QR Code Generator for contact cards.
- Bulk QR Code Generator for many codes from a list.
- QR Code Scanner to test a code with your camera or an image.
QR code questions
Will my QR code expire?
No. The text you type is stored in the code itself, with no redirect through another service, so it works as long as the link or text it contains is still valid. The flip side: it cannot be edited after printing, and scans cannot be counted.
Which error correction level should I choose?
M, the default, suits most uses, and Denso Wave, the company that created QR Code, calls it the most frequently selected level. Choose Q or H for codes that may get dirty or scuffed, and L for long text on a clean surface. Higher levels make the code denser.
How much text can a QR code hold?
With this tool's library, up to 2,953 letters at level L, 2,331 at M, 1,663 at Q and 1,273 at H, or 7,089 digits at level L. Past that you get the message that the data is too big. Shorter text gives a coarser code with bigger dots.
Should I keep the white margin?
Yes. Denso Wave's guidance asks for a clear margin four modules wide on every side, which is the default here. Set it to 0 only if the code will sit on a plain light background with space around it anyway.
PNG or SVG?
SVG for print and anything that will be scaled, because it stays sharp at any size. PNG for websites, documents and messaging apps. The PNG is the size nearest to the slider value at which every module gets the same whole number of pixels, and the line under the slider shows it: at 300 a version-3 code is 296 x 296 pixels.
Can I use colours?
Yes, but keep a dark code on a light background with strong contrast, and scan the result with a couple of phones before printing. The tool does not check contrast for you.
Can I use light colors for the code?
Keep the symbol clearly darker than the background. In our test with the jsQR decoder, symbol and background with a contrast ratio of 4.0 or more were read and a ratio of 2.3 or lower was not. We did not scan the codes with a phone.
Can I put the code on a dark background or invert the colors?
Some readers handle a light code on a dark background and some do not. jsQR read the inverted code only because its default tries an inverted image too; with that switched off it did not. A dark code on a light background is the common arrangement.
What happens when my text is too long?
The page shows the message from the library: The amount of data is too big to be stored in a QR Code. The limit for letters and punctuation was 2,953 characters at level L, 2,331 at M, 1,663 at Q and 1,273 at H, and 7,089 digits at level L.
Is the same code made every time for the same text?
In our test two builds of the same text and level gave identical modules.