NathanTools
NathanTools
Text Tools 13
SEO Tools 7
Image Tools 19
YouTube Tools 38
Device Tests 4
PDF Tools 10
Calculators 52
Electrical Calculators 10
Time Tools 7
Random Tools 9
Converters 14
Developer Tools 11
Hash Generators 5
Password & Security 2
Network & DNS 3
Website Tools 9

Text to Binary Converter

Type text to get its binary, hex or decimal codes, or paste codes to turn them back into text.

100% free No sign-up Works on any device

Input

Output

Converts as you type. Nothing leaves your browser. Ctrl + Enter copies the result.

Updated November 2026 · UTF-8 · Runs in your browser

How to use the text to binary converter

  1. Type or paste text into the Input box, or press Sample.
  2. Choose Binary, Hex, Decimal or Octal. Each byte is converted as you type.
  3. To go back, paste the codes and choose → Text. Spaces, commas and 0b/0x prefixes are all understood.

ASCII letters in binary

CharDecimalHexBinaryCharDecimalHexBinary
A654101000001a976101100001
B664201000010b986201100010
C674301000011c996301100011
D684401000100d1006401100100
E694501000101e1016501100101
F704601000110f1026601100110
G714701000111g1036701100111
H724801001000h1046801101000
I734901001001i1056901101001
J744A01001010j1066A01101010
K754B01001011k1076B01101011
L764C01001100l1086C01101100
M774D01001101m1096D01101101
N784E01001110n1106E01101110
O794F01001111o1116F01101111
P805001010000p1127001110000
Q815101010001q1137101110001
R825201010010r1147201110010
S835301010011s1157301110011
T845401010100t1167401110100
U855501010101u1177501110101
V865601010110v1187601110110
W875701010111w1197701110111
X885801011000x1207801111000
Y895901011001y1217901111001
Z905A01011010z1227A01111010

Digits 0–9 are codes 48–57 (00110000–00111001) and a space is 32 (00100000). See every code in the ASCII table, or convert single numbers between bases with the number base converter.

Frequently asked questions

Each character is turned into its character code, and each code is written in base 2 as an 8-bit byte. “H” is 72 in ASCII, which is 01001000 in binary, and “i” is 105, or 01101001. So “Hi” is 01001000 01101001.

Split the binary into 8-bit groups, convert each group to a number and look up the character. Paste your binary, choose “Binary / hex / decimal → Text”, and the converter works out whether it's binary, hex or decimal codes automatically.

They don't fit in a single byte, so the converter uses UTF-8, the encoding used by almost every website. “é” becomes two bytes (11000011 10101001) and most emoji become four. Plain English letters, digits and punctuation are one byte each, identical to ASCII.

They're different ways of writing the same byte values. The letter “A” is 01000001 in binary (base 2), 41 in hexadecimal (base 16) and 65 in decimal (base 10). Hex is popular with programmers because each byte is exactly two digits.
Esc
↑ ↓ to moveEnter to open