[ on every keyboard
| System | Layout | Key combination |
|---|---|---|
| macOS | French – Numerical | ⌥ Option+⇧ Shift+( |
| macOS | French | ⌥ Option+⇧ Shift+( |
| macOS | Belgian | ⌥ Option+⇧ Shift+( |
| macOS | Swiss French | ⌥ Option+5 |
| macOS | Canadian Multilingual (CSA) | ⌥ Option+9 |
| macOS | Canadian French | [ |
| macOS | Spanish | ⌥ Option+` |
| macOS | Latin American | ⇧ Shift+{ |
| macOS | U.S. | [ |
| macOS | ABC | [ |
| macOS | U.S. International – PC | [ |
What is the left square bracket for?
The left square bracket [ is mostly used in programming and editing:
- arrays and lists:
colors = ["red", "green"]in Python or JavaScript; - indexing:
colors[0]; - Markdown links:
[link text](https://example.com); - regular expressions:
[a-z]matches a lowercase letter; - in editing, for insertions or omissions in a quotation: “She said [that] it was fine”, [sic], or […].
It always comes with its partner, Right square bracket ].
Pitfalls
- On this layout: [. On French – Numerical: ⌥ Option+⇧ Shift+(.
- Do not confuse it with the curly brace Left curly brace {, often on the same key with a different modifier.
[ technical details
| Unicode code point | U+005B |
|---|---|
| Official Unicode name | LEFT SQUARE BRACKET |
| HTML entity | [ |
| CSS | content: "\5B"; |
| JavaScript / JSON | "\u005B" |
| UTF-8 bytes | 5B |
| URL encoding | %5B |
The official name comes from the Unicode Character Database (ICU).