DevKits

ASCII 41

Right Parenthesis ())

Printable ASCII

Right parenthesis. Closes a group.

Common uses & context

The character ')' — Right Parenthesis — has ASCII code 41 (0x29), octal 0051, binary 00101001. Right parenthesis. Closes a group.

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 %29), or in HTML. Knowing its exact code point (41) helps when you filter, validate, or sanitize input byte by byte.

All encodings at a glance

Decimal41
Hexadecimal0x29
Octal0051
Binary00101001
HTML numeric entity)
URL encoding%29
UTF-8 bytes0x29

Code snippets

JavaScript

String.fromCharCode(41); // ")"
41.toString(16); // "29"

Python

chr(41)           # ')'
ord(chr(41))      # 41
hex(41)           # '0x29'

HTML

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

Programming notes

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

ASCII code 41 is the character ')' (Right Parenthesis). In hexadecimal it is 0x29, in octal 0051, and in binary 00101001.

What is 0x29 in ASCII?

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

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

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

Nearby codes

Encode & convert this character