Text ↔ Binary / Hex / ASCII

Convert text to binary, hexadecimal, or ASCII and back

Text Input

BINARY

01001000 01100101 01101100 01101100 01101111 00101100 00100000 01010111 01101111 01110010 01101100 01100100 00100001
Input chars: 13Output chars: 116Bits: 104

About the Text to Binary Converter

This text to binary converter turns text into binary, hexadecimal or decimal ASCII codes, and converts each back to text. Useful for learning how characters are stored and for puzzles that hide a message in binary.

Converting text to binary makes character encoding concrete. Each character has a numeric code — capital A is 65 — and that number can be written in binary as 01000001, in hex as 41, or in decimal as 65. All three describe the same stored byte.

The eight-bit grouping is worth noticing, because it is why a byte is eight bits and why the original ASCII set has 128 characters. Seeing a sentence as a row of eight-bit groups explains more about how computers store text than a paragraph of description.

It also solves the practical case: puzzles, capture-the-flag challenges and novelty messages frequently encode text as binary, and decoding a wall of ones and zeros by hand is not a good use of an afternoon.

How to use the Text to Binary Converter

  1. Pick a direction. Choose text to codes, or codes back to text.
  2. Choose the format. Select binary, hexadecimal or decimal ASCII.
  3. Enter your input. Paste the text, or the encoded values.
  4. Copy the output. Take the converted result.

Text to Binary Converter features

  • Text to binary and binary back to text
  • Text to hexadecimal and hexadecimal back to text
  • Text to decimal ASCII codes
  • Conversion direction chosen explicitly
  • Copy the result

Frequently asked questions

How does text become binary?

Each character is looked up as a number and that number is written in base 2. Capital A is 65, which is 01000001 — and a whole message is those groups one after another.

Why is hexadecimal easier to read than binary?

Because it is far shorter. One hex digit covers four bits, so a byte is two hex characters instead of eight ones and zeros, while mapping back to binary without arithmetic.

Does it handle emoji and accented characters?

Characters outside the basic ASCII set take multiple bytes in UTF-8, so they produce several groups rather than one. The conversion is still reversible, but the neat one-character-per-byte pattern no longer holds.

What is this actually used for?

Learning how characters are stored, and puzzle solving — binary hidden in a CTF challenge or an escape room clue. It is a teaching and curiosity tool rather than something you would put in a pipeline.