Left Square Bracket

[

Shortcodes

Copy useful codes for left square bracket symbol [ to use in websites, apps, blogs, and docs.

Unicode
U+005B
Alt Code
91
HTML Code
[
HEX Code
[
CSS Code
\005B
JS/JSON
\u005B
Unix/C/PHP/JAVA
0x005B
URL-encode
%5B

Customize Left Square Bracket

Customize [, download it as SVG or PNG, or copy the generated HTML snippet.

[
  

How to use Left Square Bracket Symbol in HTML, CSS, and JS

Insert in HTML

1. Direct symbol:
<span>[</span>
HTML Code:
<span>&#91;</span>
HEX Code:
<span>&#x005B;</span>

Add with CSS

.left-square-bracket::before {
  content: '\\005B';
}

Set it in JavaScript

document.querySelector('.left-square-bracket').textContent = '[';
copied