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 01101001

2 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 ↓
Reviewed · Binary Code Translator project · Free to use
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.

LIVE CONVERTER Runs in this browser

First 24 code points in the selected encoding
CharacterDecimal bytesHex bytesBinary bytes
H724801001000
i1056901101001
01

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.

Hi encoded as two ASCII-compatible bytes
PositionCharacterDecimalHexBinary byte
1H724801001000
2i1056901101001
02

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.

  1. H is 72. 72 = 64 + 8, so the 64 and 8 places are 1: 01001000.
  2. i is 105. 105 = 64 + 32 + 8 + 1, so those four places are 1: 01101001.
  3. Write the bytes in reading order: 01001000 01101001.
  4. Check the result by decoding it: the converter's Swap button should return exactly Hi.
03

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.

Exact spelling, case and punctuation, without a trailing newline
TextUTF-8 / eight-bit ASCII binaryBytes
Hi01001000 011010012
hi01101000 011010012
HI01001000 010010012
Hi!01001000 01101001 001000013
04

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.

Permalink
What 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.

Permalink
How 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.

Permalink
How 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

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.