Skip to converter

UTF-8 · Emoji-safe · Offline-ready

BinaryTranslator

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.

Why use BinaryTranslator?

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 BinaryTranslator.

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 BinaryTranslator support emojis and special characters?

Yes. BinaryTranslator 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.

Copied!