ASCII 72
Latin Capital Letter H (H)
Printable ASCII
Uppercase letter H. ASCII code 72. Toggle to lowercase 'h' (104) by flipping the 0x20 bit — the single-bit difference that makes ASCII case conversion so cheap.
Common uses & context
Theuppercase letter 'H' has ASCII code 72 (0x48). Its lowercase twin 'h' sits exactly 32 code points away at 104. That constant gap of 32 — a single bit, 0x20 — is why changing letter case is one of the cheapest operations a CPU can do: you flip or mask one bit rather than looking anything up. Uppercase letter H. ASCII code 72. Toggle to lowercase 'h' (104) by flipping the 0x20 bit — the single-bit difference that makes ASCII case conversion so cheap.
The uppercase Latin letters form the contiguous block 65–90, so range checks like c >= 'A' && c <= 'Z' work without a lookup table. To convert 'H' to its lowercase form youset bit 5: 'H' | 0x20 gives 'h'. Because uppercase (65–90) sorts before lowercase (97–122) in raw byte order, naive sorting places every capitalized wordahead of every lowercase one — the reason "Zebra" comes before "apple" unless you sort case-insensitively.
All encodings at a glance
| Decimal | 72 |
| Hexadecimal | 0x48 |
| Octal | 0110 |
| Binary | 01001000 |
| HTML numeric entity | H |
| URL encoding | %48 |
| UTF-8 bytes | 0x48 |
Code snippets
JavaScript
String.fromCharCode(72); // "H"
72.toString(16); // "48"Python
chr(72) # 'H'
ord(chr(72)) # 72
hex(72) # '0x48'HTML
H <!-- numeric entity (no named entity for this character) -->Programming notes
- ▸Case toggle: 'H' | 0x20 = 'h' (a single-bit change).
- ▸Letter test: c >= 'A' && c <= 'Z' — the uppercase block is contiguous (65–90).
Frequently asked questions
What character is ASCII code 72?
ASCII code 72 is the character 'H' (Latin Capital Letter H). In hexadecimal it is 0x48, in octal 0110, and in binary 01001000.
What is 0x48 in ASCII?
Hexadecimal 0x48 equals decimal 72, which is the character 'H' (Latin Capital Letter H). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x48 = 72) and look up that code point.
How do I write the character with code 72 in code?
In JavaScript use String.fromCharCode(72); in Python use chr(72); in HTML use the numeric entity H. In a URL it is percent-encoded as %48, and in UTF-8 it is stored as the byte sequence 0x48.
What is the lowercase form of 'H' in ASCII?
'H' is code 72; its lowercase counterpart 'h' is code 104. The two always differ by 32, so you can convert by adding 32 (or setting bit 0x20).