KOI8-R Encoder/Decoder

Russian Cyrillic KOI8-R byte encoding to hex and back

Ad placeholder (leaderboard)

KOI8-R is the classic single-byte encoding for Russian Cyrillic, standardised in RFC 1489 and ubiquitous in pre-Unicode Russian email, news, and Unix systems. This tool converts Cyrillic text to KOI8-R hex bytes and decodes KOI8-R bytes back to text.

How it works

KOI8-R maps every character to exactly one byte. The lower half 0x000x7F is plain ASCII; the upper half 0x800xFF carries Cyrillic letters and some box-drawing symbols. Its most famous property is the deliberate ordering of the Cyrillic block: each letter sits at the code point whose low 7 bits spell a phonetically related Latin letter, so stripping the high bit turns Cyrillic text into a rough Latin transliteration rather than noise.

The tool builds the exact byte-to-character table in your browser using the platform’s native KOI8-R decoder, then inverts it for encoding. Decoding feeds your hex bytes straight through that same decoder.

Example and notes

  • "Привет, мир" encodes to the KOI8-R bytes f0 d2 c9 d7 c5 d4 2c 20 cd c9 d2 — one byte per Cyrillic letter, with the comma and space staying as their ASCII 0x2C and 0x20.
  • KOI8-R covers Russian but not all Cyrillic; some Ukrainian letters live in the related KOI8-U variant and will be flagged as unmapped here.
  • When decoding, tokens that are not valid 0255 hex values are skipped and the tool tells you so.
Ad placeholder (rectangle)