HTML Entity for Right Bracket (])
![HTML entity for Right Bracket (U+005D) — named ], hex, decimal, and CSS tutorial](/images/html-entities-right-bracket.webp)
What You'll Learn
How to display the Right Bracket (]) in HTML using the named entity, hexadecimal, decimal, and CSS escape methods. This symbol is U+005D (RIGHT SQUARE BRACKET) in the Basic Latin block (U+0000–U+007F)—the closing square bracket used in code snippets, array notation, JSON examples, and mathematical intervals.
Render it with ] (named), ], ], or CSS \5D. Related: U+005B ([, left bracket / [), U+007D (}, right brace / }).
⚡ Quick Reference — Right Bracket
U+005DBasic Latin (ASCII)
]Hexadecimal reference
]Decimal reference
]Most readable option
Name Value
──────────── ──────────
Unicode U+005D
Hex code ]
HTML code ]
Named entity ]
CSS code \5D
Meaning Right square bracket (closing bracket)
Related U+005B = left bracket ([)
U+007D = right brace (})Complete HTML Example
A simple example showing the Right Bracket (]) using the named entity, hexadecimal code, decimal HTML code, and a CSS content escape:
<!DOCTYPE html>
<html>
<head>
<style>
#point:after{
content: "\5D";
}
</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 Right Bracket (]) is part of Basic Latin and renders in all modern browsers:
👀 Live Preview
See the Right Bracket (]) in code, array, and math contexts:
🧠 How It Works
Named HTML Entity
] is the named entity for the Right Bracket (right square bracket). It is easy to read in code and documentation markup.
Hexadecimal Code
] uses the Unicode hexadecimal value 5D. The x prefix indicates hexadecimal format.
Decimal HTML Code
] uses the decimal Unicode value 93 for the same symbol.
CSS Entity
\5D is used in CSS stylesheets in the content property of pseudo-elements like ::after.
Same visual result
All four methods produce ]. Unicode U+005D is in Basic Latin. Previous: Right Brace (}). Next: Right Dashed Arrow.
Use Cases
The Right Bracket (]) is commonly used in:
Closing brackets in code examples, array access, and development documentation.
Array literals and indexing syntax in web development tutorials.
JSON array examples, API documentation, and data-structure tutorials.
Closing brackets in mathematical expressions and interval notation.
Syntax highlighting, code editors, and bracket-pair documentation.
Programming courses and coding tutorials that teach bracket usage.
💡 Best Practices
Do
- Prefer
]in HTML for readability - Use
<pre>and<code>for multi-line code samples with brackets - Pair with
[([) when showing balanced bracket pairs - Set
<meta charset="utf-8"> - Keep one encoding style per project for consistency
- Escape brackets in attribute values when they could break parsing
Don’t
- Confuse
](U+005D) with}(U+007D, right curly brace) - Confuse
]with)(U+0029, right parenthesis) - Use padded Unicode like U+0005D—the correct value is
U+005D - Use padded CSS like
\0005D—prefer\5D - Use CSS
\5Dinside HTML text nodes
Key Takeaways
Four ways to render U+005D in web content
] ] ]For CSS, use \5D in the content property
Unicode U+005D — RIGHT SQUARE BRACKET
Basic Latin block (U+0000–U+007F) — ASCII punctuation
Previous: Right Brace (}) Next: Right Dashed Arrow
❓ Frequently Asked Questions
] (named), ] (hex), ] (decimal), or \5D in CSS content. All four methods render ] correctly.U+005D (RIGHT SQUARE BRACKET). Basic Latin block (U+0000–U+007F). Hex 5D, decimal 93. The closing square bracket used in code and math.], ], ]) go in markup. The CSS escape \5D is used in stylesheets, typically on ::before or ::after. Both produce ].] is the named HTML entity for U+005D. You can also use ] (decimal), ] (hex), or \5D in CSS.Explore More HTML Entities!
Discover 1500+ HTML character references — arrows, symbols, math operators, and more.
8 people found this page helpful
