Skip to article
Keyboard Layout

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

Windows shortcuts for each half of the pair
Input layoutOpen [Close ]
German (Germany)AltGr + 8AltGr + 9
Swiss GermanAltGr + üAltGr + ¨ (right of ü)
French (Legacy, AZERTY)AltGr + 5AltGr + the ) key beside 0
French (Standard, AZERTY)AltGr + 5AltGr + 6
US or United KingdomFirst key right of PSecond 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

Shortcuts for Apple input sources
Input sourceOpen [Close ]
German or Swiss GermanOption + 5Option + 6
FrenchOption + Shift + (Option + Shift + )
U.S. or BritishFirst key right of PSecond 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.