Qraft

How Patterns Hide Information - Decoding the Secret of 0s and 1s

All Information Is Made of 0s and 1s

In the digital world, everything - text, numbers, images - is represented as combinations of 0 and 1 (binary). The letter A is 01000001, B is 01000010. Eight digits (8 bits) represent one character, giving 256 possible combinations. The black-and-white pattern is simply binary made visible: white squares = 0, black squares = 1. Your phone camera reads the colors, converts them to binary, and reconstructs the original text or URL.

How Japanese Characters Fit In

English uses 8 bits per character, but Japanese needs 24 bits (3 bytes) per character in UTF-8 encoding due to thousands of kanji. Five Japanese characters take 15 bytes versus 5 bytes for five English letters. This is why patterns encoding Japanese text are larger. URLs use only ASCII characters, keeping patterns compact - which is why URLs are preferred over direct text.

The Map Inside the Pattern

The pattern follows strict rules. Three large corner squares (finder patterns) mark the edges. Small dot rows (timing patterns) establish grid spacing. The first few data cells record what type of data is stored (numeric, alphanumeric, kanji, binary) and its length.

Mask Patterns - The Final Touch

Raw data conversion can create problematic clusters of black or striped areas that reduce scan accuracy. Eight mask patterns are available, each applying different inversion rules (e.g., invert cells where row + column is even). The pattern producing the most balanced distribution is automatically selected.

Try It - Convert Your Name to Binary

Convert your name to binary using ASCII codes: T=01010100, A=01000001, R=01010010, O=01001111. String them together and you have your name as a sequence of 0s and 1s. Replace each digit with a white or black square, and your name becomes a pattern. Real patterns add error correction and structural data, but the core principle is this simple.