DevKits

ASCII 119

Latin Small Letter W (w)

Printable ASCII

Lowercase letter w. ASCII code 119. In regex, \w matches [A-Za-z0-9_]; \W is its negation.

Common uses & context

Thelowercase letter 'w' has ASCII code 119 (0x77). Its uppercase twin 'W' sits exactly 32 code points away at 87. 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 w. ASCII code 119. In regex, \w matches [A-Za-z0-9_]; \W is its negation.

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 'w' to its uppercase form youclear bit 5: 'w' & ~0x20 gives 'W'. 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

Decimal119
Hexadecimal0x77
Octal0167
Binary01110111
HTML numeric entity&#119;
URL encoding%77
UTF-8 bytes0x77

Code snippets

JavaScript

String.fromCharCode(119); // "w"
119.toString(16); // "77"

Python

chr(119)           # 'w'
ord(chr(119))      # 119
hex(119)           # '0x77'

HTML

&#119;   <!-- numeric entity (no named entity for this character) -->

Programming notes

  • Case toggle: 'w' & ~0x20 = 'W' (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 119?

ASCII code 119 is the character 'w' (Latin Small Letter W). In hexadecimal it is 0x77, in octal 0167, and in binary 01110111.

What is 0x77 in ASCII?

Hexadecimal 0x77 equals decimal 119, which is the character 'w' (Latin Small Letter W). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x77 = 119) and look up that code point.

How do I write the character with code 119 in code?

In JavaScript use String.fromCharCode(119); in Python use chr(119); in HTML use the numeric entity &#119;. In a URL it is percent-encoded as %77, and in UTF-8 it is stored as the byte sequence 0x77.

What is the uppercase form of 'w' in ASCII?

'w' is code 119; its uppercase counterpart 'W' is code 87. The two always differ by 32, so you can convert by subtracting 32 (or clearing bit 0x20).

Nearby codes

Encode & convert this character