Convert text to binary, octal, or hexadecimal — and back again — live as you type. Every character is mapped to its numeric code point in your chosen base, entirely in your browser.
Result
01001000 01100101 01101100 01101100 01101111 00101100 00100000 01010111 01101111 01110010 01101100 01100100 00100001
Humans count in base 10 (decimal) largely because we have ten fingers, but computers operate natively in base 2 (binary), since a digital circuit can most reliably represent just two states: on or off, high voltage or low voltage, 1 or 0. Every number, character, image, and instruction a computer works with is, at the lowest level, a sequence of binary digits (bits). Octal (base 8) and hexadecimal (base 16) exist as human-friendly shorthand for binary — because 8 and 16 are both powers of 2, each octal digit maps cleanly onto exactly 3 binary digits, and each hexadecimal digit maps onto exactly 4, making it far easier for a person to read, write, and reason about long binary sequences without losing track of which bit is which.
Hexadecimal in particular is everywhere in software and computing: RGB color codes (#FF5733), memory addresses, MAC addresses, cryptographic hashes (like MD5 or SHA-256 output), and low-level debugging output are almost always shown in hex rather than raw binary, precisely because a byte (8 bits, which can represent 256 possible values) fits neatly into exactly two hex digits (00 to FF), whereas the same byte in binary would need all 8 digits and be much harder to scan visually.
Every character you type on a keyboard is, underneath, stored and processed as a number — a mapping defined by a character encoding standard. The original and still-foundational standard is ASCII (American Standard Code for Information Interchange), created in the 1960s, which assigns every uppercase and lowercase English letter, digit, punctuation mark, and a handful of control characters a number from 0 to 127. The modern successor, Unicode, extends this idea to cover essentially every writing system and symbol used by humans — hundreds of thousands of code points, including emoji — while keeping the first 128 code points identical to classic ASCII for full backward compatibility.
This tool works directly with these code points: when you convert text, it isn't scrambling your text arbitrarily — it's revealing the exact numeric identity that your computer, browser, and every piece of software you use already assigns to each character behind the scenes, just expressed in a base you can choose.
The same underlying value looks very different depending on which base you view it in. Take the capital letter 'A', whose Unicode/ASCII code point is 65 in decimal. In binary, that's 01000001 — eight digits, each representing a power of two. In octal, it's 101 — three digits, each representing a power of eight. In hexadecimal, it's 41 — just two digits, each representing a power of sixteen (where the letters A–F stand in for the values 10–15, since hexadecimal needs sixteen distinct digit symbols but our number system only has ten). Notice how the value shrinks in digit-count as the base grows — that's the core trade-off: higher bases pack more information per digit, at the cost of needing more distinct digit symbols (hexadecimal borrows letters A through F precisely because Arabic numerals alone only go up to 9).
Programmers and students reach for a text-to-binary (or hex, or octal) converter for a range of concrete reasons: understanding exactly what a byte of data looks like when debugging a network protocol or file format, generating simple puzzles or obfuscated messages for games and escape rooms, learning how character encoding works as part of a computer science course, verifying a manual encoding/decoding exercise by hand, or simply satisfying curiosity about what a favorite word or name 'looks like' inside a computer. Because everything happens instantly and entirely client-side, it's equally handy as a quick teaching aid in a classroom setting or as a fast lookup tool during real development work.
Binary Text Converter maps characters to their numeric code points. These related tools cover other everyday text encoding and transformation tasks.