Symbol guide
How to type square brackets [ ] on your keyboard
For [ and ] on a German keyboard, hold AltGr and press 8 or 9 in Windows. On a German or Swiss German Mac, hold Option and press 5 or 6.
On this page
To type a pair such as [1], enter the opening bracket, release the modifier to type 1, then use the closing shortcut. On a US or UK keyboard the two bracket keys sit immediately to the right of P.
Opening and closing brackets on Windows
| Input layout | Open [ | Close ] |
|---|---|---|
| German (Germany) | AltGr + 8 | AltGr + 9 |
| Swiss German | AltGr + ü | AltGr + ¨ (right of ü) |
| French (Legacy, AZERTY) | AltGr + 5 | AltGr + the ) key beside 0 |
| French (Standard, AZERTY) | AltGr + 5 | AltGr + 6 |
| US or United Kingdom | First key right of P | Second key right of P |
Hold the right Alt key for AltGr. On German input, Shift + 8 and Shift + 9 give round parentheses. Use AltGr with those same two keys for square brackets.
On French AZERTY, look for the parentheses printed on the number row. The closing parenthesis is beside 0 on Legacy and on the 6 key on Standard.
Opening and closing brackets on a Mac
| Input source | Open [ | Close ] |
|---|---|---|
| German or Swiss German | Option + 5 | Option + 6 |
| French | Option + Shift + ( | Option + Shift + ) |
| U.S. or British | First key right of P | Second key right of P |
On the French Apple layout, hold Option and Shift together, then tap the key marked ( or ). If you get curly braces, keep Shift held as well as Option. You can see both layers change in Keyboard Viewer.