] is the Unicode character RIGHT SQUARE BRACKET, code point U+005D (decimal 93) in the Basic Latin block, added in Unicode 1.1. In HTML write ], and in UTF-8 it is the single byte 5D.
Codes
| Where | How to write it |
|---|---|
| Code point | U+005D |
| Decimal | 93 |
| UTF-8 bytes | 5D |
| UTF-16 (big-endian) | 005D |
| UTF-32 | 0000005D |
| HTML decimal | ] |
| HTML hex | ] |
| HTML named | ] ] |
| CSS | \5D |
| JavaScript | \u005D |
| JSON | \u005D |
| Python | \u005D |
| Python by name | \N{RIGHT SQUARE BRACKET} |
| Java, C# | \u005D |
| Rust, Swift | \u{5D} |
| Go, C, C++ | \u005D |
| URL (percent-encoded) | %5D |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | RIGHT SQUARE BRACKET |
| Code point | U+005D (decimal 93) |
| Block | Basic Latin (U+0000–U+007F) |
| General category | Pe: Closing punctuation |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | Yes |
| First in Unicode version | 1.1 |
Nearby in Basic Latin
- U U+0055 Latin Capital Letter U
- V U+0056 Latin Capital Letter V
- W U+0057 Latin Capital Letter W
- X U+0058 Latin Capital Letter X
- Y U+0059 Latin Capital Letter Y
- Z U+005A Latin Capital Letter Z
- [ U+005B Left Square Bracket
- \ U+005C Reverse Solidus
- ^ U+005E Circumflex Accent
- _ U+005F Low Line
- ` U+0060 Grave Accent
- a U+0061 Latin Small Letter A
- b U+0062 Latin Small Letter B
- c U+0063 Latin Small Letter C
- d U+0064 Latin Small Letter D
- e U+0065 Latin Small Letter E
All 128 characters: Basic Latin.
Official reference
Questions people ask
- What is the HTML code for ]?
- Use the named entity ], or ] (decimal) or ] (hex).
- What is the UTF-8 encoding of U+005D?
- 5D (hex), 1 byte. In a URL it is %5D.
- How do I write U+005D in JavaScript or Python?
- JavaScript: \u005D. Python: \u005D.
Source
Unicode Character Database 18.0.0 (Unicode License v3); HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in