QR code error correction levels: L, M, Q and H explained

Error correction lets a QR code still scan when part of it is dirty, damaged or covered: level L can recover about 7% of the code, M about 15%, Q about 25% and H about 30%. Use M for most codes and H when you add a logo, and remember that higher levels make the pattern denser.

Updated

What error correction does

Every QR code stores extra recovery data alongside your content, using Reed-Solomon codes, the same idea used on CDs and in deep space radio. If some modules can't be read, the scanner rebuilds the missing data from the rest. You choose how much recovery data to include when you make the code, and you can't change it afterwards.

LevelRecovers aboutUse it for
L (low)7%Codes shown on screens, or fitting a lot of data into a small code in clean conditions
M (medium)15%Most printed codes. This is the Scandalous default
Q (quartile)25%Outdoor signs, stickers that might get scuffed, rough surfaces and labels on equipment
H (high)30%Codes with a logo in the middle, AI art codes and heavy wear

The percentages are of the code's data, not an exact area you can cover. Treat them as upper limits.

The trade-off: a denser pattern

Recovery data takes up space, so a higher level needs more modules for the same content. These are real module counts from the Scandalous encoder:

ContentLMQH
https://scandalous.codes25252929
Wi-Fi network with a 21-character password29333741
105-character link with tracking parameters37414957

At a fixed print size, more modules means each one is smaller, so a higher level can make a small code harder to read. Raise the level to survive damage, not to scan from further away. For distance, make the code bigger.

Logos and artwork need H

A logo in the middle hides modules on purpose, so it relies on error correction to fill the gap. Scandalous switches to H automatically when you add a logo, and uses H for every AI art code. Logos can be up to 30% of the code's width, which is about 9% of its area, so H leaves headroom for wear and awkward lighting.

What error correction can't fix

  • Low contrast between the code and its background
  • A missing quiet zone around the code
  • Covering any of the three large squares in the corners, which scanners use to find the code
  • A code that's too small for the scan distance
  • Blurry printing, glare or a stretched image

Our guide to making QR codes scannable covers each of these.

Choose a level in Scandalous

  1. Start a new code

    Sign in and choose Create code.

  2. Add your content

    Pick a content type and fill in the details.

  3. Pick a level

    Under Error correction, choose L, M, Q or H. With a logo, it's fixed at H.

  4. Create and download

    Create the code and download it as PNG or SVG.

From an AI assistant, set style.errorCorrection to L, M, Q or H when creating the code.

Common questions

Which error correction level is best?
M for most codes. Use H with a logo, Q for codes that might get scuffed, and L only when you need to fit a lot of data into a small code shown on a screen.
Does higher error correction make a code easier to scan?
Not by itself. It helps a damaged or partly covered code, but it adds modules, so a small code can become harder to read.
Can I change the error correction of a printed code?
No. The level is part of the pattern. Make a new code to change it.

Make one with Scandalous

Standard codes are free and never expire.

your first code is free.

sign up with your email and start making codes. add a logo or ai art whenever you need it.

get in, it's free