Happy birthday to you in Binary
"Happy birthday to you" in binary
01001000 01100001 01110000 01110000 01111001 00100000 01100010 01101001 01110010 01110100 01101000 01100100 01100001 01111001 00100000 01110100 01101111 00100000 01111001 01101111 01110101
The first line of the song in 21 bytes. Only the first H is a capital, so it is the only byte that starts with 010.
Other ways to write it
| Form | Binary | Copy |
|---|---|---|
| As typed | 01001000 01100001 01110000 01110000 01111001 00100000 01100010 01101001 01110010 01110100 01101000 01100100 01100001 01111001 00100000 01110100 01101111 00100000 01111001 01101111 01110101 | |
| Lowercase | 01101000 01100001 01110000 01110000 01111001 00100000 01100010 01101001 01110010 01110100 01101000 01100100 01100001 01111001 00100000 01110100 01101111 00100000 01111001 01101111 01110101 | |
| UPPERCASE | 01001000 01000001 01010000 01010000 01011001 00100000 01000010 01001001 01010010 01010100 01001000 01000100 01000001 01011001 00100000 01010100 01001111 00100000 01011001 01001111 01010101 | |
| No spaces | 010010000110000101110000011100000111100100100000011000100110100101110010011101000110100001100100011000010111100100100000011101000110111100100000011110010110111101110101 | |
| 7-bit | 1001000 1100001 1110000 1110000 1111001 0100000 1100010 1101001 1110010 1110100 1101000 1100100 1100001 1111001 0100000 1110100 1101111 0100000 1111001 1101111 1110101 |
Letter by letter
| Character | Binary | Decimal | Hex |
|---|---|---|---|
| H | 01001000 | 72 | 48 |
| a | 01100001 | 97 | 61 |
| p | 01110000 | 112 | 70 |
| p | 01110000 | 112 | 70 |
| y | 01111001 | 121 | 79 |
| space | 00100000 | 32 | 20 |
| b | 01100010 | 98 | 62 |
| i | 01101001 | 105 | 69 |
| r | 01110010 | 114 | 72 |
| t | 01110100 | 116 | 74 |
| h | 01101000 | 104 | 68 |
| d | 01100100 | 100 | 64 |
| a | 01100001 | 97 | 61 |
| y | 01111001 | 121 | 79 |
| space | 00100000 | 32 | 20 |
| t | 01110100 | 116 | 74 |
| o | 01101111 | 111 | 6F |
| space | 00100000 | 32 | 20 |
| y | 01111001 | 121 | 79 |
| o | 01101111 | 111 | 6F |
| u | 01110101 | 117 | 75 |
Change it and convert
The converter starts with this phrase. Edit it, or open the full text to binary converter.
Text to binary
Frequently asked questions
How do you write "Happy birthday to you" in binary?
Write the ASCII code of each character as 8 bits, spaces included, and put the bytes in order: "Happy birthday to you" is 01001000 01100001 01110000 01110000 01111001 00100000 01100010 01101001 01110010 01110100 01101000 01100100 01100001 01111001 00100000 01110100 01101111 00100000 01111001 01101111 01110101.
Is "Happy birthday to you" in binary different in lowercase?
Yes. A lowercase letter is 32 more than its capital, so one bit flips in each letter you change. "happy birthday to you" in binary is 01101000 01100001 01110000 01110000 01111001 00100000 01100010 01101001 01110010 01110100 01101000 01100100 01100001 01111001 00100000 01110100 01101111 00100000 01111001 01101111 01110101.
How many bits is "Happy birthday to you" in binary?
"Happy birthday to you" has 21 characters, spaces included, so it takes 21 bytes: 168 bits in standard 8-bit binary, or 147 bits in 7-bit ASCII.