[

ASCII Code 91

Opening bracket

About This Character

ASCII code 91 (0x5B) represents the Opening bracket character "[". The "Opening bracket" character ([) with ASCII code 91 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.

Character Encoding

Decimal 91
Octal 133
Hexadecimal 0x5B
Binary 01011011
HTML Code [
HTML Entity [
Unicode U+005B
Unicode Name LEFT SQUARE BRACKET
URL Escape %5B
Quoted-Printable [
UTF-8 (Hex) 5B
Category Printable — Brackets & Delimiters

How to Type in Code

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

See Also

Copied!