(

ASCII Character: Opening parenthesis

ASCII Code 40 · Unicode U+0028 · Hex 0x28

left-parenthesis opening-parenthesis open-paren

About the Opening parenthesis Character

ASCII code 40 (0x28) represents the Opening parenthesis character "(". The "Opening parenthesis" character (() with ASCII code 40 is a bracket or delimiter character. Brackets are used in programming for grouping expressions, array indexing, object literals, and defining code blocks. They always come in matching pairs. 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 40
Hexadecimal 0x28
Octal 050
Binary 00101000
Unicode U+0028
Unicode Name LEFT PARENTHESIS
HTML Numeric (
HTML Entity &lparen;
URL Escape %28
UTF-8 (Hex) 28
Quoted-Printable (

Source Code Examples

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

Navigate

Copied!