White code, black background

Inverted codes look sharp on dark packaging, black menus, and evening-lit counters. They also behave differently under a phone camera — here is what to watch.

Your QR code is generated in your browser — nothing you type or customize is uploaded or stored.

Black background codeStatic QR code, error correction level Q, 33 by 33 modules. Generated in your browser.

Black background code

Generated on this page with the same encoder. Scan it if you want to check the colors hold up.

A missing scheme is filled in as https://. Only http and https links are accepted.

Style

Dot color
Background color
Dot shape
Corner shape

Adding a logo below automatically raises this to High.

PNG, JPEG, or SVG up to 512 KB. The file is read in your browser and never uploaded. Error correction is raised to High so the code still scans.

Shown under the code in the preview and in both downloads. Keep it short — it prints small. The QR content is unchanged.

Black background code style code

What you can do with the code now

  • Static or dynamic?The code above is static — your address is baked into the squares. If that link ever changes, the only fix is a new print run.
  • Match your brandColors, dot shapes and a center logo: what still scans reliably on paper and what does not.

Something wrong?Report it— opens your mail app with the page path and browser details pre-filled. Nothing you typed into the generator is included.

  • In your browser
  • Never uploaded
  • No account

Before you print

  • Scan it first — open the exported PNG on your phone and check it reads before sending anything to a printer.
  • Keep the white margin — the quiet zone around the code is what a camera needs to lock on. Cropping it is the most common reason a printed code fails.
  • Dark on light reads best — inverted colors look stylish on screen but older phone cameras struggle with them on paper.

Print size at a glance

  • 2 cmSticker, business card, table tent
  • 4 cmFlyer, menu insert, small poster
  • 8 cmWall sign, door plate

How inverted codes actually scan

Most phone scanners read a light code on a dark background, but they do it by inverting the image first. That extra step is why a black-background code sometimes feels slower than a normal one. In practice it works on current iOS and Android cameras with the code filling a decent share of the frame; the failures cluster in two groups — dim environments and codes that are simply too small on screen.

The contrast is not the issue. White on a near-black #0F172A is the highest-contrast pairing available at roughly 18:1 — the same 18:1 maximum theW3C contrast testtops out at for visible text — well past anything a scanner needs. Size is the issue, and so is glare: a glossy dark card reflects the room straight back and erases the module edges.

Set the inversion in three steps

Pick the payload first. The module count is fixed by the data, and the inversion does not change it — a long URL needs the same print size whether it is black on white or white on black. Then choose the dark background and set the module color to white. Finally, check the surface you are printing on before you commit: matte always beats glossy for a dark card.

Four rules that make it reliable

Print it big. Treat 2 cm as the floor for an inverted code rather than the exception — that is 2 cm for a normal code. At 3 cm and up, the difference disappears in practice. Use matte surfaces. Dark glossy stock is the single most common reason a black-background code fails. Give it contrast around it. A white border of a few millimetres around the dark block stops the camera from losing the edge against a dark table. Test on the actual phone. Ask whoever will scan it to try, in the actual lighting.

Where black-background codes earn their place

Any surface that is already dark: black takeaway containers, dark menu boards, coffee cup sleeves, kraft-black packaging, an evening-lit counter where a white card would glare, a premium chocolate or spirits box, a black-framed conference badge, a charcoal envelope. The inversion is not a gimmick in those settings — it is the code that stops washing out under the light that is already there.

Where they do not earn their place: white paper, a bright window-lit table, a phone screen viewed at an angle in sunlight, a receipt. On a white background, a normal dark code is simply easier to scan, and nothing about your design requires the inverted version.

Black background against the other styles here

StyleDot on cardBest forWatch for
Black backgroundWhite on near-blackDark packaging, black menusGlare on glossy dark stock
PurpleDeep violet on pale lilacEvening events, boutique packagingNever invert the pair
PinkSaturated pink on blushWeddings, bakery insertsMid-tone pink on white is marginal
Round dotsGreen on near-whiteInvitations, packagingDots need 4 cm or larger

All four styles run the same encoder and the same error correction. Only the fill colors and the module shape change, so a code that scans at 3 cm in white-on-black also scans at 3 cm in pink, as long as the contrast pair holds.

Black background code questions

Can I make a white QR code on a black background?

That is what this page generates: white modules on a dark field, which is the inverted version of a normal code. Keep the dark element carrying the background rather than the data — scanners expect the data to be darker than its surroundings, so print it on near-black stock and let the modules stay white.

Why is my inverted code slower to scan than a normal one?

The camera has to detect and invert the pattern before decoding. That adds a fraction of a second on most phones, which is why a larger code matters more here than usual.

Does a black background use more error correction?

No. Error correction depends on the data and the level you picked, not on the colors. The inversion is applied after encoding.

Can I use white dots on a black card instead of generating it here?

Only if you still encode properly. Printing a decorative square pattern and calling it a code gets you a card that scans as nothing. Generate the code here, then set the background to match your card stock color.

Will it work on a dark phone case sticker?

Usually, at 3 cm or larger. Adhesive glare is the bigger risk than the color — request a matte vinyl print or laminate nothing over it.

Is a black background code harder to read in daylight?

Only if the card is glossy. Matte dark stock reads well in daylight; glossy dark stock reflects the light directly at the camera and erases the module edges. The problem is the surface, not the color.

Can I use a very dark gray instead of pure black?

Yes, and it often reads better. A near-black such as #0F172A avoids pure-black printer over-ink and reduces glare slightly, while keeping a contrast ratio near 18:1 against white.

How small can a black-background code go?

2 cm is the floor for an inverted code, the same as for a normal one. The difference is that failures cluster at the smaller end because the inversion step costs a little tolerance.

Is the payload uploaded anywhere when I generate a black-background code?

No. The code is assembled and encoded in your browser. Close the tab and the page no longer holds the data.

Try the other custom styles

Same generator, different look. All four scan the same way.