"a" vs "A" — the case bit — binary and text
coreone bit apart
Answer
01000001 01100001
Why this example is worth doing
The two encodings differ in exactly one bit, and the page puts them one above the other so the single differing column is unmissable. This is the design decision behind the ASCII layout — the alphabet was positioned so that case is a single bit — and it is a good example of an encoding chosen to make a common operation cheap. The XOR of the two bytes is 0010 0000, which is 32.
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 2 characters
ASCII: one byte per character, the high bit always zero.
| character | code point | decimal | hex | binary | template |
|---|---|---|---|---|---|
| A | U+0041 | 65 | 41 | 01000001 | 0xxxxxxx |
| a | U+0061 | 97 | 61 | 01100001 | 0xxxxxxx |
| count | value |
|---|---|
| bytes | 2 |
| code points | 2 |
| UTF-16 code units | 2 |