GoWebTools

Text to Binary Converter

Convert text to binary, hexadecimal, decimal or octal. UTF-8 aware, with a choice of separators and byte grouping. Free online converter.

Input

Result

The result appears here as you type.

What this tool is for

See the bytes behind a string. Text is encoded as UTF-8 and then rendered in the base you choose, which makes it useful for teaching, for puzzles, and for the practical case of checking exactly how many bytes a character costs.

How to use it

  1. Type the text to convert.
  2. Choose the output base: binary, hex, decimal or octal.
  3. Pick a separator between bytes and copy the result.

Frequently asked questions

Why does one emoji become four bytes?

UTF-8 uses one byte for ASCII and up to four for other characters. Most emoji sit in the four byte range, and some visible emoji are several code points joined together, costing more still.