HTML Entity for Right Brace (})

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+007D

What You'll Learn

How to display the Right Brace (}) in HTML using the named entity, hexadecimal, decimal, and CSS escape methods. This symbol is U+007D (RIGHT CURLY BRACKET) in the Basic Latin block (U+0000–U+007F)—the closing curly brace used in code snippets, JavaScript objects, JSON data structures, and programming documentation.

Render it with } (named), }, }, or CSS \7D. Related: U+007B ({, left brace / {), U+005D (], right square bracket).

⚡ Quick Reference — Right Brace

Unicode U+007D

Basic Latin (ASCII)

Hex Code }

Hexadecimal reference

HTML Code }

Decimal reference

Named Entity }

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+007D
Hex code       }
HTML code      }
Named entity   }
CSS code       \7D
Meaning        Right curly bracket (closing brace)
Related        U+007B = left brace ({)
               U+005D = right bracket (])
1

Complete HTML Example

A simple example showing the Right Brace (}) using the named entity, hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\7D";
  }
 </style>
</head>
<body>
<p>Symbol using Hexadecimal: &#x7D;</p>
<p>Symbol using HTML Code: &#125;</p>
<p>Symbol using HTML Entity: &rbrace;</p>
<p id="point">Symbol using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Right Brace (}) is part of Basic Latin and renders in all modern browsers:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the Right Brace (}) in code, JSON, and programming contexts:

JSON object { "name": "value" }
JavaScript const obj = { key: "val" };
Function block function() { return true; }
Large glyph }
Brace pair { }
Entity refs &rbrace; &#x7D; &#125; \7D

🧠 How It Works

1

Named HTML Entity

&rbrace; is the named entity for the Right Brace (right curly bracket). It is easy to read in code and documentation markup.

HTML markup
2

Hexadecimal Code

&#x7D; uses the Unicode hexadecimal value 7D. The x prefix indicates hexadecimal format.

HTML markup
3

Decimal HTML Code

&#125; uses the decimal Unicode value 125 for the same symbol.

HTML markup
4

CSS Entity

\7D is used in CSS stylesheets in the content property of pseudo-elements like ::after.

CSS stylesheet
=

Same visual result

All four methods produce }. Unicode U+007D is in Basic Latin. Previous: Right Arrowhead Up (͖). Next: Right Bracket.

Use Cases

The Right Brace (}) is commonly used in:

💻 Programming

Closing braces in code examples, tutorials, and development documentation.

⚙ JavaScript

Object literals, function blocks, and ES module syntax in web docs.

📄 JSON

JSON syntax, API documentation, and data-structure examples.

🗃 Code blocks

Syntax highlighting and code editors showing closing block braces.

🎓 Education

Programming courses and coding tutorials that teach brace usage.

🛠 API docs

Document object schemas, request bodies, and placeholder syntax.

💡 Best Practices

Do

  • Prefer &rbrace; in HTML for readability
  • Use <pre> and <code> for multi-line code samples with braces
  • Escape } in template engines (EJS, Handlebars) when showing literal syntax
  • Set <meta charset="utf-8">
  • Keep one encoding style per project for consistency
  • Pair with &lbrace; ({) when showing balanced brace pairs

Don’t

  • Confuse &rbrace; (U+007D) with &rbrack; (U+005D, right square bracket)
  • Confuse &rbrace; with &rpar; (U+0029, right parenthesis)
  • Use padded Unicode like U+0007D—the correct value is U+007D
  • Use padded CSS like \0007D—prefer \7D
  • Leave raw } in templates where it may be parsed as template syntax

Key Takeaways

1

Four ways to render U+007D in web content

&rbrace; &#x7D; &#125;
2

For CSS, use \7D in the content property

3

Unicode U+007D — RIGHT CURLY BRACKET

4

Basic Latin block (U+0000–U+007F) — ASCII punctuation

❓ Frequently Asked Questions

Use &rbrace; (named), &#x7D; (hex), &#125; (decimal), or \7D in CSS content. All four methods render } correctly.
U+007D (RIGHT CURLY BRACKET). Basic Latin block (U+0000–U+007F). Hex 7D, decimal 125. The closing curly brace used in code and JSON.
In code snippets, programming documentation, JavaScript object examples, JSON data structures, function definitions, and any content that requires a literal closing curly bracket.
Named and numeric HTML references (&rbrace;, &#125;, &#x7D;) go in markup. The CSS escape \7D is used in stylesheets, typically on ::before or ::after. Both produce }.
Yes. &rbrace; is the named HTML entity for U+007D. You can also use &#125; (decimal), &#x7D; (hex), or \7D in CSS.

Explore More HTML Entities!

Discover 1500+ HTML character references — arrows, symbols, math operators, and more.

All HTML Entities →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful