HomeDeveloper ToolsText to Binary/Hex

text in. binary out.

convert text to binary, hexadecimal, and decimal byte values in real time. reverse mode: paste binary or hex to get text back.

text input
Binary
01001000 01100101 01101100 01101100 01101111 00101100 00100000 01010111 01101111 01110010 01101100 01100100 00100001
Hexadecimal
48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21
Decimal
72 101 108 108 111 44 32 87 111 114 108 100 33

What this tool does

Convert text to its binary representation (8 bits per character) and back. Useful for understanding character encoding, building intuition for what computers actually store, and the occasional puzzle or escape-room prop.

What this conversion actually shows

Every character in a text file is a number. The number for capital A is 65, for lowercase a is 97, for the digit 0 is 48 (not 0 — the digit is its own number). Those numbers are stored as binary — base-2 representations of the same value. Capital A in binary is 01000001.

text
Text:    Hello
Decimal: 72  101 108 108 111
Binary:  01001000 01100101 01101100 01101100 01101111

That is the entire conversion. It is a notational change, not a meaningful transformation — the text and the binary carry the same information.

What encoding is being used

For ASCII text (basic English letters, digits, common punctuation), every character is exactly one byte and the binary representation is unambiguous. For non-ASCII text (accented characters, non-Latin scripts, emoji), the story gets more interesting.

Modern systems use UTF-8, where:

  • ASCII characters take 1 byte (8 bits).
  • Most Latin-extended characters (é, ñ, ö) take 2 bytes.
  • Most other scripts (Chinese, Japanese, Korean, Hebrew, Arabic) take 3 bytes.
  • Emoji and rarer characters take 4 bytes.

The tool encodes in UTF-8 and shows the resulting bytes. An emoji that visibly looks like one character will produce 32 bits of binary, not 8.

Why anyone would do this

  • Education.Building an intuition for what “text” actually is at the byte level — useful for anyone learning programming, debugging encoding issues, or just curious.
  • Puzzles and games. Cryptic-clue puzzles and escape rooms sometimes hide messages in binary. This tool decodes them.
  • Debugging weird character issues. When a string has a hidden invisible character (zero-width space, BOM, non-breaking space), looking at the binary makes it visible.
  • Low-level interfaces. Some embedded systems and protocols expect byte-level input that maps to ASCII text. The binary view shows exactly what to send.

Browser-only

The conversion is a few lines of JavaScript. The tool runs entirely in your tab — no server, no logging.

What this tool does

Convert text to its binary representation (8 bits per character) and back. Useful for understanding character encoding, building intuition for what computers actually store, and the occasional puzzle or escape-room prop.

What this conversion actually shows

Every character in a text file is a number. The number for capital A is 65, for lowercase a is 97, for the digit 0 is 48 (not 0 — the digit is its own number). Those numbers are stored as binary — base-2 representations of the same value. Capital A in binary is 01000001.

text
Text:    Hello
Decimal: 72  101 108 108 111
Binary:  01001000 01100101 01101100 01101100 01101111

That is the entire conversion. It is a notational change, not a meaningful transformation — the text and the binary carry the same information.

What encoding is being used

For ASCII text (basic English letters, digits, common punctuation), every character is exactly one byte and the binary representation is unambiguous. For non-ASCII text (accented characters, non-Latin scripts, emoji), the story gets more interesting.

Modern systems use UTF-8, where:

  • ASCII characters take 1 byte (8 bits).
  • Most Latin-extended characters (é, ñ, ö) take 2 bytes.
  • Most other scripts (Chinese, Japanese, Korean, Hebrew, Arabic) take 3 bytes.
  • Emoji and rarer characters take 4 bytes.

The tool encodes in UTF-8 and shows the resulting bytes. An emoji that visibly looks like one character will produce 32 bits of binary, not 8.

Why anyone would do this

  • Education.Building an intuition for what “text” actually is at the byte level — useful for anyone learning programming, debugging encoding issues, or just curious.
  • Puzzles and games. Cryptic-clue puzzles and escape rooms sometimes hide messages in binary. This tool decodes them.
  • Debugging weird character issues. When a string has a hidden invisible character (zero-width space, BOM, non-breaking space), looking at the binary makes it visible.
  • Low-level interfaces. Some embedded systems and protocols expect byte-level input that maps to ASCII text. The binary view shows exactly what to send.

Browser-only

The conversion is a few lines of JavaScript. The tool runs entirely in your tab — no server, no logging.

more free tools

PDF utilities, image tools, developer helpers — all free, no signup.

Something wrong?