"Hi" → binary — binary and text
introtwo bytes, ASCII
Answer
01001000 01101001
Why this example is worth doing
The shortest useful conversion on the page, and the one that establishes the format: one byte per character, eight bits each, spaces between bytes. H is 72 and i is 105 in ASCII, and the page prints the decimal and hex codes alongside so the three notations are visibly the same value. Everything else on this page is this operation repeated, so it is worth getting the layout right here.
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 |
|---|---|---|---|---|---|
| H | U+0048 | 72 | 48 | 01001000 | 0xxxxxxx |
| i | U+0069 | 105 | 69 | 01101001 | 0xxxxxxx |
| count | value |
|---|---|
| bytes | 2 |
| code points | 2 |
| UTF-16 code units | 2 |