DevKits

ASCII 125

Right Curly Bracket (})

Printable ASCII

Right curly brace. Closes code blocks, JSON objects, and template placeholders.

Common uses & context

The character '}' — Right Curly Bracket — has ASCII code 125 (0x7D), octal 0175, binary 01111101. Right curly brace. Closes 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 %7D), or in HTML. Knowing its exact code point (125) helps when you filter, validate, or sanitize input byte by byte.

All encodings at a glance

Decimal125
Hexadecimal0x7D
Octal0175
Binary01111101
HTML numeric entity}
URL encoding%7D
UTF-8 bytes0x7D

Code snippets

JavaScript

String.fromCharCode(125); // "}"
125.toString(16); // "7d"

Python

chr(125)           # '}'
ord(chr(125))      # 125
hex(125)           # '0x7d'

HTML

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

Programming notes

  • Code 125 (0x7D); URL-encoded form%7D.
  • In HTML the numeric entity is &#125;.
  • 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 125?

ASCII code 125 is the character '}' (Right Curly Bracket). In hexadecimal it is 0x7D, in octal 0175, and in binary 01111101.

What is 0x7D in ASCII?

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

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

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

Nearby codes

Encode & convert this character