The complete text to binary converter
A text to binary converter turns ordinary characters into the 0s and 1s a computer actually stores. Each character is mapped to a number by a character encoding and that number is written in base-2 — so the letter A (code 65) becomes 01000001. This free tool converts text to binary and binary back to text in real time, across ASCII, Extended ASCII, UTF-8, UTF-16 and UTF-32, using the browser’s standards-compliant encoders for exact, reversible results.
It is also a full learning and developer workbench: a character-by-character analysis with a bit grid and step-by-step working, an encoding explorer, a binary & bitwise calculator, a complete ASCII table, file conversion and a developer / security view with hex dumps and entropy — all running privately in your browser.
Quick answers
The most-asked text-encoding questions, answered directly.
What is the binary for A?
A = 01000001 (ASCII code 65).
What is the binary for HELLO?
HELLO = 01001000 01000101 01001100 01001100 01001111.
How many bits are in a byte?
A byte is 8 bits and represents one ASCII character.
What is ASCII?
ASCII is a 7-bit code mapping 128 characters to the numbers 0–127 (A = 65, space = 32).
What is the binary for a space?
The space character is ASCII 32 = 00100000.
What is UTF-8?
UTF-8 is a Unicode encoding using 1–4 bytes per character; it is ASCII-compatible and the web standard.
What is the binary for the number 0?
The character “0” is ASCII 48 = 00110000.
How do you convert text to binary?
Map each character to its code, convert that number to base-2, and pad to 8 bits.
How to convert text to binary in 3 steps
Type or paste text
Enter text to encode, or paste binary to decode — the smart detector recognises which you have.
Pick an encoding
Choose ASCII for English or UTF-8 for full Unicode, including accents and emoji. Set the separator.
Read, copy or export
See binary, hex, octal and Unicode, the character table and stats, then copy or download TXT/CSV/JSON.
Everything in one converter
Text ⇄ binary, live
Convert text to binary (and back) instantly as you type, with auto-detection of the input.
Every encoding
ASCII, Extended ASCII (Latin-1), UTF-8, UTF-16 and UTF-32 — switch and compare side by side.
Multi-format output
See binary, hex, octal, decimal codes and Unicode code points all at once.
Character analysis
A per-character table plus a bit grid and step-by-step breakdown for any character.
Binary & bitwise tools
Add/subtract/multiply/divide binary, and AND/OR/XOR/NOT/NAND/NOR/XNOR with shifts.
File conversion
Upload TXT, CSV, JSON, XML or HTML and convert the whole file’s text to binary.
Developer & security view
Byte array, binary stream, hex dump, packet segmentation and entropy analysis.
ASCII reference table
A complete, searchable character table — printable, control and extended ranges.
How text and binary work
From characters to bits — the full picture.
How text is stored in computers
Computers cannot store letters directly — only numbers, and ultimately only bits. To store text, every character is first assigned a number by a character encoding, and that number is written in binary. The word “Hi”, for example, becomes the codes 72 and 105, which are stored as the bytes 01001000 and 01101001. When you open the file, the same encoding turns the bytes back into characters.
How binary encoding works
Binary encoding converts each character’s numeric code into base-2. You repeatedly halve the number and record the remainders, or simply note which powers of two add up to it. The result is padded to a fixed width — 8 bits for ASCII and Latin-1, 16 for UTF-16 code units, 32 for UTF-32 — so every unit lines up neatly. Decoding reverses the process: read each fixed-width group, convert it back to a number, and look the character up.
What is ASCII?
ASCII, from 1963, is the foundation of digital text. It uses 7 bits to encode 128 values: 0–31 are control codes (like tab and newline), 32 is space, 48–57 are the digits 0–9, 65–90 are A–Z and 97–122 are a–z. Because it fits in a single byte with a bit to spare, ASCII is fast, universal and forms the lower half of nearly every later encoding, including UTF-8.
What is Unicode?
Unicode solves the problem of ASCII only covering English. It assigns a unique code point to every character in every language — over 149,000 of them — from Latin and Cyrillic to Chinese, Arabic and emoji. A code point such as U+1F642 identifies the character abstractly; an encoding like UTF-8 then decides how to store that code point as bytes. Unicode is why a single document can mix English, 日本語 and 😀.
Why UTF-8 is popular
UTF-8 won the web because it is both backward-compatible and efficient. Every ASCII character keeps its original single-byte value, so old English text and software just work. Characters beyond ASCII expand to two, three or four bytes only as needed, so documents stay compact. It has no byte-order ambiguity and can represent every Unicode character — which is why over 98% of web pages use it.
Binary representation of characters
A character’s binary form is simply its code point written in base-2 and padded to the encoding’s unit width. The capital A (code 65) is 01000001; lowercase a (code 97) is 01100001 — note that flipping a single bit, the one worth 32, switches between upper and lower case. This regularity is no accident: ASCII was designed so common operations on text reduce to simple bit manipulations.
How computers read text
When software reads a file, it needs to know the encoding to interpret the bytes correctly. It takes the byte stream, groups it according to the encoding’s rules (fixed 8-bit units for ASCII, variable-length sequences for UTF-8), converts each group to a code point, and renders the matching glyph from a font. If the wrong encoding is assumed, the same bytes produce garbled characters — the classic sign of an encoding mismatch.
Encoding terms explained
- Bit
- A single binary digit, 0 or 1 — the smallest unit of information.
- Byte
- Eight bits; holds one ASCII or Latin-1 character (values 0–255).
- ASCII
- A 7-bit code mapping 128 characters to numbers 0–127 (A = 65).
- Extended ASCII / Latin-1
- An 8-bit code (ISO-8859-1) extending ASCII to 256 characters.
- Unicode
- A universal character set assigning a code point (e.g. U+0041) to every character.
- UTF-8
- A 1–4 byte Unicode encoding; ASCII-compatible and the web standard.
- UTF-16
- A 2-or-4 byte Unicode encoding using 16-bit code units and surrogate pairs.
- UTF-32
- A fixed 4-byte Unicode encoding — one code point per 32-bit unit.
- Code point
- The unique number Unicode assigns to a character, written like U+1F600.
- Endianness
- The byte order of multi-byte units; this tool uses big-endian (most significant bit first).
Accuracy & privacy
UTF conversions use the browser’s native, standards-compliant TextEncoder and TextDecoder, and ASCII / Latin-1 use exact arithmetic, so every conversion is precise and perfectly reversible. Everything — including uploaded files — is processed entirely on your device; nothing is ever sent to a server, and the tool works offline once loaded.
Frequently asked questions
What is binary?
Binary is the base-2 number system, using only the digits 0 and 1. Every piece of data in a computer — text, images, audio — is ultimately stored as long sequences of binary digits called bits. Eight bits make a byte.
How does text become binary?
Each character is first mapped to a number by a character encoding (such as ASCII or UTF-8), and that number is then written in base-2. For example the letter A is code 65, which is 01000001 in 8-bit binary.
What is the binary for A?
The capital letter A has ASCII code 65, which is 01000001 in binary.
What is the binary for HELLO?
HELLO in 8-bit ASCII binary is 01001000 01000101 01001100 01001100 01001111.
Why do computers use binary?
Computer hardware is built from switches (transistors) that have two stable states — off and on. Those two states map perfectly to 0 and 1, making binary the most reliable and simple way to store and process information electronically.
What is ASCII?
ASCII (American Standard Code for Information Interchange) is a 7-bit character encoding that maps 128 characters — the English letters, digits 0–9, punctuation and control codes — to the numbers 0–127. For example A is 65 and the space is 32.
What is Extended ASCII?
Extended ASCII uses the full 8 bits of a byte to represent 256 characters (0–255), adding accented letters, symbols and box-drawing characters. The most common form is ISO-8859-1, also called Latin-1.
What is Unicode?
Unicode is a universal character standard that assigns a unique number, called a code point, to every character in every writing system — over 149,000 characters. Code points are written like U+0041 for A. Unicode is encoded into bytes using UTF-8, UTF-16 or UTF-32.
What is UTF-8?
UTF-8 is the dominant encoding of Unicode on the web. It uses one to four bytes per character: ASCII characters stay one byte (so it is backward-compatible), while other characters use more. Its efficiency and compatibility make it the default for almost all modern text.
What is UTF-16?
UTF-16 encodes each Unicode character as one or two 16-bit code units (two or four bytes). Characters in the Basic Multilingual Plane use a single unit; rarer characters use a surrogate pair. It is used internally by JavaScript, Java and Windows.
What is UTF-32?
UTF-32 uses a fixed four bytes (32 bits) for every Unicode code point. It wastes space but makes indexing trivial because every character is the same width. It is mostly used internally rather than for storage or transmission.
What is character encoding?
Character encoding is the system that maps characters to numbers (and then to bytes) so computers can store and exchange text. Without a shared encoding, the same bytes could be interpreted as different characters — which is what causes “mojibake” (garbled text).
What is the difference between binary and hexadecimal?
Both represent the same underlying values. Binary (base-2) uses 0 and 1; hexadecimal (base-16) uses 0–9 and A–F. One hex digit equals exactly four binary bits, so hex is a compact, human-readable shorthand for binary — a byte is 8 bits or just 2 hex digits.
How do I convert binary back to text?
Split the binary into 8-bit groups (one byte each), convert each group to its decimal value, then look up that number in the character encoding. This tool does it automatically and supports ASCII, Latin-1, UTF-8, UTF-16 and UTF-32.
How many bits are in a byte?
There are 8 bits in one byte. A byte can represent 256 different values (0–255), which is enough for one ASCII or Latin-1 character.
How do I convert text to binary by hand?
Look up each character’s code (for example A = 65), convert that number to base-2, and pad it to 8 bits. So A → 65 → 1000001 → 01000001. Repeat for every character and join with spaces.
What is the binary for a space?
The space character has ASCII code 32, which is 00100000 in binary.
What is the binary for numbers like 0–9?
Digits are characters too: 0 is code 48 (00110000), 1 is 49 (00110001), up to 9 which is 57 (00111001). Note this is the character “5”, not the number five — the number five on its own is just 101.
Can this converter handle emojis and other languages?
Yes. Choose UTF-8 (or UTF-16/32) and the converter encodes emojis, accented letters and any script correctly, showing the multi-byte sequences. Plain 7-bit ASCII only covers basic English characters.
What is a code point?
A code point is the unique number Unicode assigns to a character, written like U+1F600 for 😀. Encodings such as UTF-8 then turn that code point into a specific sequence of bytes.
How accurate is this converter?
It uses the browser’s native, standards-compliant TextEncoder/TextDecoder for UTF conversions and exact arithmetic for ASCII and Latin-1, so every conversion is precise and reversible. Conversions run entirely on your device.
Is the converter free and private?
Yes. It is completely free with no sign-up, runs entirely in your browser so nothing you type or upload is sent to a server, and works offline once loaded. History and favourites are stored only on your device.
Can I convert a whole file to binary?
Yes. Upload a TXT, CSV, JSON, XML or HTML file and its text content is loaded into the converter, where you can encode it to binary, hex or any other view and download the result.
What is a bit and a byte stream?
A bit is a single 0 or 1. A byte stream is the continuous sequence of bytes that represents your data in memory or on the wire. The developer view shows your text as a raw byte array, a binary stream and a hex dump.
What is entropy in the byte analysis?
Shannon entropy measures how unpredictable the bytes are, from 0 (all identical) to 8 bits per byte (completely random). High entropy can indicate compressed or encrypted data; plain English text typically sits around 4–4.5 bits per byte.
Why do accented characters take more than one byte?
In UTF-8, only the basic ASCII characters fit in one byte. Accented letters, symbols and non-Latin scripts have higher code points that require two, three or four bytes — which is why “café” is 5 bytes, not 4.
What is the binary stream view used for?
It shows your text as one continuous run of bits with no separators — the form data actually takes when transmitted or stored. The packet and segmentation views then group those bits into bytes and words for readability.
Does the order of bits matter?
Yes. This tool uses the standard most-significant-bit-first (big-endian) order within each byte, matching how ASCII and UTF encodings are defined. The leftmost bit has the highest place value.
What is the difference between text and binary input?
Text input is ordinary characters you want to encode. Binary input is a string of 0s and 1s you want to decode back into characters. The smart detector recognises which one you have pasted and offers the right conversion.
How do I convert text to ASCII codes?
Switch the output to decimal: each character is shown as its numeric code, for example HELLO → 72 69 76 76 79. The character analysis table also lists the ASCII code for every character.
Can I download the conversion?
Yes. You can copy any result, or download the binary as TXT, the character analysis as CSV or JSON, and print or save the whole report as a PDF.
Related tools
Number Converter
Binary, decimal, hex, octal & any base, with dev tools.
Data Storage Converter
Bits, bytes, KB, MB, GB, TB & binary units.
Base64 Encoder / Decoder
Encode and decode Base64, with file & JWT support.
Morse Code Converter
Translate text to Morse code and back, with audio.
Unit Converter
Length, weight, temperature, speed, data & more.
Angle Converter
Degrees, radians, gradians, mils & bearings.
Who uses this tool
Students and teachers learning how computers store text; developers debugging encodings and byte streams; cybersecurity professionals inspecting payloads; data scientists handling raw bytes; and electronics and network engineers working at the bit level. Every conversion is exact and reversible, every mode is interactive, and nothing ever leaves your browser.
Converter Tools
Explore More Tools
Go ad-free & unlock more
- Zero ads, faster focused workflow
- Unlimited history & saved favorites
- Batch convert & CSV export