HTML Entity for Right Bracket (])

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

What Is the Right Bracket Entity?

Right Bracket (]) is the Basic Latin character at Unicode U+005D (RIGHT SQUARE BRACKET). It closes arrays, indexes, and math intervals — and pairs with [.

Remember
Character     ]
Unicode       U+005D
Hex entity    ]
Decimal       ]
Named entity  ]  (alias ])
CSS escape    \5D
Not the same  } (brace) · ) (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\5DStylesheet 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: "\5D"
Opening bracketUse [ (U+005B)

Live Preview

Right Bracket in common coding contexts.

Array snippet [1, 2, 3]
Large glyph ]
Named entity ] → ]
vs brace / paren ]  |  }  |  )
With entities Hex: ] | Decimal: ] | Named: ]

Complete HTML Example

One page that shows Right Bracket 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 Bracket (]) in HTML</title>
  <style>
    #point::after {
      content: "\5D";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x5D;</p>
  <p>Using HTML Code: &#93;</p>
  <p>Using Named Entity: &rbrack;</p>
  <p id="point">Using CSS Entity: </p>
  <p><code>&lbrack;1, 2, 3&rbrack;</code></p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+005D → &#x5D; in HTML. The browser turns it into ].

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

3. Named: &rbrack; is the HTML5 name (alias &rsqb;).

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

Pitfalls & Tips

Common mistakes when working with Right Bracket.

Look-alikes

] ≠ } ≠ )

Square bracket, curly brace, and parenthesis are different characters and Unicode points.

Pairing

Always open with [

Use &lbrack; (U+005B) for the matching left bracket.

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

\5D belongs in CSS. &rbrack; / &#x5D; / &#93; belong in HTML.

Alias

&rsqb; works too

&rsqb; is an HTML5 alias for the same character as &rbrack;.

Semicolon

End references

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

Browser Support

Right Bracket (U+005D) and its entity forms (&rbrack;, &#x5D;, &#93;, CSS \\5D) are supported in all modern browsers.

✓ Universal support

Right Bracket (])

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+005D / &rbrack; Full support

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

Key Takeaways

  • Unicode: this symbol is U+005D (decimal 93).
  • HTML: prefer &rbrack; — or use &#x5D; / &#93; / type ].
  • CSS: use \5D inside content for generated text.
  • Watch out: ] ≠ } ≠ ) — and open with &lbrack;.

One line: U+005D → &rbrack; / &#x5D; / &#93; / CSS \5D.

Frequently Asked Questions

Use &rbrack; (named), &#x5D; (hex), &#93; (decimal), or the CSS escape \5D in the content property. You can also type ] directly in UTF-8 HTML.
U+005D (RIGHT SQUARE BRACKET). Hex 5D, decimal 93. It belongs to the Basic Latin (ASCII) block.
Yes. &rbrack; is the primary HTML5 named entity. &rsqb; is a supported alias. You can also use &#x5D; or &#93;.
Use it when documenting arrays, indexes, or math intervals and you want an explicit entity. For normal body text, typing ] directly is usually fine.
HTML entities (&rbrack;, &#93;, or &#x5D;) go in markup. The CSS escape \5D is used in stylesheets (usually in the content property of ::before/::after). Both render ].
} is Right Brace (U+007D). ) is Right Parenthesis (U+0029). ] is the right square bracket (U+005D).

Did you know?

Right Bracket is Unicode U+005D (decimal 93) — RIGHT SQUARE BRACKET. HTML5 provides &rbrack; (alias &rsqb;). Prefer it for readable source, or use &#x5D; / &#93;. Pair it with &lbrack; (U+005B) for matching brackets.

Next: Right Dashed Arrow

Learn the HTML entity for the rightwards dashed arrow — next in this sequence.

Continue tutorial →

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