Online Text to Binary Code Converter

Use this free online binary converter to turn text or strings into binary code and decode binary back to readable text. It is built for UTF-8, ASCII, and Unicode text encoding tasks.

Working with numeric values instead of text? Use the quick links below for binary to decimal, decimal to binary, and other base conversion tools.

0 characters

About Binary Encoding

Binary is the fundamental language of computers, using only two digits (0 and 1) to represent all data. Every character, number, image, and program is ultimately stored and processed as binary code.

Encoding Formats

UTF-8 (8-bit)

  • • Variable length (1-4 bytes)
  • • Supports all Unicode characters
  • • Web standard encoding
  • • Backward compatible with ASCII
  • • Best for: Modern applications

ASCII (7-bit codes)

  • • Defines codes 0-127
  • • Commonly padded to 8-bit bytes
  • • A-Z, a-z, 0-9, punctuation
  • • Simple and fast
  • • Best for: English text only

UTF-16

  • • Uses one or two 16-bit code units
  • • Supports all Unicode code points
  • • Surrogate pairs encode some characters
  • • Byte order matters in stored files
  • • Used by JavaScript strings and some APIs

Binary Examples

CharacterASCII (Decimal)Binary (8-bit)Hexadecimal
A65010000010x41
a97011000010x61
048001100000x30
!33001000010x21
Space32001000000x20

How to Read Binary with Powers of Two

Binary is a positional base-2 numeral system. Starting at the right, each position is worth twice the one before it: 1, 2, 4, 8, 16, 32, 64, and 128 in an 8-bit byte. Add only the positions that contain a 1. For example, 01000001 has the 64 and 1 positions switched on, so its decimal value is 65—the ASCII code for uppercase A. Leading zeros keep the byte at eight bits but do not change its numeric value.

Place values for the byte 01000001
1286432168421
01000001

Binary Logic and Boolean Algebra

In digital logic, 0 and 1 can model false and true or low and high electrical states. Boolean operations combine those states: AND returns 1 only when both inputs are 1, OR returns 1 when at least one input is 1, XOR returns 1 when the inputs differ, and NOT flips a bit. These rules power logic gates, bit masks, permissions, comparisons, and the arithmetic circuits inside processors. This is related to binary text storage, but it is a different operation: a text encoder maps characters to bytes, while Boolean algebra manipulates the bits in those bytes.

AND

1 AND 1 = 1

OR

1 OR 0 = 1

XOR

1 XOR 1 = 0

NOT

NOT 1 = 0

Character Encoding: Code Points, Bytes, and Binary

A character, a Unicode code point, and a byte are not always the same thing. The letter A is Unicode code point U+0041 and UTF-8 stores it as one byte, 01000001. The emoji 😀 is U+1F600 and UTF-8 stores it as four bytes: 11110000 10011111 10011000 10000000. That is why this converter may report more bytes than visible characters. Decoding must use the same character encoding that produced the bytes; otherwise the result can contain replacement characters or mojibake.

NUL is not the digit zero: 00000000 is numeric zero and the NUL control byte in ASCII-compatible encodings. The printable character 0 is decimal 48, or00110000 in binary.

Common Use Cases

  • Programming Education: Learn how computers store data at the bit level
  • Data Analysis: Inspect binary data formats and file structures
  • Network Protocols: Debug packet data and transmission issues
  • Cryptography: Understand encryption at the binary level
  • Hardware Development: Work with embedded systems and microcontrollers
  • File Formats: Reverse engineer proprietary or binary file formats

Need a Binary Number Converter?

This page works best as a binary code converter for text encoding and decoding. If you are working with numeric values, use the dedicated binary number converter tools for cleaner results.

How Text Becomes Binary

Text encoding plus binary number basics

Text-to-binary conversion first maps each character to a numeric code point, then represents that value as binary. Numeric binary conversion is different: it reads the value directly using powers of two.

Text example: A = ASCII 65 = 01000001
Number example: 1011 = 8 + 0 + 2 + 1 = 11 decimal

Use this page for text encoding and decoding. Use the dedicated number converters when you need pure base-2, base-10, hexadecimal, or octal math.

Bits, Bytes, and Data Units

UnitSizeExample
Bit1 bit0 or 1
Nibble4 bits1010 (decimal 10)
Byte8 bits01000001 (letter 'A')
Word16 bits (2 bytes)Two characters
Double Word32 bits (4 bytes)Integer value
Quad Word64 bits (8 bytes)Long integer

Frequently Asked Questions

Why do computers use binary?

Computers use binary because digital circuits can reliably distinguish two voltage states, conventionally represented by 0 and 1. Combining those bits lets hardware store and process text, numbers, images, instructions, and other data.

What is the difference between text-to-binary and binary number conversion?

Text-to-binary first encodes characters as bytes using a standard such as UTF-8 or ASCII, then displays each byte in base 2. Binary number conversion treats the input as a mathematical value; for example, 1011 equals decimal 11.

What's the difference between bits and bytes?

A bit is one binary digit, either 0 or 1. A byte is a group of eight bits and can represent 256 possible patterns, from 00000000 through 11111111. Text encodings store characters as one or more bytes.

How many characters can binary represent?

Binary has no fixed character limit. One byte has 256 possible values, while an encoding decides what those values mean. ASCII defines 128 codes; Unicode defines far more characters, and UTF-8 represents them with sequences of one to four bytes.

Why is UTF-8 better than ASCII for modern text?

ASCII covers basic English letters, digits, punctuation, and control codes. UTF-8 preserves those same ASCII byte values while also representing scripts, symbols, and emoji from Unicode, so it is the safer default for modern web content.

Can I convert binary to hexadecimal?

Yes. Split the binary value into four-bit groups because each hexadecimal digit represents exactly four bits. For example, 1010 1100 becomes AC in hexadecimal. Use a numeric base converter when the input is a number rather than encoded text.

Can I convert binary numbers to decimal here?

This converter is designed for text encoding and decoding. For a numeric base-2 value such as 1011, use the dedicated binary-to-decimal converter to get decimal 11.

How do I convert a decimal number to binary?

Use the dedicated decimal-to-binary converter for numeric values. It repeatedly evaluates powers of two to produce a base-2 result; for example, decimal 25 becomes binary 11001.

What is endianness in binary data?

Endianness is the order in which the bytes of a multi-byte value are stored. Big-endian places the most significant byte first, while little-endian places the least significant byte first. It does not reverse the individual bits shown inside each byte.

How do you say 'I Love You' in binary?

In ASCII-compatible UTF-8, 'I Love You' is 01001001 00100000 01001100 01101111 01110110 01100101 00100000 01011001 01101111 01110101. Capitalization matters because uppercase and lowercase letters have different character codes.

How do you read 8-bit binary code?

Read an 8-bit value from right to left using place values 1, 2, 4, 8, 16, 32, 64, and 128. Add the place values whose bits are 1. For 01000001, 64 + 1 equals decimal 65, which represents uppercase A in ASCII.

What does 00000000 mean in binary?

As a number, 00000000 equals decimal 0. As an ASCII or UTF-8 byte, it is the NUL control character, not the printable digit 0. The digit 0 has ASCII byte 00110000, so the meaning depends on whether you are reading a number or encoded text.

What does 01101000 01100101 01101100 01101100 01101111 mean?

Those five 8-bit ASCII-compatible bytes decode to lowercase hello. The decimal byte values are 104, 101, 108, 108, and 111. Uppercase Hello starts with 01001000 instead because uppercase H has a different code.

Can an 8-bit binary value start with zero?

Yes. Leading zeros preserve a fixed byte width without changing the numeric value. For example, 00000001 and 1 both equal decimal 1, but 00000001 clearly shows one complete 8-bit byte, which is useful when decoding text or inspecting data.

ASCII to Binary Reference Table

Look up the 95 printable ASCII characters, including A–Z, a–z, 0–9, punctuation, and space. Each value is shown as an 8-bit byte for easy copying and comparison.

Showing 95 of 95 printable characters

Printable ASCII characters with decimal, binary, and hexadecimal values
CharacterTypeDecimalBinary (8-bit)Hex
SpaceSpace32001000000x20
!Symbol33001000010x21
"Symbol34001000100x22
#Symbol35001000110x23
$Symbol36001001000x24
%Symbol37001001010x25
&Symbol38001001100x26
'Symbol39001001110x27
(Symbol40001010000x28
)Symbol41001010010x29
*Symbol42001010100x2A
+Symbol43001010110x2B
,Symbol44001011000x2C
-Symbol45001011010x2D
.Symbol46001011100x2E
/Symbol47001011110x2F
0Number48001100000x30
1Number49001100010x31
2Number50001100100x32
3Number51001100110x33
4Number52001101000x34
5Number53001101010x35
6Number54001101100x36
7Number55001101110x37
8Number56001110000x38
9Number57001110010x39
:Symbol58001110100x3A
;Symbol59001110110x3B
<Symbol60001111000x3C
=Symbol61001111010x3D
>Symbol62001111100x3E
?Symbol63001111110x3F
@Symbol64010000000x40
AUppercase letter65010000010x41
BUppercase letter66010000100x42
CUppercase letter67010000110x43
DUppercase letter68010001000x44
EUppercase letter69010001010x45
FUppercase letter70010001100x46
GUppercase letter71010001110x47
HUppercase letter72010010000x48
IUppercase letter73010010010x49
JUppercase letter74010010100x4A
KUppercase letter75010010110x4B
LUppercase letter76010011000x4C
MUppercase letter77010011010x4D
NUppercase letter78010011100x4E
OUppercase letter79010011110x4F
PUppercase letter80010100000x50
QUppercase letter81010100010x51
RUppercase letter82010100100x52
SUppercase letter83010100110x53
TUppercase letter84010101000x54
UUppercase letter85010101010x55
VUppercase letter86010101100x56
WUppercase letter87010101110x57
XUppercase letter88010110000x58
YUppercase letter89010110010x59
ZUppercase letter90010110100x5A
[Symbol91010110110x5B
\Symbol92010111000x5C
]Symbol93010111010x5D
^Symbol94010111100x5E
_Symbol95010111110x5F
`Symbol96011000000x60
aLowercase letter97011000010x61
bLowercase letter98011000100x62
cLowercase letter99011000110x63
dLowercase letter100011001000x64
eLowercase letter101011001010x65
fLowercase letter102011001100x66
gLowercase letter103011001110x67
hLowercase letter104011010000x68
iLowercase letter105011010010x69
jLowercase letter106011010100x6A
kLowercase letter107011010110x6B
lLowercase letter108011011000x6C
mLowercase letter109011011010x6D
nLowercase letter110011011100x6E
oLowercase letter111011011110x6F
pLowercase letter112011100000x70
qLowercase letter113011100010x71
rLowercase letter114011100100x72
sLowercase letter115011100110x73
tLowercase letter116011101000x74
uLowercase letter117011101010x75
vLowercase letter118011101100x76
wLowercase letter119011101110x77
xLowercase letter120011110000x78
yLowercase letter121011110010x79
zLowercase letter122011110100x7A
{Symbol123011110110x7B
|Symbol124011111000x7C
}Symbol125011111010x7D
~Symbol126011111100x7E

ASCII itself is a 7-bit standard (codes 0–127). The leading zero shown here pads each printable value to the 8-bit byte format commonly used in files, tutorials, and binary-to-text tools.