HTML Entity for Right Brace (})

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+007D

What Is the Right Brace Entity?

Right Brace (}) is the Basic Latin character at Unicode U+007D (RIGHT CURLY BRACKET). It closes code blocks, JSON objects, and set notation — and pairs with {.

Remember
Character     }
Unicode       U+007D
Hex entity    }
Decimal       }
Named entity  }  (alias })
CSS escape    \7D
Not the same  ] (bracket) · ) (parenthesis)

All of these produce the same glyph: }. Prefer } when you want an explicit entity; typing } directly is fine in normal UTF-8 HTML.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity}HTML markup (best entity default)
Hex entity}HTML markup
Decimal entity}HTML markup
CSS escape\7DStylesheet content
Direct character}UTF-8 HTML text

When to Use Which

SituationUse
Normal page text / code samplesType } directly
Readable HTML entity source} (or })
Need a numeric entity} or }
Generated text via ::before / ::aftercontent: "\7D"
Opening braceUse { (U+007B)

Live Preview

Right Brace in common coding contexts.

JSON snippet { "name": "Ada" }
Large glyph }
Named entity } → }
vs bracket / paren }  |  ]  |  )
With entities Hex: } | Decimal: } | Named: }

Complete HTML Example

One page that shows Right Brace with hex, decimal, named, and CSS. Use View Output or open the live editor.

Hex + Decimal + Named + CSS

All four ways to produce } in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Right Brace (}) in HTML</title>
  <style>
    #point::after {
      content: "\7D";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x7D;</p>
  <p>Using HTML Code: &#125;</p>
  <p>Using Named Entity: &rbrace;</p>
  <p id="point">Using CSS Entity: </p>
  <p><code>&lbrace; "ok": true &rbrace;</code></p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+007D → &#x7D; in HTML. The browser turns it into }.

2. Decimal: same code point as 125 → &#125;. Same result as hex.

3. Named: &rbrace; is the HTML5 name (alias &rcub;).

4. CSS: use \7D in content (not an HTML entity). #point::after appends that } after the paragraph text.

Pitfalls & Tips

Common mistakes when working with Right Brace.

Look-alikes

} ≠ ] ≠ )

Curly brace, square bracket, and parenthesis are different characters and Unicode points.

Pairing

Always open with {

Use &lbrace; (U+007B) for the matching left brace.

HTML

Usually safe to type

Unlike < and &, } does not need escaping in normal HTML text — entities are optional.

CSS vs HTML

Do not mix escapes

\7D belongs in CSS. &rbrace; / &#x7D; / &#125; belong in HTML.

Alias

&rcub; works too

&rcub; is an HTML5 alias for the same character as &rbrace;.

Semicolon

End references

Always finish with ; — write &rbrace;, not &rbrace.

Browser Support

Right Brace (U+007D) and its entity forms (&rbrace;, &#x7D;, &#125;, CSS \\7D) are supported in all modern browsers.

✓ Universal support

Right Brace (})

Encode with named, hex, decimal, or CSS escape — or type } directly in UTF-8 HTML.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+007D / &rbrace; Full support

Bottom line: Prefer typing } in normal text, or &rbrace; when you want an explicit entity. Use \\7D only inside CSS content.

Key Takeaways

  • Unicode: this symbol is U+007D (decimal 125).
  • HTML: prefer &rbrace; — or use &#x7D; / &#125; / type }.
  • CSS: use \7D inside content for generated text.
  • Watch out: } ≠ ] ≠ ) — and open with &lbrace;.

One line: U+007D → &rbrace; / &#x7D; / &#125; / CSS \7D.

Frequently Asked Questions

Use &rbrace; (named), &#x7D; (hex), &#125; (decimal), or the CSS escape \7D in the content property. You can also type } directly in UTF-8 HTML.
U+007D (RIGHT CURLY BRACKET). Hex 7D, decimal 125. It belongs to the Basic Latin (ASCII) block.
Yes. &rbrace; is the primary HTML5 named entity. &rcub; is a supported alias. You can also use &#x7D; or &#125;.
Use it when documenting code, JSON, or math sets and you want an explicit entity. For normal body text, typing } directly is usually fine.
HTML entities (&rbrace;, &#125;, or &#x7D;) go in markup. The CSS escape \7D is used in stylesheets (usually in the content property of ::before/::after). Both render }.
] is Right Bracket (U+005D). ) is Right Parenthesis (U+0029). } is the right curly brace (U+007D).

Did you know?

Right Brace is Unicode U+007D (decimal 125) — RIGHT CURLY BRACKET. HTML5 provides &rbrace; (alias &rcub;). Prefer it for readable source, or use &#x7D; / &#125;. Pair it with &lbrace; (U+007B) for matching braces.

Next: Right Bracket

Learn the HTML entity for the right square bracket — next in this sequence.

Continue tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

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