QR QR Studio

design

Inverted and dark-mode QR codes (light on dark)

Published 7 September 2026 · 2 min read

Dark designs are everywhere and a black QR code on them looks like a hole. The tempting fix is to invert the code. Sometimes that is fine. Often it is a gamble you did not need to take.

What the standard says

ISO/IEC 18004 defines a QR code as dark modules on a light background. Decoders are free to also try the reverse, and good ones do, but nothing requires it. So an inverted code works on any scanner that tries both polarities and fails on any that does not.

Who reads them and who does not

ScannerInverted codes
iPhone Camera (iOS 11 and later)Yes
Recent Android camera apps and Google LensUsually
Older third-party scanner appsOften not
Point-of-sale and access-control scannersFrequently not
Web-based decodersVaries
QR code encoding https://getqrstudio.app/scan?c=inverted-1
Normal polarity. Every scanner reads this.
QR code encoding https://getqrstudio.app/scan?c=inverted-2
Inverted. Try it with an older scanner app and it may refuse.

When inverted is acceptable

  • On a screen, for an audience using recent phones: an app onboarding screen, a conference slide, a TV.
  • When you have tested with the actual scanner that will be used.
  • When a fallback exists, such as the URL printed alongside.

Do this

An inverted code on a slide at a tech conference, with the short URL printed beneath it.

Not this

An inverted code on a bus-shelter poster read by whoever walks past with whatever phone they own.

The safer alternative

Put a normal code on a white tile, then place the tile on the dark design. Round the corners of the tile, give the code its quiet zone inside it, and the design stays dark while the code stays standard.

Do this

White rounded tile, black code inside with a four-module margin, on the dark background.

Not this

White modules straight onto the dark background because the tile 'broke the look'.

Common mistake

Inverting the code and also using a dark brand colour for the background that is not quite dark enough. Now it is both inverted and low contrast. Check the ratio either way with the contrast checker.

Try it in QR Studio

QR Studio warns when you pick an inverted pair and offers the tile layout as a one-tap alternative.

Checklist

  • Decided whether the audience’s scanners are known
  • If inverted, tested with the oldest scanner likely to be used
  • Contrast ratio still 4.5 to 1 or better
  • URL or fallback printed nearby for public placements
  • Preferred the white tile where any doubt remained

Try it yourself

Upload your inverted artwork. The tester tries both polarities and tells you whether it only reads one way round.

Test an inverted code

Frequently asked questions

Does an iPhone read inverted QR codes?

Yes. The Camera app has read light-on-dark codes since iOS 11. That does not mean everyone's phone or scanner does.

Why do some scanners fail?

The standard defines dark modules on a light background and many decoders only try that polarity. Trying both costs time, so cheaper or older software does not bother.

Is a dark-mode website a problem for QR codes?

Only if the code itself is inverted. A normal code on a white tile in a dark page is fine.

Related reading

Make yours in QR Studio

Unlimited static codes free, no ads, no watermark. AI design, dynamic codes and print-ready export when you need them.

Download on the App Store