ASCII 68
Latin Capital Letter D (D)
Printable ASCII
Uppercase letter D. ASCII code 68. Hex value 13. Sorting ASCII strings puts all uppercase letters (65-90) before all lowercase (97-122), which is why 'Zebra' sorts before 'apple' in a naive byte sort.
Common uses & context
Theuppercase letter 'D' has ASCII code 68 (0x44). Its lowercase twin 'd' sits exactly 32 code points away at 100. 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 D. ASCII code 68. Hex value 13. Sorting ASCII strings puts all uppercase letters (65-90) before all lowercase (97-122), which is why 'Zebra' sorts before 'apple' in a naive byte sort.
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 'D' to its lowercase form youset bit 5: 'D' | 0x20 gives 'd'. 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.
'D' is also a hexadecimal digit: in base-16 it represents the value 13. Hex uses 0–9 for 0–15's firstten values and A–F (or a–f) for 10–15, so 'D' is valid inside literals like 0xDD and colour codes like #DDDDDD.
All encodings at a glance
| Decimal | 68 |
| Hexadecimal | 0x44 |
| Octal | 0104 |
| Binary | 01000100 |
| HTML numeric entity | D |
| URL encoding | %44 |
| UTF-8 bytes | 0x44 |
Code snippets
JavaScript
String.fromCharCode(68); // "D"
68.toString(16); // "44"Python
chr(68) # 'D'
ord(chr(68)) # 68
hex(68) # '0x44'HTML
D <!-- numeric entity (no named entity for this character) -->Programming notes
- ▸Case toggle: 'D' | 0x20 = 'd' (a single-bit change).
- ▸Letter test: c >= 'A' && c <= 'Z' — the uppercase block is contiguous (65–90).
- ▸As a hex digit, 'D' has value 13 in base-16.
Frequently asked questions
What character is ASCII code 68?
ASCII code 68 is the character 'D' (Latin Capital Letter D). In hexadecimal it is 0x44, in octal 0104, and in binary 01000100.
What is 0x44 in ASCII?
Hexadecimal 0x44 equals decimal 68, which is the character 'D' (Latin Capital Letter D). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x44 = 68) and look up that code point.
How do I write the character with code 68 in code?
In JavaScript use String.fromCharCode(68); in Python use chr(68); in HTML use the numeric entity D. In a URL it is percent-encoded as %44, and in UTF-8 it is stored as the byte sequence 0x44.
What is the lowercase form of 'D' in ASCII?
'D' is code 68; its lowercase counterpart 'd' is code 100. The two always differ by 32, so you can convert by adding 32 (or setting bit 0x20).