How to type } on a U.S. keyboard
⇧ Shift+]
Hold Shift and press “]”.
Not your keyboard? You are viewing: U.S.
Try it on your keyboard: the keys you press light up.
What is the right curly brace for?
The right curly brace } closes a block opened with Left curly brace {. Every opening brace needs a closing one; otherwise the program will not compile or the JSON file is invalid.
.button {
border-radius: 8px;
}
Common uses:
- the end of a function, loop or condition;
- the end of a JSON object or CSS rule;
- the end of a set in mathematics: {a, b, c}.
Pitfalls
- Unbalanced braces: most editors highlight the matching brace when the cursor is on one. Use it to find the missing one.
- The combination depends on the layout: on French – Numerical it is ⌥ Option+).
- The right square bracket Right square bracket ] is often right next to it: check what you typed.
} on each layout
| System | Layout | Key combination |
|---|---|---|
| macOS | French – Numerical | ⌥ Option+) |
| macOS | French | ⌥ Option+) |
| macOS | Belgian | ⌥ Option+) |
| macOS | Swiss French | ⌥ Option+9 |
| macOS | Canadian Multilingual (CSA) | ⌥ Option+8 |
| macOS | Canadian French | ⇧ Shift+] |
| macOS | Spanish | ⌥ Option+Ç |
| macOS | Latin American | } |
| macOS | U.S. | ⇧ Shift+] |
| macOS | ABC | ⇧ Shift+] |
| macOS | U.S. International – PC | ⇧ Shift+] |
Other methods
Character Viewer
Press fn + E (or Control + Command + Space) to open the Character Viewer, search for “}” by name, then double-click it to insert it.
Text replacement
In System Settings › Keyboard › Text Replacements, map a shortcut (for example “;;x”) to the character }: it will be inserted automatically in most apps.
} technical details
| Unicode code point | U+007D |
|---|---|
| Official Unicode name | RIGHT CURLY BRACKET |
| HTML entity | } |
| CSS | content: "\7D"; |
| JavaScript / JSON | "\u007D" |
| UTF-8 bytes | 7D |
| URL encoding | %7D |
The official name comes from the Unicode Character Database (ICU).
Related characters
Report a mistake
The combination does not work for you? Tell us what happens (macOS version, keyboard, what appears).