Generators · Guide
QR Code Generator Guide: Sizes, Colors and Best Practices
QR codes have become the default bridge between the physical and digital worlds — on menus, packaging, business cards and posters. Generating one is easy, but making it reliably scannable is about the details: enough size, enough contrast, and the right data. This guide covers what actually determines whether a QR code works in the real world.
In this guide
How QR codes work
A QR code is a grid of black and white squares encoding your data. The three large squares in the corners help the scanner find and orient the code. More data produces a denser grid, which needs more physical size to scan at distance.
Choosing size and colors
Size is about where the code will be viewed: a code on a poster needs far more pixels than one on a screen, and print needs extra quiet space around the code. Dark-on-light is the golden rule for colors — a high-contrast code scans instantly, while low contrast or busy backgrounds are the most common reason scans fail.
Testing before you print
Always scan a new QR code with a phone before mass-producing it. Test at the smallest size and greatest distance it will realistically be used from, and check that the data is correct — a typo in a URL is locked into every printed code. Correcting it means reprinting.
Key takeaways
- QR codes encode data in a grid of squares.
- Bigger surfaces and distances need bigger codes.
- High contrast — dark on light — scans best.
- Always test a new code before printing it.
Frequently asked questions
What is the best QR code size?
There is no universal size — match it to viewing distance. On-screen codes work around 200–400px; print needs to be sized for how far people will scan from.
Can QR codes use colored designs?
Yes, as long as contrast stays high — dark colors on a light background. Avoid light colors on light backgrounds or busy patterns behind the code.
How much data can a QR code hold?
A QR code can hold up to about 4,000 characters, but shorter data — like a single URL — keeps the code simpler and easier to scan at small sizes.
The numbers behind this guide
Every figure in this guide comes from a real calculator, not an illustration. Below is exactly what that calculator measures, which inputs it accepts, and what it returns — so you can reproduce any number you read here.
What the calculator measures
Every input below changes the result in a specific way. This is what each one expects, what it starts at, and the range it accepts.
- Text or URL
Text that you supply. The calculator works on exactly what you type.
- Size (px)
A plain number. Enter digits only, with no symbols or separators.
Starts at: A plain number. Enter digits only, with no symbols or separators.
Accepted range: 120 to 1000
- Foreground color
Text that you supply. The calculator works on exactly what you type.
How to read your result
The calculator reports the figures below. The headline figure answers the question in the title; the rows underneath break it down so you can see what drives it.
- QR code
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Size
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Characters
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Data
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Format
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
- Error correction
- This figure updates as you change the inputs above. It is a direct output of the formula, not an estimate of future market or lender outcomes.
A QR code is a square of black-and-white modules a phone camera can read in a fraction of a second. It can hold a URL, plain text, Wi-Fi credentials or contact details.
Put these numbers to work
QR codes, random numbers, names, teams and a wheel spinner.
QR Code Generator
Create a downloadable QR code for any URL or text, with colors and size.
Password Generator
Create strong, random passwords with adjustable length and character sets.
Lorem Ipsum Generator
Generate placeholder paragraphs, sentences or words for mockups.
Wheel Spinner
Spin a customizable wheel to make a fair random decision.