How to Type Square Brackets []
Keyboard shortcuts for Windows, Mac, Chromebook, iPhone & Android. Type or copy all bracket types instantly.
Brackets & Parentheses to Copy
Click any bracket to copy instantly
Square brackets [ ] are essential in programming, mathematics, linguistics, and everyday writing. They're used for arrays in code, citations in academic writing, phonetic transcriptions, and optional elements in documentation.
On US and UK keyboards, square brackets have dedicated keys. But on German (QWERTZ) and many international keyboards, they require special key combinations — AltGr+8 for [ and AltGr+9 for ] — which can be frustrating to discover.
This guide covers square brackets and all related bracket types across every major platform. Whether you're writing code, editing an academic paper, or formatting text, you'll find the right method for your device below. All bracket characters on this page are Unicode text that works everywhere.
When to reach for how to type square brackets
How to Type Square Brackets [] isn't the kind of tool you use every day — it's the kind you reach for at the exact moment a plain text editor runs out of options. A word counter ignores social-media character limits; a case converter doesn't know CamelCase from kebab-case; a base-64 encoder isn't installed on your phone. This page solves one narrow problem well, and it does so without a round-trip to any server: every transformation happens in the browser tab, so the text you paste stays on your device.
The speed difference is measurable. Paste a 10 000-word document and the output updates as you type — there's no latency, no queue, no sign-up wall. Because the output is ordinary Unicode text, it pastes into any app that accepts keyboard input: chat windows, forms, spreadsheets, documents. If you use how to type square brackets often, bookmark this page and share the URL with colleagues — their session state will look identical to yours, cache lifetime a full year, page weight under 150 KB.
Square Brackets FAQ
The alt code for the left square bracket [ is Alt+91. For the right square bracket ] it's Alt+93. Hold Alt, type the number on the numeric keypad, then release. For curly brackets: Alt+123 for { and Alt+125 for }. Num Lock must be enabled.
On a German QWERTZ keyboard, press AltGr+8 for [ and AltGr+9 for ]. AltGr is the right Alt key. For curly brackets, press AltGr+7 for { and AltGr+0 for }. On German Mac keyboards, use Option+5 for [ and Option+6 for ].
Square brackets [] are used for arrays in programming, optional items in documentation, and editorial comments in quotes. Curly brackets {} (braces) define code blocks, objects, and sets. Parentheses () group expressions, contain supplementary information, and define function parameters. In math, they follow the nesting order: {[()]}.
On US/UK Mac keyboards, press the [ and ] keys directly (to the right of P). On German Mac keyboards: press Option+5 for [ and Option+6 for ]. For curly brackets: Option+8 for { and Option+9 for }.
Square brackets are fundamental in programming: array indexing (arr[0]), list definitions in Python ([1, 2, 3]), object property access in JavaScript (obj['key']), regex character classes ([a-z]), and JSON arrays. They're one of the most frequently typed characters in code.
Yes! Unicode offers many decorative bracket styles that work on all platforms: 【title】for emphasis, ⟦text⟧ for mathematical notation, and ⟨angle brackets⟩ for linguistic or technical writing. All bracket characters on this page are Unicode text that displays correctly everywhere.