Space and the printable range — binary and text
corewhere the control characters end
Answer
00100000 01111110
Why this example is worth doing
Space is 32, the first printable character, and everything below it is a control code — newline at 10, carriage return at 13, tab at 9. The page tabulates the ones that matter and makes the point that a binary string decoding to invisible output is usually control characters rather than a failed conversion. It also flags the line-ending difference between platforms, which is where pasted data most often goes wrong.
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 |
|---|---|---|---|---|---|
| U+0020 | 32 | 20 | 00100000 | 0xxxxxxx | |
| ~ | U+007E | 126 | 7E | 01111110 | 0xxxxxxx |
| count | value |
|---|---|
| bytes | 2 |
| code points | 2 |
| UTF-16 code units | 2 |