Hi in Binary
To say Hi in binary, write 01001000 01101001. That is UTF-8 or ASCII in eight-bit storage: 01001000 is capital H (decimal 72) and 01101001 is lowercase i (decimal 105). The whole greeting uses two bytes, or 16 bits.
Exact text: Hi · UTF-8 / eight-bit ASCII
01001000 011010012 characters · 2 bytes · 16 bits. The space between the two groups is only a display separator; Hi itself contains no space.
Try this example in the converter ↓On this page
The input is exactly “Hi”, without quotation marks or a trailing newline. UTF-8 is selected; eight-bit ASCII gives the same bytes for this text. Selecting another example resets the converter and replaces your edits.
| Character | Decimal bytes | Hex bytes | Binary bytes |
|---|---|---|---|
| H | 72 | 48 | 01001000 |
| i | 105 | 69 | 01101001 |
Hi, one byte at a time
Each letter of Hi is in ASCII, so UTF-8 stores each one in a single byte. The table lists the decimal and hexadecimal value of each byte alongside its bits.
| Position | Character | Decimal | Hex | Binary byte |
|---|---|---|---|---|
| 1 | H | 72 | 48 | 01001000 |
| 2 | i | 105 | 69 | 01101001 |
Work out Hi in binary by hand
Look up each character's ASCII value, then write that number with eight place values: 128, 64, 32, 16, 8, 4, 2 and 1. Put a 1 under each value you use and a 0 under the rest.
- H is 72. 72 = 64 + 8, so the 64 and 8 places are 1: 01001000.
- i is 105. 105 = 64 + 32 + 8 + 1, so those four places are 1: 01101001.
- Write the bytes in reading order: 01001000 01101001.
- Check the result by decoding it: the converter's Swap button should return exactly Hi.
hi, HI and Hi! are different messages
Binary text keeps capitalization and punctuation. Lowercase h is decimal 104, so hi changes the first byte. HI changes the second byte, because capital I is decimal 73. Adding an exclamation mark adds a third byte, 00100001 (decimal 33). Choose a preset in the converter to compare them.
| Text | UTF-8 / eight-bit ASCII binary | Bytes |
|---|---|---|
| Hi | 01001000 01101001 | 2 |
| hi | 01101000 01101001 | 2 |
| HI | 01001000 01001001 | 2 |
| Hi! | 01001000 01101001 00100001 | 3 |
Other ways to write the same Hi
The same two bytes can be shown without a separator as 0100100001101001; a decoder then splits the 16 bits into two eight-bit groups. In hexadecimal they are 48 69.
Strict seven-bit ASCII drops the leading zero of each group: 1001000 1101001. That form needs a seven-bit decoder; an eight-bit decoder would read the 14 bits as an incomplete byte. To share a greeting as a picture, use the binary graphic generator.
Frequently asked questions
What is lowercase hi in binary?
Lowercase hi is 01101000 01101001 in UTF-8 or eight-bit ASCII. Only the first byte differs from Hi, because h is decimal 104 and H is decimal 72.
PermalinkWhat is HI in all capitals?
HI is 01001000 01001001. Capital I is decimal 73, so the second byte becomes 01001001 instead of the lowercase i byte 01101001.
PermalinkHow many bits does Hi use?
Hi uses 16 bits in UTF-8: two characters, each one eight-bit byte. Adding punctuation such as ! or a trailing newline adds another byte for each extra character.
PermalinkHow do I check that 01001000 01101001 says Hi?
Paste the bits into a binary-to-text decoder with UTF-8 or eight-bit ASCII selected. The first byte is 72, which is H, and the second is 105, which is i. A different first or second byte would change the greeting.
Permalink↑ Back to the converter · Page contents
Sources & verification
Reference material used for this explanation. The examples are reproducible with the tools on this site; see how they are checked.
Found a mismatch? Send a correction with a source.