"HELLO WORLD" → binary — binary and text

exam standard11 bytes including the space

Answer

01001000 01000101 01001100 01001100 01001111 00100000 01010111 01001111 01010010 01001100 01000100

Why this example is worth doing

A full phrase, included because the realistic use of this tool is a whole message rather than one character, and because the space in the middle is the byte students forget to count. The page offers the output grouped by byte, unseparated, or as hex, and provides a copy button for each, since the usual next step is pasting the result somewhere else.

Try your own input in the Binary ⇄ text / ASCII. Convert text to binary and back, byte by byte, with the full UTF-8 breakdown.

How the answer is reached

ASCII encoding of 11 characters

ASCII: one byte per character, the high bit always zero.

ASCII encoding of 11 characters — columns character, code point, decimal, hex, binary, template
charactercode pointdecimalhexbinarytemplate
HU+00487248010010000xxxxxxx
EU+00456945010001010xxxxxxx
LU+004C764C010011000xxxxxxx
LU+004C764C010011000xxxxxxx
OU+004F794F010011110xxxxxxx
U+00203220001000000xxxxxxx
WU+00578757010101110xxxxxxx
OU+004F794F010011110xxxxxxx
RU+00528252010100100xxxxxxx
LU+004C764C010011000xxxxxxx
DU+00446844010001000xxxxxxx
Three different numbers; the UI must show all three — ASCII encoding of 11 characters
countvalue
bytes11
code points11
UTF-16 code units11

Compare with

Open this example in the Binary ⇄ text / ASCII

The field arrives filled in with this example’s input.

Note:

Notation this page assumes

  • Bit strings are written most significant bit first, and bit 0 is the least significant bit.
  • A width is stated explicitly wherever it changes the answer; nothing is silently sign-extended or truncated.
  • ASCII is the 7-bit set padded to one byte; UTF-8 is shown byte by byte, so a non-ASCII character is more than eight bits.

Sources

  • ANSI X3.4 / ISO-IEC 646, the ASCII character set
  • The Unicode Standard, Annex on the UTF-8 encoding form