QR code error correction

Error correction is what allows a QR code to survive some dirt, print damage, distortion, or visual customization and still scan successfully.

What error correction means

A QR code includes recovery data in addition to the main payload. If part of the code is damaged or hidden, the scanner may still reconstruct the original content. More error correction means more recovery potential, but it also increases data density.

QR error correction levels

Level Approximate recovery Typical use
L About 7% Very clean environments and simple codes
M About 15% General-purpose everyday QR generation
Q About 25% More demanding print or light customization
H About 30% Logo overlays and harsher real-world conditions

How to choose the right level

Higher is not always better. More correction data means a denser code, which can be harder to scan if the final size is too small.

Error correction and custom design

If you add a logo, rounded modules, gradients, or other visual styling, error correction becomes more important because some usable data area may be reduced. But styling should still be conservative. Error correction helps, it does not excuse poor contrast or bad sizing.

Best practices

Generate a better QR code

Generate QR code Open guides hub