P

ASCII Character: Uppercase P

ASCII Code 80 · Unicode U+0050 · Hex 0x50

P uppercase-p

About the Uppercase P Character

ASCII code 80 (0x50) represents the Uppercase P character "P". The uppercase letter "P" has ASCII code 80. Uppercase letters A–Z span codes 65–90. The relationship between uppercase and lowercase ASCII letters is consistent: adding 32 to an uppercase letter’s code gives the corresponding lowercase letter (e.g., 'A' at 65 + 32 = 'a' at 97). The printable ASCII characters (codes 32–126) include the space, digits, uppercase and lowercase Latin letters, and common punctuation symbols. These 95 characters form the foundation of text representation in virtually all computing systems and are universally supported across all character encodings, programming languages, and operating systems.

Encoding Details

ASCII Code 80
Hexadecimal 0x50
Octal 120
Binary 01010000
Unicode U+0050
Unicode Name LATIN CAPITAL LETTER P
HTML Numeric P
HTML Entity
URL Escape %50
UTF-8 (Hex) 50
Quoted-Printable P

Source Code Examples

JavaScript
// Character literal
let char = 'P';
// Using char code
let char2 = String.fromCharCode(80);
// Unicode escape
let char3 = '\x50';
Python
# Character literal
char = 'P'
# Using chr()
char = chr(80)
# Using ord() to get code
code = ord('P')  # Returns 80
HTML
<!-- Direct character -->
P
<!-- HTML entity (numeric) -->
&#80;
<!-- Hex entity -->
&#x50;
C#
// Character literal
char c = 'P';
// Using cast
char c2 = (char)80;
// To get code from char
int code = (int)'P';  // Returns 80

Navigate

Copied!