Text to Binary Converter
Convert text to binary, octal, hexadecimal, or decimal — and back. Live conversion, 100% client-side.
Paste any text and get the binary, octal, hex, or decimal representation instantly — or go the other way and decode binary back into readable characters. Pick your format, hit convert, done. And everything runs in your browser. Nothing gets uploaded.
How It Works
Each character in your text has a numeric code (its ASCII or Unicode value). The tool grabs that number and converts it to whichever base you picked — base 2 for binary, base 8 for octal, base 16 for hex. Spaces separate each character's code so you can tell where one ends and the next begins. Decoding just reverses the process.
Examples
Encoding a Short Greeting
Quick check — you want to text a friend "Hi!" in binary for fun.
Hi!
01001000 01101001 00100001
Decoding a Binary Message Back to Text
A classmate sends you a string of binary in a group chat. Time to decode it.
01001000 01100101 01101100 01101100 01101111
Hello
Converting a Password to Hexadecimal
You need a hex representation of a string for a config file. Here's what "P@ss1" looks like in hex.
P@ss1
50 40 73 73 31
Who Uses This
Debugging encoding issues, inspecting byte values in protocol buffers or network packets.
Checking homework answers for computer science classes covering number systems and ASCII.
Examining encoded payloads, obfuscated strings, or hex dumps pulled from logs.
Creating binary-coded messages for escape rooms, geocaching hints, or geeky birthday cards.
Common Mistakes
If you paste "0100100001101001" as one continuous string, the decoder can't tell where one byte ends and the next starts. Split them into 8-bit groups separated by spaces: "01001000 01101001".
Pasting readable text into the decoder (Binary → Text mode) gives garbage or errors. Make sure you're in the right mode — text goes into the encoder, binary goes into the decoder.
This tool supports four formats. If your output looks like "48 65 6c" instead of long binary strings, you've probably selected Hexadecimal. Check the format dropdown before copying your result.
Technical Details
- Processing: 100% client-side — your text never leaves the browser
- Browser Support: Chrome, Firefox, Safari, Edge
- Character Encoding: Full Unicode support (UTF-8, UTF-16, UTF-32)
- Output Formats: Binary (base 2), Octal (base 8), Decimal (base 10), Hexadecimal (base 16)
Frequently Asked Questions
What is the binary code for the English alphabet?
Uppercase A is 01000001 and it goes up from there — B is 01000010, C is 01000011, all the way to Z at 01011010. Lowercase letters start at 01100001 for "a". You don't need to memorize any of this. Just paste the alphabet into the tool and grab the output.
How do I convert text to binary manually?
Find the ASCII code for each character (A = 65, B = 66, etc.), then divide that number by 2 repeatedly and record the remainders. Read the remainders bottom to top and pad to 8 digits. Honestly, it is tedious for more than a couple of characters — that's why this converter exists.
Is binary the same as Base64?
No. Binary here means base-2 representation of each character's numeric code. Base64 is a different encoding that converts binary data into a set of 64 printable ASCII characters. They solve different problems — binary shows you the raw bits, Base64 is for safely sending binary data through text-only channels like email.
Can I convert emojis to binary?
Yes. Emojis are just Unicode characters with higher code points. A smiley face converts to a longer binary string because it needs more bits to represent. This tool handles the full Unicode range, so paste away.
How many bits does one character take?
Standard ASCII characters (English letters, numbers, basic punctuation) use 8 bits — one byte. Unicode characters can use 16 bits (2 bytes) for accented characters, 24 bits (3 bytes) for most world scripts, or 32 bits (4 bytes) for emojis and rare characters. The exact number depends on the character's Unicode code point.