DevKits

ASCII 123

Left Curly Bracket ({)

Printable ASCII

Left curly brace. Opens code blocks, JSON objects, and template placeholders.

Common uses & context

The character '{' — Left Curly Bracket — has ASCII code 123 (0x7B), octal 0173, binary 01111011. Left curly brace. Opens code blocks, JSON objects, and template placeholders.

Punctuation and symbol codes carry the most syntactic weight per byte in programming: a single '{' can change how a parser reads an entire expression. When '{' needs to appear as literal data rather than syntax, you often have to escape it — in string literals, in regular expressions, in URLs (where it becomes %7B), or in HTML. Knowing its exact code point (123) helps when you filter, validate, or sanitize input byte by byte.

All encodings at a glance

Decimal123
Hexadecimal0x7B
Octal0173
Binary01111011
HTML numeric entity{
URL encoding%7B
UTF-8 bytes0x7B

Code snippets

JavaScript

String.fromCharCode(123); // "{"
123.toString(16); // "7b"

Python

chr(123)           # '{'
ord(chr(123))      # 123
hex(123)           # '0x7b'

HTML

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

Programming notes

  • Code 123 (0x7B); URL-encoded form%7B.
  • In HTML the numeric entity is &#123;.
  • When used as literal data in regex or strings, '{' usually needs escaping — check the rules for your language.

Frequently asked questions

What character is ASCII code 123?

ASCII code 123 is the character '{' (Left Curly Bracket). In hexadecimal it is 0x7B, in octal 0173, and in binary 01111011.

What is 0x7B in ASCII?

Hexadecimal 0x7B equals decimal 123, which is the character '{' (Left Curly Bracket). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x7B = 123) and look up that code point.

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

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

Nearby codes

Encode & convert this character