"A" → binary — binary and text

core65, the anchor value

Answer

01000001

Why this example is worth doing

Capital A is 65, which is the one ASCII value worth memorising because everything else follows from it: the capitals run 65 to 90, the lowercase letters 97 to 122, and the gap between a letter's two cases is exactly 32 — a single bit. The page shows that bit, position five, and notes that toggling it is how case conversion is implemented, which turns a lookup table into one XOR.

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 1 character

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

ASCII encoding of 1 character — columns character, code point, decimal, hex, binary, template
charactercode pointdecimalhexbinarytemplate
AU+00416541010000010xxxxxxx
Three different numbers; the UI must show all three — ASCII encoding of 1 character
countvalue
bytes1
code points1
UTF-16 code units1

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