Binary Translator Text to binary and binary to text

Enter text or binary bytes. Auto-detect chooses the direction, or you can set it yourself.

What does your binary say?

Text to binary

UTF-8 encoding: accents and emoji can take multiple bytes. Each byte is shown as 8 bits.

Spaces and line breaks are ignored when decoding. Input containing only 0s and 1s is treated as binary in Auto-detect. Choose Text to binary to encode those digits as text.

Translation and number conversion run in your browser. Your input is not uploaded or saved.

Number converter

Binary
Decimal
Hexadecimal
Octal

Whole numbers stay exact with BigInt. Enter a leading minus sign for negative values. Binary negatives use a minus sign, not a fixed-width two’s complement representation. Fractions and base prefixes are not accepted.

What is binary code?

Two digits, many meanings

Binary is a base-two way to represent values using 0 and 1. Each digit is a bit. A sequence can represent a number, text, an image or instructions, depending on how it is interpreted. Binary alone does not tell you which kind of data it holds.

Computers use binary because electronic circuits can represent two distinguishable states. The symbols 0 and 1 describe those states; they do not mean the computer stores printed digits.

Text needs an encoding

This translator uses UTF-8, the encoding defined in the WHATWG Encoding Standard. Plain English letters each fit in one byte. Other characters may need several bytes, so one character is not always one group.

To write your name in binary, enter it in the text box and choose Text to binary. Keep every byte and its leading zeros when you copy the result. The reverse direction needs the same encoding.

How to read binary

For text, read bytes

Separate the stream into groups of eight bits, then decode the bytes as UTF-8. The translator accepts spaces or line breaks between groups, as well as one continuous stream. It reports incomplete bytes and invalid UTF-8 instead of displaying replacement characters as if the result were valid.

For numbers, read place values

The rightmost binary digit has a value of one. Each place to its left doubles in value. Add the place values wherever a digit is 1 and skip the places marked 0. The number converter treats the input as a whole number rather than text bytes.

How to convert binary to decimal

For a worked example, the six positions in 101101 have weights 32, 16, 8, 4, 2 and 1. Only four positions contain a 1:

Choose Binary in the number converter and enter the same digits to verify the result. Leading zeros do not change a whole number’s value, but they matter when keeping text bytes at a fixed length.

Binary reference: letters, digits and space

These ASCII characters use the same single-byte values in UTF-8. The rows are generated from character codes.

CharacterDecimal8-bit binary

Binary translator FAQ

How does binary code work?

A binary value uses powers of two as its place values. To interpret a longer sequence, you also need to know the format. Text encoding, number representation and file formats assign different meanings to those bits.

Why does an emoji produce more than one group?

UTF-8 uses multiple bytes for many characters. Some displayed emoji also contain more than one Unicode code point. This tool preserves the UTF-8 bytes rather than assuming that every visible symbol fits in one byte.

Why is my binary input invalid?

Check that it contains only 0s, 1s and optional whitespace, and that the total bit count is a multiple of eight. Even complete bytes may not form valid UTF-8. A number written in binary is not necessarily encoded text.

How do I translate the text “101” into binary?

Select Text to binary. Auto-detect treats input made only of binary digits and whitespace as binary, so it would otherwise try to decode those three bits and report an incomplete byte.

Can I convert large numbers without losing digits?

Yes. The number panel uses BigInt for whole numbers, so it does not round them through JavaScript’s floating-point number type. Very large inputs can still be limited by your device’s memory and processing time.