DevKits

ASCII 90

Latin Capital Letter Z (Z)

Printable ASCII

Uppercase letter Z. ASCII code 90 — the last uppercase letter. The next code, 91, is '[', so an off-by-one in an A-Z range check silently includes brackets.

Common uses & context

Theuppercase letter 'Z' has ASCII code 90 (0x5A). Its lowercase twin 'z' sits exactly 32 code points away at 122. 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 Z. ASCII code 90 — the last uppercase letter. The next code, 91, is '[', so an off-by-one in an A-Z range check silently includes brackets.

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

Decimal90
Hexadecimal0x5A
Octal0132
Binary01011010
HTML numeric entity&#90;
URL encoding%5A
UTF-8 bytes0x5A

Code snippets

JavaScript

String.fromCharCode(90); // "Z"
90.toString(16); // "5a"

Python

chr(90)           # 'Z'
ord(chr(90))      # 90
hex(90)           # '0x5a'

HTML

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

Programming notes

  • Case toggle: 'Z' | 0x20 = 'z' (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 90?

ASCII code 90 is the character 'Z' (Latin Capital Letter Z). In hexadecimal it is 0x5A, in octal 0132, and in binary 01011010.

What is 0x5A in ASCII?

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

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

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

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

'Z' is code 90; its lowercase counterpart 'z' is code 122. The two always differ by 32, so you can convert by adding 32 (or setting bit 0x20).

Nearby codes

Encode & convert this character