Convert text to binary, hexadecimal, or octal — or decode any of those back to readable text. Works entirely in your browser.
This converter turns ordinary text into binary, hexadecimal, octal, or plain ASCII decimal codes — and decodes any of those four formats straight back into readable text. Each character is read as its code point and rendered as a fixed-width group (8-bit bytes for binary, two digits for hex, three for octal), with values space-separated so they stay easy to read and decode.
It handles both directions in one place, so you never need a separate encoder and decoder. People use it to:
Everything runs local and in-browser — your text is converted entirely on your device with JavaScript and is never uploaded to a server, so it works offline and keeps your input private.
Each character is mapped to its character code (ASCII for basic letters, the Unicode code point for others), then that number is written in binary, base 2. For example, 'A' is code 65, which is 01000001 in binary. The tool does this for every character and joins the results with spaces.
Every binary group is padded to 8 bits — one byte — with leading zeros. Standard ASCII characters fit in 8 bits, and keeping a fixed width makes the output line up neatly and decode back reliably, since the decoder knows exactly where each character starts and ends.
It works on each character's code unit. Plain ASCII letters, digits, and symbols (codes 0–127) convert to a single 8-bit byte. Characters beyond ASCII use their larger Unicode code point, so emoji and many accented or non-Latin characters may produce values wider than 8 bits rather than multi-byte UTF-8 sequences.
Switch to "Code → Text", make sure Binary is selected, and paste your binary. Each group is parsed as a base-2 number and turned back into the matching character. So 01001000 01101001 decodes to "Hi".
Yes. When decoding, groups must be separated by whitespace because the tool splits on spaces to know where one character ends and the next begins. A single unbroken string of bits has no clear boundaries and won't decode correctly.
Yes. Use the Base buttons to switch between Binary (base 2), Hex (base 16), Octal (base 8), and plain ASCII decimal codes. Each base works in both directions, so you can encode text into hex or decode space-separated octal values back to text the same way.
It's handy for solving binary puzzles and CTF challenges, teaching or learning how computers store text as numbers, inspecting ASCII and Unicode code points while debugging, and creating binary, hex, or octal versions of words for creative projects.