Format and Version String Tables

A QR code uses error correction encoding and mask patterns. The QR code's size is represented by a number, called a version number. To ensure that a QR code scanner accurately decodes what it scans, the QR code specification requires that each code include a format information string, which tells the QR code scanner which error correction level and mask pattern the QR code is using. In addition, for version 7 and larger, the QR code specification requires that each code include a version information string, which tells the QR code scanner which version the code is. This page lists all the possible format and version strings.

About Format Information Strings

QR Codes use error correction encoding. This is a way of generating redundant data that QR code scanners can use to detect and fix errors in the scanned code.

QR codes also use mask patterns. A mask pattern is an algorithm for changing the color (dark to light or light to dark) of a certain pattern of pixels in the code in order to make it easier for scanners to read accurately.

QR codes must include a format string that contains the information about which level of error correction coding and which mask pattern are in use in the code. This page lists all 32 possible format strings. For a detailed explanation of how these strings are generated, please visit the Format and Version Information page.

List of all Format Information Strings

ECC LevelMask PatternType Information Bits
L0111011111000100
L1111001011110011
L2111110110101010
L3111100010011101
L4110011000101111
L5110001100011000
L6110110001000001
L7110100101110110
M0101010000010010
M1101000100100101
M2101111001111100
M3101101101001011
M4100010111111001
M5100000011001110
M6100111110010111
M7100101010100000
Q0011010101011111
Q1011000001101000
Q2011111100110001
Q3011101000000110
Q4010010010110100
Q5010000110000011
Q6010111011011010
Q7010101111101101
H0001011010001001
H1001001110111110
H2001110011100111
H3001100111010000
H4000011101100010
H5000001001010101
H6000110100001100
H7000100000111011

About Version Information Strings

The size of a QR code is represented by a number called the version number. Codes that are version 7 and larger must include two 6x3 rectangular blocks that contain the version information string. For details on how these version information strings are calculated and where they should be placed in the QR code, please see the Format and Version Information page.

VersionVersion Information String
7000111110010010100
8001000010110111100
9001001101010011001
10001010010011010011
11001011101111110110
12001100011101100010
13001101100001000111
14001110011000001101
15001111100100101000
16010000101101111000
17010001010001011101
18010010101000010111
19010011010100110010
20010100100110100110
21010101011010000011
22010110100011001001
23010111011111101100
24011000111011000100
25011001000111100001
26011010111110101011
27011011000010001110
28011100110000011010
29011101001100111111
30011110110101110101
31011111001001010000
32100000100111010101
33100001011011110000
34100010100010111010
35100011011110011111
36100100101100001011
37100101010000101110
38100110101001100100
39100111010101000001
40101000110001101001