How to type [ (Left square bracket)

On macOS, U.S. keyboard:

[

See the animated keys

[ on every keyboard

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 [

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

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

Related characters