DevKits

ASCII 85

Latin Capital Letter U (U)

Printable ASCII

Uppercase letter U. ASCII code 85. The 'U' in a \uXXXX Unicode escape must be lowercase in JSON, but uppercase \U introduces 8-digit escapes in some languages.

Common uses & context

Theuppercase letter 'U' has ASCII code 85 (0x55). Its lowercase twin 'u' sits exactly 32 code points away at 117. 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 U. ASCII code 85. The 'U' in a \uXXXX Unicode escape must be lowercase in JSON, but uppercase \U introduces 8-digit escapes in some languages.

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 'U' to its lowercase form youset bit 5: 'U' | 0x20 gives 'u'. 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

Decimal85
Hexadecimal0x55
Octal0125
Binary01010101
HTML numeric entity&#85;
URL encoding%55
UTF-8 bytes0x55

Code snippets

JavaScript

String.fromCharCode(85); // "U"
85.toString(16); // "55"

Python

chr(85)           # 'U'
ord(chr(85))      # 85
hex(85)           # '0x55'

HTML

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

Programming notes

  • Case toggle: 'U' | 0x20 = 'u' (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 85?

ASCII code 85 is the character 'U' (Latin Capital Letter U). In hexadecimal it is 0x55, in octal 0125, and in binary 01010101.

What is 0x55 in ASCII?

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

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

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

What is the lowercase form of 'U' in ASCII?

'U' is code 85; its lowercase counterpart 'u' is code 117. The two always differ by 32, so you can convert by adding 32 (or setting bit 0x20).

Nearby codes

Encode & convert this character