ASCII and Windows-1251 Character Table
Complete reference for standard ASCII (0-127) and Windows-1251 Cyrillic extension (128-255). Debug legacy encoding issues and copy Dec, Hex, or HTML entity codes.
About
Legacy systems, older databases, and email headers often rely on character encodings that predate UTF-8 universality. Windows-1251 remains a critical code page for maintaining and debugging software originally designed for Cyrillic scripts (Russian, Bulgarian, Serbian). When these bytes are misinterpreted as ISO-8859-1 or UTF-8, text renders as unreadable garbage (mojibake).
This reference tool maps the full 8-bit byte range (0-255) specifically for the Windows-1251 layout. It covers the standard ASCII control and printable characters (0-127) and the upper extensions (128-255) containing Cyrillic glyphs and special punctuation. Precision in these values is mandatory for binary file analysis, data recovery, and fixing encoding declaration errors in HTML headers.
Formulas
Character encoding translates a numerical value (code point) into a graphical symbol. In single-byte encodings like ASCII and Windows-1251, one character equals exactly one byte (8 bits). The conversion from a Decimal byte value to Hexadecimal aids in debugging binary dumps.
For a byte value n, the Hexadecimal representation is calculated by dividing by the base 16:
n = d1 × 161 + d0 × 160
Where d represents a digit from {0, 1, ..., 9, A, B, C, D, E, F}. For the Cyrillic letter "Я" (Ya):
Decimal: 223 ≡ 13 × 16 + 15
Hex: 13 → D, 15 → F &implies; 0xDF
Reference Data
| Range | Description | Byte (Dec) | Byte (Hex) | Usage Context |
|---|---|---|---|---|
| Control Characters | Non-printable instructions | 0-31 | 00-1F | Terminals, Printers, Data Stream Control (NULL, LF, CR) |
| Standard ASCII | Latin Alphabet, Numbers, Symbols | 32-127 | 20-7F | Universal compatibility (English text, Code syntax) |
| Windows-1251 Upper | Extended Punctuation | 128-191 | 80-BF | Includes Ђ, Љ, currency symbols, and typographic quotes often missing in ISO-8859-5 |
| Windows-1251 Cyrillic | Russian/Cyrillic Alphabet | 192-255 | C0-FF | Primary range for upper and lowercase Cyrillic letters |