Struggling to type square brackets on your Linux machine — to insert text into what you have quoted, dealing with arrays In code or giving an interval in mathematics? Find out here how to insert square brackets ( [ ] ) on Linux ⤓ using the keyboard, a character map or Unicode input.
On This Page
How to Insert Square Brackets ( [ ] ) on Linux
Using the Keyboard
Time needed: 1 minute
To type square brackets on a Linux keyboard:
- Position the text cursor where you want to insert the bracket character.
Here’s where: You will use square brackets in written text to indicate when you add something to or remove something from a quotation, in mathematical formulas, and with special meaning in programming languages, of course; typically, the opening square bracket is preceded by a whitespace character but followed by text directly and vice versa — like you would parentheses.
- Press [ to insert
[and ] to type].Location, location: You will find the [ key to the right of the P key and the ] key right next to it; [ and ] are between P and Enter.
Keyboard layouts: The keys above work for the US-English keyboard layout; see below for locating the key combination for your layout — if it’s not US-English.
[all, brackets, in, place]?
Tips help fuel these email and tech how-tos.
Find the Key Combination for Square Brackets
To identify the key or key combination that will let you insert square brackets using your keyboard on Linux:
- Open your system settings in either Gnome or KDE.
- Go to the Keyboard category.
- Gnome: Click the three dots menu for the keyboard layout under Input Sources and select View Keyboard Layout from the menu.
KDE: Highlight the desired layout on the Layouts tab and click Preview.
- Spot the ‘[’ and ‘]’ symbols on the keyboard preview.
Gnome: Press the Shift, Ctrl, Alt, AltGr and other special keys alone and in combination to reveal how it will alter each key.
KDE: The lower left portion on the key is the key pressed alone, above it is the key together with Shift; to the lower right is the key together with AltGr or Multi (typically the right Alt key), above that is the key together with Multi and Shift.
Example: On a German keyboard, [ is AltGr 8.
Using a Character Map
To input square brackets with a character map on Linux:
- Open kCharSelect.
No Characters: Gnome Characters does not include what it deems standard characters — including ‘[’ and ‘]’; you can find extra square bracketing characters with it, of course. - Type
square bracketover Enter a search term or character…. - Double-click the bracket character you want to copy for inserting.
Doubly struck and more: The search will also reveal alternative square brackets (such as full-width brackets that are as wide as the letter ‘m’ — ‘[’ — or double-struck brackets for use in mathematics) for copying. - Click To Clipboard.
- Paste the bracket where desired.
Insert Square Brackets Using the Linux “Compose” Key
To produce left and right square brackets using the Compose key on Linux:
- Set and enable the Compose key for your system.
- Position the text cursor where you want to insert the left or right bracket.
- Press Compose.
- Now type
(((two left parens or two times Shift 9 on a US-English keyboard) for the left square bracket ‘[’.
Right bracket: Type))(two right parens or Shift 0 twice) for the right bracket ‘]’.
How to Insert Square Brackets on Linux: FAQ
Can I enter ‘[’ and ‘]’ using Unicode code points?
Yes.
To type square brackets directly using Unicode code points:
- Press Ctrl Shift U.
- Type the UTF-16 code point for the desired square bracket:
Left bracket: Type005Bfor ‘[’.
Right bracket: Enter005Dfor ‘]’.
Other brackets: This also works with other UTF-16 code points. - Press Enter.

Can I also copy square brackets for pasting here?
Yes.
Left square bracket [ | |
Right square bracket ] |
Left square bracket upper corner ⎡ | |
Left square bracket bar ⎢ | |
Left square bracket lower corner ⎣ |
Right square bracket upper corner ⎤ | |
Right square bracket bar ⎥ | |
Right square bracket lower corner ⎦ |
Top square bracket ⎴ | |
Bottom square bracket ⎵ |
Double-struck (mathematical) left square bracket ⟦ | |
Double-struck (mathematical) right square bracket ⟧ |
(Tested with Gnome 47–50 and KDE 6.2; first published October 2024, last updated June 2026)
![How to Insert Square Brackets ( [ ] ) on Linux How to Insert Square Brackets ( [ ] ) on Linux](https://img.ladedu.com/wp-content/uploads/2024/10/How-to-Insert-Square-Brackets-on-Linux.jpg)


