01What is Text to Binary?
Text to Binary shows you the actual numbers behind a piece of text, and turns those numbers back into text. Pick Text → Code to encode, or Code → Text to decode. Output can be binary, octal, decimal or hexadecimal. The Encoding setting matters most. In ASCII mode each character becomes one value from 0 to 127, following the US-ASCII table. If you type something outside that range, like é, € or an emoji, the tool refuses to guess. It lists the offending characters and asks you to switch to UTF-8. We like that choice, because printing a code point and calling it a byte is a common source of confusion. UTF-8 mode passes the text through the browser's TextEncoder, which follows the UTF-8 rules in RFC 3629. Every byte is shown. So é becomes C3 A9, the euro sign becomes E2 82 AC and the waving-hand emoji becomes four bytes, F0 9F 91 8B. Binary values are padded to 8 digits, octal to 3 and hex to 2. You can separate them with a space, a comma or nothing. An All Representations panel shows the same bytes in every base at once. Decoding is strict in a helpful way. Values can be split by spaces, commas or semicolons, and may carry a 0b, 0o or 0x prefix that matches the chosen format. A long unbroken run of binary is cut into 8-bit groups when its length is a multiple of 8. A run of hex is cut into pairs. Each value is checked digit by digit, so 01102001 in binary is reported as invalid instead of being quietly decoded up to the stray 2. Values above 127 are rejected in ASCII mode, and above 255 in UTF-8 mode. A quick example: type Hi with Binary, Space and ASCII selected and you get 01001000 01101001. Paste that back in Code → Text and you get Hi again. Limits worth knowing. UTF-8 decoding uses the browser's TextDecoder, which swaps broken byte sequences for the replacement character instead of raising an error. There is no UTF-16 or Latin-1 option. The ASCII Quick Reference table lists only the 62 letters and digits, not the full 128 entries. All the encoding happens inside your browser tab. The text you type is not uploaded, logged or stored anywhere.
Developers debugging byte-level encoding bugs, students learning how text is stored, and CTF players decoding binary or hex clues. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Text to Binary
- Choose Text → Code to encode, or Code → Text to decode numbers back into text.
- Pick a Format: Binary, Octal, Decimal or Hexadecimal.
- Set Encoding to ASCII for plain English text, or UTF-8 for accents, other scripts and emoji.
- Choose a Separator (Space, Comma or None) for the encoded output.
- Type into the input box and read the result, or check All Representations to see every base side by side.
- Press the copy button next to the output you want.
03Worked examples
- Input:
Hi (Text → Code, Binary, Space, ASCII) - Result:
01001000 01101001 - Each character padded to 8 bits.
- Input:
Hi! (Hexadecimal, Separator None) - Result:
486921 - Input:
A z (Octal, Comma) - Result:
101, 040, 172 - The space counts as a character: 040 in octal.
- Input:
€ (Hexadecimal, Space, UTF-8) - Result:
E2 82 AC - The euro sign takes three bytes in UTF-8.
- Input:
0100100001101001 (Code → Text, Binary, ASCII) - Result:
Hi - Unseparated binary is split into 8-bit groups.
- Input:
01001000 01102001 (Code → Text, Binary) - Result:
[contains values that aren't valid binary] - The stray 2 makes the whole input invalid rather than half-decoded.
04Common use cases
- Showing a class how the letter A becomes 01000001 and why a byte has 8 bits
- Finding out why a name like José takes 5 bytes in a database column sized for 4 characters
- Decoding a hex dump such as 48 65 6C 6C 6F from a packet capture or serial log back into text
- Checking that an emoji is stored as the 4-byte UTF-8 sequence F0 9F 91 8B and not something mangled
- Spotting the UTF-8 byte order mark EF BB BF at the start of a file that breaks a CSV parser
- Solving a CTF or puzzle clue written as a long string of 0s and 1s
05Tips
- If the ASCII output shows a 'not ASCII' message, the input has a hidden character such as a smart quote or non-breaking space. Switch to UTF-8 to see its bytes.
- When decoding, the Format setting must match the input. Hex like C3 A9 pasted with Binary selected is reported as invalid.
- Unseparated binary is only split into bytes when its length is a multiple of 8. A missing leading zero breaks it, so check the digit count first.
- Byte counts from UTF-8 mode are what you need for database or protocol size limits. Character counts are not the same thing.
06Related concepts
ASCII, UTF-8, Code point, Byte order mark.
Frequently Asked Questions
What is Text to Binary?
Text to Binary is a free, browser-based developer tool on AIDToolStack. Convert text to binary, octal, hex, and decimal representations and back. It requires no installation or sign-up and works entirely in your browser.
Is Text to Binary free to use?
Yes. No sign-up, no fees and no usage cap.
Does Text to Binary store my data?
No. It runs in your browser; nothing is uploaded.