Skip to content

Text to Binary Converter

Convert text to binary, hex, decimal or octal bytes and back, using UTF-8.

Convert

Runs in your browser — nothing you enter is sent to a server.

How the Text to Binary Converter works

Choose Text → codes to see each byte of your text in binary, hexadecimal, decimal or octal, or Codes → text to decode bytes back into text. Codes can be separated by spaces or commas; unseparated binary and hex are split into bytes automatically.

Text is encoded as UTF-8, the standard on the web. Plain English letters take one byte each (the same as ASCII), while accented letters, other scripts and emoji take two to four.

Formula

8 bits = 2 hex digits = a number from 0 to 255

H is byte 72: 01001000 in binary, 48 in hex, 110 in octal.

Examples

“Hi”

Binary 01001000 01101001, hex 48 69, decimal 72 105.

é and 👍

é is 2 bytes: 11000011 10101001. 👍 is 4 bytes: F0 9F 91 8D.

Frequently asked questions

Is this the same as ASCII?

For English letters, digits and punctuation, yes — UTF-8 matches ASCII for those 128 characters. Other characters use more bytes.

Why does decoding say the bytes aren't valid UTF-8?

A multi-byte character is incomplete, often because a byte was left out when copying. Check that you pasted every code.

How do I convert a number, not text, to binary?

Use the Number Base Converter — this tool converts characters, so “5” becomes the byte 00110101.

Number Base Converter

Convert whole numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, of any size.

Converters

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 to text, with full Unicode support and URL-safe output.

Developer Tools

Morse Code Translator

Translate text to Morse code and Morse code to text, and hear it played as sound.

Converters