130 of 149 tools live Roadmap LatestImage to Text

Text to Binary Converter

Turn text into binary, hex or ASCII codes and back, for any language and emoji.

Works in your browser. Nothing you type is sent to us.

Binary

Character by character
CharacterCode pointUTF-8 bytes (hex)Binary

Converted in your browser. Nothing you type is sent to us.

Text to Binary Converter at a glance

Price
Free
Data sent to us
None, it runs in your browser
Sign-up
Not needed
Formats
Binary, hexadecimal, decimal, octal
Encodings
UTF-8 bytes, Unicode code points
Directions
Text to code and code to text

How to use Text to Binary Converter

Takes about 1 minute. You need text, or codes to read.

  1. Choose the directionText to code, or Code to text.
  2. Pick the formatBinary, hex, decimal or octal, and UTF-8 bytes or code points.
  3. Type or pasteThe result appears as you type. Copy it, or Swap to convert it back.
Text to Binary Converter: Turn text into binary, hex or ASCII codes and back, for any language and emoji.

Type text to see it as binary, hexadecimal, decimal or octal codes, or paste codes to translate them back into text, with the result updating as you type. Choose UTF-8 bytes, as stored in files, or Unicode code points, one per character; every language and emoji converts both ways. Separators, padding to full bytes and 0x or 0b prefixes are up to you, codes in the wrong format are recognised, and a table shows each character's code point, bytes and bits.

How it works

Text to Binary Converter is a web page that does its work on your own device. Everything you type or choose is worked out by your browser and never sent to a server, so nothing is stored and there is nothing to delete. There is no account, no sign-up and no limit on how often you use it.

Straight to one job

Text as ones and zeros, and back

Computers store text as numbers: the letter H is 72, written 01001000 in binary or 48 in hexadecimal. Type text to see it as binary, hex, decimal or octal codes, or paste codes to read them as text again; the result updates as you type and Swap turns it around. A table underneath lists every character with its Unicode code point, its UTF-8 bytes and their bits, which makes it easy to see why an emoji takes four bytes while a plain letter takes one.

Bytes or code points

UTF-8 bytes are what is actually stored in a file or sent over the web: plain English letters are one byte each, the same as ASCII, accented letters two, most Indian and Asian scripts three, and emoji four. Code points are the numbers Unicode gives each character, one number per character, which is what you want for a puzzle, a lesson or a character map. Both read back exactly, for every language and emoji.

Reading code you were given

Codes can be separated by spaces, commas or new lines, and may carry 0x or 0b prefixes. A long run of binary without spaces is read eight digits at a time, and hex two at a time. If what you paste does not fit the format you picked, such as decimal numbers with binary selected, it is read in the format it looks like and the page says so. Bytes that are not valid UTF-8 show as a replacement mark instead of stopping the conversion.

What this tool does not do

  • It does not convert numbers between bases; use the Binary, Hex and Decimal Converter.
  • It does not encrypt anything; binary is just another way of writing the same text.
  • It does not read Morse code or Base64.

What it does

  • Text to binary, hex, decimal or octal, and back
  • UTF-8 bytes or Unicode code points
  • Any language and emoji, both ways
  • Space, comma, new line or no separator; 0x and 0b prefixes
  • Unspaced binary and hex read eight and two digits at a time
  • Character table with code point, bytes and bits
  • No upload, no account, no sign-up

Questions

How do I convert text to binary?

Type the text with Text to code and Binary selected. Each character's UTF-8 bytes are written as eight binary digits: Hi becomes 01001000 01101001.

How do I convert binary to text?

Choose Code to text and paste the binary. Groups of eight digits are read as bytes; spaces between them are optional.

What is the difference between ASCII and UTF-8?

ASCII covers 128 characters, mostly English letters, digits and punctuation, one byte each. UTF-8 matches ASCII for those and uses two to four bytes for every other character, so any language and emoji can be written.

Why does an emoji become four bytes?

Emoji have code points above 65,535, which UTF-8 stores in four bytes. Choose Unicode code points to see the single number instead: 👋 is 128075, or 1F44B in hex.

Can I convert text to hex?

Yes. Choose Hexadecimal: Hi becomes 48 69. Tick the prefix option for 0x48 0x69.

What if my code is in a different format?

If you paste decimal numbers with binary selected, the page reads them as decimal and tells you. Codes that are not valid in any format are pointed out.

Is it free?

Yes, completely free, with no sign-up.

More

Privacy policy · Support · Changelog

Suggest a tool

Tell us what the tool should do. If we build it, we will let you know.

Used only to reply to you. See our Privacy Policy.