Paritian

Developers

Text to Binary Converter (and Hex, Decimal)

Turn text into the bytes a computer stores, written in binary, hexadecimal, decimal or octal, and turn bytes back into text.

Results

Result 01001000 01100101 01101100 01101100 01101111
Bytes 5
Characters 5

What this tool does

Computers keep text as numbers, and today almost everywhere that means UTF-8: plain English letters take one byte each, so H is 01001000, while accented letters and symbols take two to four, which is why 'Olá' gives four bytes for three letters. This converter shows exactly those bytes, so the result matches what a program, a network packet or a hex editor would show. Going back, it accepts bytes separated by spaces or commas, or one long run of 0s and 1s cut every 8 digits. Bytes that do not form valid UTF-8 are shown as the replacement character �.

Formula

text → UTF-8 bytes → each byte written in binary (8 bits), hexadecimal, decimal or octal

Variables

SymbolMeaningUnit
textText, or bytes to turn back into text—
modeDirection—
baseWrite the bytes in—
OUTResult—
BYBytes—
CCCharacters—

Worked example

  • Text, or bytes to turn back into textHello
  • Directionencode
  • Write the bytes inbin
  • Result01001000 01100101 01101100 01101100 01101111
  • Bytes5
  • Characters5

Limitations

  • The calculation runs entirely in your browser. The values you type are never sent to a server.