Text to Binary Converter

Convert text to binary code and binary back to text — free and instant

Instant results | 100% client-side
Conversion Mode
Options

Character Table

Char Decimal Binary Hex

100% Private

All conversion happens locally in your browser using JavaScript. No data is ever sent to any server.

How Does Text to Binary Conversion Work?

Understanding the step-by-step process of encoding human-readable text into binary code

Every character you type is internally represented as a number called a code point. In the ASCII standard, the letter A is code point 65, B is 66, and so on. Converting text to binary simply means expressing each of those decimal numbers in base 2 — the binary numeral system.

Step 1: Character

Start with any text character — a letter, digit, or symbol. For example the uppercase letter H.

Step 2: ASCII / Decimal

Look up the character's ASCII code point. H maps to decimal 72 in the ASCII table.

Step 3: Binary

Convert the decimal to base 2. 72 in binary is 01001000 — an 8-bit byte representation.

Character Decimal (ASCII) Binary (8-bit) Hex
H720100100048
e1010110010165
l108011011006C
l108011011006C
o111011011116F

"Hello" in binary: 01001000 01100101 01101100 01101100 01101111

What Is ASCII & Why Does It Matter?

The foundational character encoding standard that maps text to numbers

ASCII Standard

ASCII (American Standard Code for Information Interchange), published in 1963, defines 128 characters numbered 0–127. This includes 26 uppercase letters, 26 lowercase letters, 10 digits, 32 punctuation and symbol characters, and 34 control characters.

Unicode & UTF-8

Modern systems use Unicode (over 140,000 characters) with UTF-8 encoding, which is backward-compatible with ASCII for the first 128 characters. Accented letters, emojis, and non-Latin scripts use multiple bytes in UTF-8.

Binary in Computers

Computers use binary because transistors have two stable states: on (1) and off (0). A single binary digit is a bit. Eight bits form a byte, which can represent 256 different values (0–255) and holds one ASCII character.

Hex as Shorthand

Hexadecimal (base 16) is a compact way to write binary. Each hex digit represents exactly 4 bits, so one byte is always 2 hex digits. Programmers prefer hex because it is much shorter than binary while remaining directly convertible.

Frequently Asked Questions

Common questions about text to binary conversion and this tool

Each character in text is first converted to its ASCII (or Unicode) decimal value, then that decimal number is converted to binary (base 2). For example, 'A' = 65 decimal = 01000001 binary. This tool performs that conversion for every character in your input.
ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns a number (0–127) to each letter, digit, punctuation mark, and control character used in English. It was first published in 1963 and remains the foundation of modern text encoding, with Unicode extending it to over 140,000 characters.
Binary is the fundamental language of computers. All data — text, images, programs — is stored and processed as binary (1s and 0s) because electronic circuits operate in two states: on (1) and off (0). These two states are easy to represent reliably in hardware using transistors, making binary the natural choice for digital systems.
Standard ASCII characters use 7 bits, but most systems use 8-bit bytes (1 byte per character) for alignment and compatibility. Extended characters (accents, symbols, emojis) may use multiple bytes in Unicode (UTF-8) — from 2 up to 4 bytes per character.
H=01001000, e=01100101, l=01101100, l=01101100, o=01101111. The full binary for "Hello" is: 01001000 01100101 01101100 01101100 01101111.