Identify Unicode Bracket Characters
How to tell Unicode bracket characters apart by code point, what mirroring and reversal actually change, and when plain ASCII brackets are the safer choice.
A bracket that looks like an ordinary parenthesis can be one of several distinct Unicode characters. Each has its own code point, name and properties. The difference rarely matters on screen. It matters a great deal when text is pasted into code, searched, normalized, reversed or displayed in a right-to-left language. This guide explains how to identify which bracket you have and what common transformations do to it. It also helps you judge whether a styled or substituted bracket will still work where you plan to use it.
Short answer: when a substituted bracket is suitable
Non-ASCII brackets can be useful in some places. Corner brackets suit Japanese or Chinese prose, mathematical angle brackets suit notation, and ornamental parentheses suit decorative headings. Their main benefit is visual and typographic precision. The decisive tradeoff is that software treats them as different characters from the familiar ASCII ones. Programming languages, data formats, command lines, search boxes and many parsers expect the ASCII parenthesis, square bracket and curly bracket. Use plain ASCII brackets whenever text must be executed, parsed, searched reliably or edited by other people. Use them as well when you cannot check how the destination renders unusual characters.
What makes a character a bracket in Unicode
Unicode does not have one bracket block. Brackets are spread across Basic Latin, General Punctuation, Miscellaneous Technical, Dingbats, Miscellaneous Mathematical Symbols, CJK Symbols and Punctuation, Small Form Variants, and Halfwidth and Fullwidth Forms, among others. Three properties in the Unicode Character Database are the most reliable identifiers:
- General Category: opening brackets are Ps (Open Punctuation) and closing brackets are Pe (Close Punctuation).
- Bidi_Mirrored: brackets are flagged so that renderers can display a mirrored glyph in right-to-left text.
- Bidi_Paired_Bracket and Bidi_Paired_Bracket_Type: these link each opening bracket to its closing partner and mark it as Open or Close. They are listed in the BidiBrackets.txt data file.
Some characters that people call brackets do not fall in these categories. The less-than sign (U+003C) and greater-than sign (U+003E) are math symbols (category Sm), even though markup languages use them as angle brackets. The single angle quotation marks (U+2039 and U+203A) are quotation punctuation, not brackets, even though they look similar.
Common bracket characters and how they differ
| Code points | Name | Typical use or note |
| U+0028 / U+0029 | LEFT / RIGHT PARENTHESIS | ASCII; required by programming languages and most data formats |
| U+005B / U+005D | LEFT / RIGHT SQUARE BRACKET | ASCII; arrays, citations, markup |
| U+007B / U+007D | LEFT / RIGHT CURLY BRACKET | ASCII; code blocks, sets, templates |
| U+FF08 / U+FF09 | FULLWIDTH LEFT / RIGHT PARENTHESIS | East Asian typography; folds to U+0028 / U+0029 under NFKC |
| U+FE59 / U+FE5A | SMALL LEFT / RIGHT PARENTHESIS | Compatibility form; folds to ASCII under NFKC |
| U+207D / U+207E | SUPERSCRIPT LEFT / RIGHT PARENTHESIS | Raised form; folds to ASCII under NFKC |
| U+27E8 / U+27E9 | MATHEMATICAL LEFT / RIGHT ANGLE BRACKET | Mathematical notation such as inner products |
| U+3008 / U+3009 | LEFT / RIGHT ANGLE BRACKET | CJK punctuation |
| U+2329 / U+232A | LEFT-POINTING / RIGHT-POINTING ANGLE BRACKET | Canonically equivalent to U+3008 / U+3009, so even NFC normalization replaces them; use is discouraged |
| U+300C / U+300D | LEFT / RIGHT CORNER BRACKET | Quotation marks in Japanese and Chinese text |
| U+3010 / U+3011 | LEFT / RIGHT BLACK LENTICULAR BRACKET | CJK headings and emphasis |
| U+27E6 / U+27E7 | MATHEMATICAL LEFT / RIGHT WHITE SQUARE BRACKET | Semantic brackets in logic and mathematics |
| U+2768 / U+2769 | MEDIUM LEFT / RIGHT PARENTHESIS ORNAMENT | Decorative dingbat; easily mistaken for an ordinary parenthesis |
The table is a selection, not a complete inventory. Unicode also encodes vertical presentation forms, bracket pieces for building tall brackets, and many other paired brackets. To get the full and current list, filter the Unicode Character Database by the Ps and Pe categories.
What reversal, mirroring and substitution actually change
These terms are often used loosely, but they describe different operations. Some change the stored characters. Others change only how the same characters are drawn.
- Character reversal changes the stored text. Reversing f(x) code point by code point produces )x(f. The brackets keep their identities, so the closing parenthesis now comes first and both point the wrong way for the new order.
- Mirroring in a mirror-text or flip tool usually means character substitution. The tool swaps opening and closing brackets, or replaces letters with lookalike characters, so that the result appears reflected. The stored characters change, and the output may include characters from unrelated blocks.
- Bidirectional mirroring is presentation only. In a right-to-left paragraph, a renderer displays U+0028 with the glyph shape of a closing parenthesis so that it still opens the phrase in reading order. The stored character is still U+0028.
- CSS transforms, such as flipping an element horizontally, change only the visual rendering. Copying the text gives back the original characters.
- 'Font' tools that offer bracket styles usually substitute different code points, such as fullwidth, small or ornamental brackets. They do not apply an actual typeface.
Code-point reversal causes problems when combining marks or multi-code-point sequences sit next to brackets. Take (é), where é is written as the letter e followed by U+0301 COMBINING ACUTE ACCENT. Reversed code point by code point, it becomes ) U+0301 e (. The accent now attaches to the parenthesis instead of the letter. Emoji built from several code points, such as those using zero-width joiners or skin-tone modifiers, can also break apart. A reversal tool that works on whole user-perceived characters (grapheme clusters) avoids this splitting. It still does not swap bracket direction unless it is designed to.
How to identify the bracket you have
Looking at a bracket is not reliable. Fonts draw fullwidth, ornamental and ASCII parentheses in ways that can be nearly identical. In right-to-left text, the glyph you see may be the mirror of the character that is actually stored. Inspecting the code point is the only dependable method. Visual clues can still suggest that a closer look is needed:
- Extra space around the bracket often points to a fullwidth form.
- Unusual weight, curvature or vertical position can indicate a dingbat ornament, a superscript form or a small form variant.
- A bracket that breaks code, or does not match in a search, is likely a non-ASCII character.
- A bracket that seems to face the wrong way in Arabic or Hebrew text may be an ASCII bracket displayed with bidirectional mirroring.
If you can run a short script, Python's standard library reports the code point, category, official name and mirroring flag for each character in a string:
import unicodedata
text = "((⟨〈❨"
for ch in text:
print(f"U+{ord(ch):04X}",
unicodedata.category(ch),
unicodedata.name(ch, "UNNAMED"),
unicodedata.mirrored(ch))
Each output line shows the hexadecimal code point, the general category (Ps or Pe for brackets), the Unicode name and whether the character is bidi-mirrored. Paste the suspect text into the string to check it. Results reflect the Unicode version bundled with your Python installation, so very recently added characters may be missing from older versions.
Without scripting, look for a 'Unicode character inspector', 'code point lookup' or 'Unicode character identifier'. These tools accept pasted text and list each code point. The Unicode Consortium publishes official code charts and the Unicode Character Database, including BidiBrackets.txt and BidiMirroring.txt, which are the authoritative sources for bracket pairing and mirroring. Many operating systems include a character viewer or character map. Their names, locations and features vary by version, and none were checked for this article. Confirm what your own system provides before you rely on one. Do not assume anything about how a third-party web inspector handles or keeps pasted text based only on its appearance. Check its stated policies if the text is sensitive.
Copying, sharing and compatibility
Copy and paste generally keeps the exact code point. The bracket that arrives is the one that was sent, and a substituted character does not quietly turn back into ASCII. Several things can still change how it behaves at the destination:
- Code and data: compilers, interpreters, JSON, shell commands and spreadsheet formulas generally recognize only ASCII brackets. A fullwidth or ornamental parenthesis is treated as an unrelated character, which usually causes an error or a wrong result.
- Normalization: systems that apply NFKC replace fullwidth, small and superscript parentheses with ASCII ones. Systems that apply even NFC replace U+2329 and U+232A with U+3008 and U+3009. Text can therefore change after it is stored or processed.
- Search and matching: searching for an ASCII parenthesis does not find a fullwidth or ornamental one unless the search engine normalizes or folds characters. Whether a given site or app does this is not documented in the material behind this article.
- Fonts: rarer brackets, especially dingbats and mathematical forms, may appear as empty boxes or fallback glyphs on devices whose fonts lack them.
- Reading order: in mixed left-to-right and right-to-left text, the Unicode Bidirectional Algorithm uses bracket pairing to decide placement. Unmatched or substituted brackets can make punctuation appear in unexpected positions. Reversed strings make this worse, because opening and closing roles no longer match the reading order.
- Assistive technology: screen readers may announce bracket names, skip punctuation or read substituted characters by their full Unicode names, depending on the product and its punctuation settings. No screen reader behavior was tested for this article, so check with the assistive technology your audience uses.
Provide a plain-text equivalent with ASCII brackets wherever text will be read by software, quoted in technical contexts, indexed for search or used by people with assistive technology. A decorative bracket can be kept for display when the same content is also available in plain form.
Gaps and limits of this overview
The character names, categories and normalization behavior above come from published Unicode properties, which you can verify in the Unicode Character Database. The overview does not include tested rendering results for any specific platform, browser, font, messaging app or screen reader. It also makes no claims about the features or data handling of any particular inspection or transformation tool. Before publishing styled or substituted brackets, check them in the actual destination, ideally with the fonts and assistive technologies your readers use.