ASCII A Character
The letter A (uppercase) has ASCII code 65 and is the first letter of the English alphabet. It's fundamental in programming for character operations, string processing, and alphabetical sorting.
Letter A
A
ASCII Code: 65 | Hex: 41 | Binary: 1000001
Character Information
| Property | Value |
|---|---|
| ASCII Code (Decimal) | 65 |
| ASCII Code (Hexadecimal) | 41 |
| ASCII Code (Binary) | 1000001 |
| Unicode | U+0041 |
| HTML Entity | A or A |
| Character Type | Uppercase Letter, Alphabetic |
| Lowercase Equivalent | a (ASCII 97) |
Uppercase Alphabet Range
| Letter | ASCII Code | Hex | Letter | ASCII Code | Hex |
|---|---|---|---|---|---|
| A | 65 | 41 | N | 78 | 4E |
| B | 66 | 42 | O | 79 | 4F |
| C | 67 | 43 | P | 80 | 50 |
| Z | 90 | 5A | Click any letter to copy | ||
Programming Examples
JavaScript
// Character literal
let letterA = 'A';
let fromCode = String.fromCharCode(65); // From ASCII code
let fromHex = '\x41'; // Hexadecimal escape
let fromUnicode = '\u0041'; // Unicode escape
// Character operations
let code = 'A'.charCodeAt(0); // Returns 65
let isUppercase = 'A' >= 'A' && 'A' <= 'Z'; // true
let toLowerCase = 'A'.toLowerCase(); // Returns 'a'
let letterA = 'A';
let fromCode = String.fromCharCode(65); // From ASCII code
let fromHex = '\x41'; // Hexadecimal escape
let fromUnicode = '\u0041'; // Unicode escape
// Character operations
let code = 'A'.charCodeAt(0); // Returns 65
let isUppercase = 'A' >= 'A' && 'A' <= 'Z'; // true
let toLowerCase = 'A'.toLowerCase(); // Returns 'a'
Python
# Character literal
letter_a = 'A'
from_code = chr(65) # From ASCII code
from_hex = '\x41' # Hexadecimal escape
# Character operations
code = ord('A') # Returns 65
is_uppercase = 'A'.isupper() # Returns True
to_lowercase = 'A'.lower() # Returns 'a'
letter_a = 'A'
from_code = chr(65) # From ASCII code
from_hex = '\x41' # Hexadecimal escape
# Character operations
code = ord('A') # Returns 65
is_uppercase = 'A'.isupper() # Returns True
to_lowercase = 'A'.lower() # Returns 'a'
C/C++
// Character literal
char letter_a = 'A';
char from_code = 65; // From ASCII code
char from_hex = '\x41'; // Hexadecimal escape
// Character operations
int code = (int)'A'; // Returns 65
bool is_upper = isupper('A'); // Returns true
char to_lower = tolower('A'); // Returns 'a'
char letter_a = 'A';
char from_code = 65; // From ASCII code
char from_hex = '\x41'; // Hexadecimal escape
// Character operations
int code = (int)'A'; // Returns 65
bool is_upper = isupper('A'); // Returns true
char to_lower = tolower('A'); // Returns 'a'
Common Uses
- Alphabetical Sorting: First letter in alphabetical order
- Grade Systems: Represents highest grade (A+, A, A-)
- Variable Names: Common choice for loop counters and variables
- Hexadecimal: Represents value 10 in base-16 numbering
- Character Ranges: Start of uppercase letter range (A-Z)
- String Processing: Pattern matching and text analysis
- Data Validation: Checking for alphabetic characters