DevKits

ASCII 77

Latin Capital Letter M (M)

Printable ASCII

Uppercase letter M. ASCII code 77. The midpoint-ish of the alphabet; ROT13 maps M to Z and vice versa by shifting 13 places within the 26-letter block.

Common uses & context

Theuppercase letter 'M' has ASCII code 77 (0x4D). Its lowercase twin 'm' sits exactly 32 code points away at 109. 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 M. ASCII code 77. The midpoint-ish of the alphabet; ROT13 maps M to Z and vice versa by shifting 13 places within the 26-letter block.

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

Decimal77
Hexadecimal0x4D
Octal0115
Binary01001101
HTML numeric entity&#77;
URL encoding%4D
UTF-8 bytes0x4D

Code snippets

JavaScript

String.fromCharCode(77); // "M"
77.toString(16); // "4d"

Python

chr(77)           # 'M'
ord(chr(77))      # 77
hex(77)           # '0x4d'

HTML

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

Programming notes

  • Case toggle: 'M' | 0x20 = 'm' (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 77?

ASCII code 77 is the character 'M' (Latin Capital Letter M). In hexadecimal it is 0x4D, in octal 0115, and in binary 01001101.

What is 0x4D in ASCII?

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

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

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

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

'M' is code 77; its lowercase counterpart 'm' is code 109. The two always differ by 32, so you can convert by adding 32 (or setting bit 0x20).

Nearby codes

Encode & convert this character