How to type [ on a Swiss French keyboard

⌥ Option+5

Hold Option and press “5”.

Not your keyboard? You are viewing: Swiss French
Hold Option and press “5”.escF1F2F3F4F5F6F7F8F9F10F11F12§°1+2"3*4ç5%6&7/8(9)0='?^`⌫⇥QWERTZUIOPèü¨!↩⇪ASDFGHJKLéöàä$£⇧<>YXCVBNM,;.:-_⇧fn⌃⌥⌘⌘⌥◀▲▼▶

Try it on your keyboard: the keys you press light up.

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: ⌥ Option+5. 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.

[ on each layout

SystemLayoutKey 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 [

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 pointU+005B
Official Unicode nameLEFT SQUARE BRACKET
HTML entity&#91;
CSScontent: "\5B";
JavaScript / JSON"\u005B"
UTF-8 bytes5B
URL encoding%5B

The official name comes from the Unicode Character Database (ICU).

Related characters

Practice on this layout

Report a mistake

The combination does not work for you? Tell us what happens (macOS version, keyboard, what appears).