ASCII 107
Latin Small Letter K (k)
Printable ASCII
Lowercase letter k. ASCII code 107.
Common uses & context
Thelowercase letter 'k' has ASCII code 107 (0x6B). Its uppercase twin 'K' sits exactly 32 code points away at 75. 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. Lowercase letter k. ASCII code 107.
The lowercase Latin letters form the contiguous block 97–122, so range checks like c >= 'a' && c <= 'z' work without a lookup table. To convert 'k' to its uppercase form youclear bit 5: 'k' & ~0x20 gives 'K'. 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 | 107 |
| Hexadecimal | 0x6B |
| Octal | 0153 |
| Binary | 01101011 |
| HTML numeric entity | k |
| URL encoding | %6B |
| UTF-8 bytes | 0x6B |
Code snippets
JavaScript
String.fromCharCode(107); // "k"
107.toString(16); // "6b"Python
chr(107) # 'k'
ord(chr(107)) # 107
hex(107) # '0x6b'HTML
k <!-- numeric entity (no named entity for this character) -->Programming notes
- ▸Case toggle: 'k' & ~0x20 = 'K' (a single-bit change).
- ▸Letter test: c >= 'a' && c <= 'z' — the lowercase block is contiguous (97–122).
Frequently asked questions
What character is ASCII code 107?
ASCII code 107 is the character 'k' (Latin Small Letter K). In hexadecimal it is 0x6B, in octal 0153, and in binary 01101011.
What is 0x6B in ASCII?
Hexadecimal 0x6B equals decimal 107, which is the character 'k' (Latin Small Letter K). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x6B = 107) and look up that code point.
How do I write the character with code 107 in code?
In JavaScript use String.fromCharCode(107); in Python use chr(107); in HTML use the numeric entity k. In a URL it is percent-encoded as %6B, and in UTF-8 it is stored as the byte sequence 0x6B.
What is the uppercase form of 'k' in ASCII?
'k' is code 107; its uppercase counterpart 'K' is code 75. The two always differ by 32, so you can convert by subtracting 32 (or clearing bit 0x20).