HTML Entity for Left Brace ({)

What You'll Learn
How to display the Left Brace ({) in HTML using the named entity, hexadecimal, decimal, and CSS escape methods. This symbol is U+007B (LEFT CURLY BRACKET) in the Basic Latin block (U+0000–U+007F)—the opening curly brace used in code snippets, programming documentation, mathematical set notation, and JSON examples.
Render it with { (named), {, {, or CSS \7B. Related: U+007D (}, right brace / }), U+005B ([, left square bracket).
⚡ Quick Reference — Left Brace
U+007BBasic Latin (ASCII)
{Hexadecimal reference
{Decimal reference
{Most readable option
Name Value
──────────── ──────────
Unicode U+007B
Hex code {
HTML code {
Named entity {
CSS code \7B
Meaning Left curly bracket (opening brace)
Related U+007D = right brace (})
U+005B = left bracket ([)Complete HTML Example
A simple example showing the Left Brace ({) using the named entity, hexadecimal code, decimal HTML code, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\7B";
}
</style>
</head>
<body>
<p>Symbol using Hexadecimal: {</p>
<p>Symbol using HTML Code: {</p>
<p>Symbol using HTML Entity: {</p>
<p id="point">Symbol using CSS Entity: </p>
</body>
</html>🌐 Browser Support
The Left Brace ({) is part of Basic Latin and renders in all modern browsers:
👀 Live Preview
See the Left Brace ({) in code, math, and JSON contexts:
🧠 How It Works
Named HTML Entity
{ is the named entity for the Left Brace (left curly bracket). It is easy to read in code and documentation markup.
Hexadecimal Code
{ uses the Unicode hexadecimal value 7B. The x prefix indicates hexadecimal format.
Decimal HTML Code
{ uses the decimal Unicode value 123 for the same symbol.
CSS Entity
\7B is used in CSS stylesheets in the content property of pseudo-elements like ::after.
Same visual result
All four methods produce {. Unicode U+007B is in Basic Latin. Previous: Left Barb Up Right Barb Up Harpoon.
Use Cases
The Left Brace ({) is commonly used in:
Display literal { in programming tutorials, API docs, and code examples.
Set notation, e.g. { x : x > 0 }, in math content and equations.
Show JSON syntax, object literals, or template examples in documentation.
Lists, blocks, or formatted text that use braces as delimiters.
Escape { in template or config examples so it is not interpreted as syntax.
Document placeholder syntax or object schemas that include opening braces.
💡 Best Practices
Do
- Prefer
{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
}(}) when showing balanced brace pairs
Don’t
- Confuse
{(U+007B) with[(U+005B, left square bracket) - Confuse
{with((U+0028, left parenthesis) - Use CSS
\7Binside HTML text nodes - Leave raw
{in templates where it may be parsed as template syntax - Mix named and numeric entities inconsistently in the same component
Key Takeaways
Four ways to render U+007B in web content
{ { {For CSS, use \7B in the content property
Unicode U+007B — LEFT CURLY BRACKET
Basic Latin block (U+0000–U+007F) — ASCII punctuation
Previous: Left Barb Up Right Barb Up Harpoon (⥎) Next: Left Bracket
❓ Frequently Asked Questions
{ (named), { (hex), { (decimal), or \7B in CSS content. All four methods render { correctly.U+007B (LEFT CURLY BRACKET). Basic Latin block (U+0000–U+007F). Hex 7B, decimal 123. The opening curly brace used in code and math.{, {, {) go in markup. The CSS escape \7B is used in stylesheets, typically on ::before or ::after. Both produce {.{ is the named HTML entity for U+007B. You can also use { (decimal), { (hex), or \7B in CSS.Explore More HTML Entities!
Discover 1500+ HTML character references — arrows, symbols, math operators, and more.
8 people found this page helpful
