Pro Calculators and Guides

How to Convert Text to Binary, Hex, Octal and Decimal (and Back)

Turn words into binary, hexadecimal, octal or decimal codes and decode them again. Works with UTF-8, so symbols and Bangla letters are supported.

Saizul Amin
Saizul Amin15 Oct 2026 · Updated 17 Oct 2026 · 1 min read
How to Convert Text to Binary, Hex, Octal and Decimal (and Back)

Computers store every character as numbers. Students learning how that works, puzzle makers and developers debugging encodings often need to see those numbers. The Binary to Text Converter shows them in four systems and decodes them back.

Quick answer

Type text to get its binary, hex, octal or decimal values, one byte at a time. To decode, paste the values separated by spaces and choose the matching base.

How the conversion works

Each character is first turned into bytes using UTF-8. The letter A is one byte with the value 65, which is 01000001 in binary, 41 in hexadecimal, 101 in octal and 65 in decimal.

Letters outside plain English use several bytes. A Bangla letter such as অ takes three bytes in UTF-8, so you will see three groups for it.

Step by step

  1. Choose Text to code and select binary, hex, octal or decimal.
  2. Type or paste your text.
  3. Copy the output.
  4. To decode, choose Code to text, paste values separated by a space, and read the text.

Examples

  • Hi → binary 01001000 01101001
  • Hi → hex 48 69
  • Hi → decimal 72 105

Common mistakes

  • Missing spaces between bytes when decoding. Always separate each byte.
  • Mixing bases. A value like 10 means different things in decimal and binary.
  • Expecting one byte per character for non-English text.

Where it is useful

Teaching, capture-the-flag puzzles, checking an encoded value in a log, and understanding why a text file looks wrong after being opened with the wrong encoding.

Everything runs in your browser; your text is not uploaded.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages