Translate text to binary and back
Computers store every letter as a number, and every number as a pattern of bits. This binary translator shows you those patterns: type a word and see it as binary code, or paste a string of 0s and 1s and read the hidden message. It also converts text to hexadecimal, decimal and octal byte values, which are handy for programming, debugging, puzzles, escape rooms and computer science lessons.
Features
- Two directions: text to code and code to text.
- Four formats: binary, hexadecimal, decimal and octal.
- UTF-8 encoding, so accented letters, non-Latin scripts and emoji work correctly.
- Flexible decoding of spaced or continuous binary and hex.
- Instant round trip: switch direction to verify the result.
- Copy or download the output.
Example: "Hi!"
| Character | Decimal | Hex | Binary |
|---|---|---|---|
| H | 72 | 48 | 01001000 |
| i | 105 | 69 | 01101001 |
| ! | 33 | 21 | 00100001 |
Reading binary by hand
A byte has eight bits with place values 128, 64, 32, 16, 8, 4, 2 and 1 from left to right. Add up the values where there's a 1. For 01001000: 64 + 8 = 72, which is the letter "H". Capital letters A–Z are 65–90 (01000001–01011010), lowercase a–z are 97–122, and the digits 0–9 are 48–57.
Related tools
Convert single numbers between any bases with the Number Base Converter, encode data for URLs and emails with Base64, or try another code with the Morse Code Translator.