Skip to converter

UTF-8 · Emoji-safe · Offline-ready

Binary Translator

Last updated:

100% Free, Private & Instant Text to Binary, Octal, Decimal & Hexadecimal Converter.

Binary, Octal, Decimal and Hex Converter

Conversion mode

Delimiter / separator

Prefix 0b
Uppercase hex
Live conversion on every keystroke0 chars
Encode
Ready0 tokens
Characters
0
Bytes (UTF-8)
0
Bits
0
Code points
0
Character-by-character breakdown (first 64 characters)
CharUnicodeBytesBinaryHexDec

Type some text to see how each character is encoded.

Everything runs locally in your browser. Your text is never uploaded, stored or logged.

Advertisement

Why use Binary Translator?

Real-time conversion

Output updates on every keystroke. No submit buttons, no waiting, no page reloads.

Full UTF-8 support

Emojis, accents, Cyrillic, CJK and symbols are encoded as proper multi-byte UTF-8 sequences.

Four number bases

Binary, octal, decimal and hexadecimal with custom delimiters and 0b / 0o / 0x prefixes.

Private by design

100% client-side JavaScript. Works offline and never sends your data anywhere.

How to use the binary translator

How do I convert text to binary code?

  1. Select Text ↔ Binary in the mode selector.
  2. Make sure the direction badge says Encode (Text → Binary). Use the swap button to flip it.
  3. Type or paste your text. Each character is converted to UTF-8 bytes and every byte is written as 8 bits.
  4. Pick a delimiter or prefix if you need a specific format, then click Copy Result.

Example: Hi → 01001000 01101001

How does binary-to-text decoding work?

Decoding reverses the process. The tool removes prefixes such as 0b, splits the input into bytes using spaces, commas, new lines or your custom delimiter — or into fixed 8-bit chunks when there is no delimiter — and converts each byte from base 2 to a value between 0 and 255.

The resulting byte sequence is decoded as UTF-8, so multi-byte characters like é (2 bytes) or 😀 (4 bytes) are rebuilt correctly. Invalid digits or broken byte sequences are flagged in the status bar.

What is the difference between binary, octal, decimal, and hexadecimal?

All four are positional number systems; they differ only in their base — how many digits they use before carrying over. Computers store everything as binary, while octal and hexadecimal are compact shorthands that map cleanly onto groups of bits.

SystemBaseDigitsDigits per byteLetter “A”Prefix
Binary20–18010000010b
Octal80–731010o
Decimal100–91–365—
Hexadecimal160–9, A–F2410x

Binary & hex ASCII reference table

Common printable characters and their binary, octal, decimal and hexadecimal values. Click any row to send the character to the converter.

CharBinaryOctalDecimalHex

Binary translation formulas

Text → binary (encoding)

  1. Encode each character as UTF-8 bytes (A = 65; é = 195 169; 😀 = 240 159 152 128).
  2. Divide each byte by the base repeatedly and read the remainders in reverse.
  3. Pad to a fixed width: 8 digits binary, 3 octal, 2 hex.

65 = 64 + 1 = 2⁶ + 2⁰ → 01000001

Binary → text (decoding)

Each byte value is the sum of its digits times powers of the base, then the bytes are read back as UTF-8:

value = Σ dᵢ × baseⁱ

01101001₂ = 64 + 32 + 8 + 1 = 105 = “i”
4A₁₆ = 4×16 + 10 = 74 = “J”
150₈ = 1×64 + 5×8 + 0 = 104 = “h”

More free developer tools

Other 100% browser-based utilities that pair well with Binary Translator.

Frequently asked questions

How do I convert text to binary code?

Choose the Text ↔ Binary mode, make sure the direction is Text → Binary, and type or paste your text in the input box. Each character is encoded to UTF-8 bytes and every byte is shown as an 8-bit binary number, for example “Hi” becomes 01001000 01101001. The conversion happens instantly in your browser.

How does binary-to-text decoding work?

The binary input is split into bytes (by your delimiter, or into 8-bit chunks if there is no delimiter). Each byte is converted from base 2 to a number from 0 to 255, and the resulting byte sequence is decoded as UTF-8 text. Multi-byte sequences are recombined into characters such as accented letters and emojis.

What is the difference between binary, octal, decimal, and hexadecimal?

They are number systems with different bases. Binary (base 2) uses the digits 0 and 1, octal (base 8) uses 0–7, decimal (base 10) uses 0–9, and hexadecimal (base 16) uses 0–9 and A–F. One byte can be written as 8 binary digits, 3 octal digits, up to 3 decimal digits, or 2 hex digits — for example the letter A is 01000001, 101, 65 or 41.

Does Binary Translator support emojis and special characters?

Yes. Binary Translator uses UTF-8 encoding, so emojis, accented letters, Cyrillic, Chinese and other symbols are converted correctly. An emoji such as 😀 takes 4 bytes, which is 32 bits of binary.

Is my text uploaded to a server?

No. All encoding and decoding runs locally in your web browser with JavaScript. Nothing you type is sent, stored or logged, and the tool works offline once loaded.

What do the 0b, 0o and 0x prefixes mean?

They are notation prefixes used in programming languages to mark the base of a number: 0b for binary, 0o for octal and 0x for hexadecimal. Enable the Prefix toggle to add them to every byte, for example 0x48 0x69. When decoding, prefixes are removed automatically.

What do the 0b, 0o and 0x prefixes mean?

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

How many bytes each kind of character takes

UTF-8 uses a different number of bytes depending on the character, which is why the Bytes and Bits counters often grow faster than the Characters counter.

CharactersExampleUTF-8 bytesBits
English letters, digits, basic punctuation (ASCII)A, 7, ?18
Accented Latin, Greek, Cyrillic, Hebrew, Arabicé, Ж, Ω216
Most Chinese, Japanese and Korean characters, many symbols中, あ, €, ✓324
Emoji and rare historic scripts😀432

Some emoji are built from several code points. A thumbs-up with a skin tone is two code points (8 bytes), and a country flag is two regional-indicator symbols (also 8 bytes). The Code points counter shows when this happens.

Patterns that make binary easier to read

A few regularities in ASCII let you decode short messages almost by eye:

Worked example: 01000011 01100001 01100010. The first byte starts with 010, so it is a capital; 00011 = 3, the third letter, C. The next two start with 011, so they are lowercase; 00001 = a and 00010 = b. The word is Cab. The ASCII Table lists every value if you want to check.

When decoding gives the wrong result

More questions about Binary Translator

Can I write my name in binary for a bracelet or tattoo?

Yes. Type the name in Encode mode and copy the result; each letter becomes 8 bits. Check the output carefully letter by letter, since a single flipped digit changes the character.

Why does the same text give different binary in some other converters?

Some tools use UTF-16 or older 8-bit encodings instead of UTF-8, or drop leading zeros. Plain English letters usually match, but accented letters and emoji differ between encodings.

Is binary encoding a way to hide or encrypt a message?

No. Binary, octal and hex are just different ways to write the same bytes, and anyone can reverse them instantly. Use real encryption if the content needs to stay private.

Copied!