Text to Binary
Convert text to binary, hex, octal & decimal
Paste text, binary, or hex and convert it with auto-detection first; additional mode guidance is available in Advanced mode.
The full guide also includes pitfalls, worked examples, snippets, FAQs, and related tools for checking results or troubleshooting.
About this tool
Encode text as UTF-8 bytes and view binary, hexadecimal, octal and decimal representations. Auto mode recognizes byte-aligned binary and even-length hexadecimal; choose Text explicitly when ordinary text resembles a number encoding. Decoding uses UTF-8 and may show replacement characters for invalid byte sequences.
Production Snippets
One character can require several bytes
text
Text: 中
UTF-8 hex: E4 B8 AD
Decimal bytes: 228 184 173
Binary: 11100100 10111000 10101101Frequently Asked Questions
Are these Unicode code points or bytes?
They are UTF-8 bytes. A is one byte (65), while 中 is three bytes (228, 184, 173). The legacy ASCII row repeats decimal byte values; values above 127 are not ASCII characters.
How do I avoid automatic format ambiguity?
Select Text, Binary or Hex explicitly. Auto mode can interpret 4142 as hexadecimal bytes rather than four literal digits; binary input must contain a multiple of eight bits after whitespace removal.
Does every byte sequence decode to the original text?
Only valid UTF-8 bytes reliably represent the original UTF-8 text. Invalid byte sequences use the browser decoder’s replacement behavior; this is not a legacy-encoding detector.
Keep browsing