ASCII 71
Latin Capital Letter G (G)
Printable ASCII
Uppercase letter G. ASCII code 71. The first letter beyond the hex range, so it's invalid in a hexadecimal literal.
Common uses & context
Theuppercase letter 'G' has ASCII code 71 (0x47). Its lowercase twin 'g' sits exactly 32 code points away at 103. 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 G. ASCII code 71. The first letter beyond the hex range, so it's invalid in a hexadecimal literal.
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 'G' to its lowercase form youset bit 5: 'G' | 0x20 gives 'g'. 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 | 71 |
| Hexadecimal | 0x47 |
| Octal | 0107 |
| Binary | 01000111 |
| HTML numeric entity | G |
| URL encoding | %47 |
| UTF-8 bytes | 0x47 |
Code snippets
JavaScript
String.fromCharCode(71); // "G"
71.toString(16); // "47"Python
chr(71) # 'G'
ord(chr(71)) # 71
hex(71) # '0x47'HTML
G <!-- numeric entity (no named entity for this character) -->Programming notes
- ▸Case toggle: 'G' | 0x20 = 'g' (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 71?
ASCII code 71 is the character 'G' (Latin Capital Letter G). In hexadecimal it is 0x47, in octal 0107, and in binary 01000111.
What is 0x47 in ASCII?
Hexadecimal 0x47 equals decimal 71, which is the character 'G' (Latin Capital Letter G). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x47 = 71) and look up that code point.
How do I write the character with code 71 in code?
In JavaScript use String.fromCharCode(71); in Python use chr(71); in HTML use the numeric entity G. In a URL it is percent-encoded as %47, and in UTF-8 it is stored as the byte sequence 0x47.
What is the lowercase form of 'G' in ASCII?
'G' is code 71; its lowercase counterpart 'g' is code 103. The two always differ by 32, so you can convert by adding 32 (or setting bit 0x20).