Skip to content

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.

Put these numbers to work

QR codes, random numbers, names, teams and a wheel spinner.

Read next