Icons
-
Alarm fill
-
Alarm
-
Alt
-
App indicator
-
App
-
Archive fill
-
Archive
-
Arrow 90deg down
-
Arrow 90deg left
-
Arrow 90deg right
-
Arrow 90deg up
-
Arrow bar down
-
Arrow bar left
-
Arrow bar right
-
Arrow bar up
-
Arrow clockwise
-
Arrow counterclockwise
-
Arrow down left
-
Arrow down right
-
Arrow down short
-
Arrow down
-
Arrow left right
-
Arrow left short
-
Arrow left
-
Arrow repeat
-
Arrow return left
-
Arrow return right
-
Arrow right short
-
Arrow right
-
Arrow up down
-
Arrow up left
-
Arrow up right
-
Arrow up short
-
Arrow up
-
Arrows angle contract
-
Arrows angle expand
-
Arrows collapse
-
Arrows expand
-
Arrows fullscreen
-
Arrows move
-
Aspect ratio fill
-
Aspect ratio
-
At
-
Award fill
-
Award
-
Backspace fill
-
Backspace reverse fill
-
Backspace reverse
-
Backspace
-
Bag fill
-
Bag
-
Bar chart fill
-
Bar chart
-
Battery charging
-
Battery full
-
Battery half
-
Battery
-
Bell fill
-
Bell
-
Blockquote left
-
Blockquote right
-
Book half
-
Book
-
Bookmark check
-
Bookmark dash
-
Bookmark fill
-
Bookmark plus
-
Bookmark
-
Bookmarks fill
-
Bookmarks
-
Bootstrap fill
-
Bootstrap reboot
-
Bootstrap
-
Bounding box circles
-
Bounding box
-
Box arrow down left
-
Box arrow down right
-
Box arrow down
-
Box arrow in down left
-
Box arrow in down right
-
Box arrow in down
-
Box arrow in left
-
Box arrow in right
-
Box arrow in up left
-
Box arrow in up right
-
Box arrow in up
-
Box arrow left
-
Box arrow right
-
Box arrow up left
-
Box arrow up right
-
Box arrow up
-
Braces
-
Briefcase fill
-
Briefcase
-
Brightness alt high fill
-
Brightness alt high
-
Brightness alt low fill
-
Brightness alt low
-
Brightness high fill
-
Brightness high
-
Brightness low fill
-
Brightness low
-
Brush
-
Bucket fill
-
Bucket
-
Building
-
Bullseye
-
Calendar fill
-
Calendar
-
Camera video fill
-
Camera video
-
Camera
-
Capslock fill
-
Capslock
-
Card checklist
-
Card heading
-
Card image
-
Card list
-
Card text
-
Caret down fill
-
Caret down
-
Caret left fill
-
Caret left
-
Caret right fill
-
Caret right
-
Caret up fill
-
Caret up
-
Chat dots fill
-
Chat dots
-
Chat fill
-
Chat quote fill
-
Chat quote
-
Chat square dots fill
-
Chat square dots
-
Chat square fill
-
Chat square quote fill
-
Chat square quote
-
Chat square
-
Chat
-
Check all
-
Check box
-
Check circle
-
Check
-
Chevron bar contract
-
Chevron bar down
-
Chevron bar expand
-
Chevron bar left
-
Chevron bar right
-
Chevron bar up
-
Chevron compact down
-
Chevron compact left
-
Chevron compact right
-
Chevron compact up
-
Chevron contract
-
Chevron double down
-
Chevron double left
-
Chevron double right
-
Chevron double up
-
Chevron down
-
Chevron expand
-
Chevron left
-
Chevron right
-
Chevron up
-
Circle fill
-
Circle half
-
Circle square
-
Circle
-
Clipboard data
-
Clipboard
-
Clock fill
-
Clock history
-
Clock
-
Cloud download
-
Cloud fill
-
Cloud upload
-
Cloud
-
Code slash
-
Code
-
Collection fill
-
Collection play fill
-
Collection play
-
Collection
-
Columns gap
-
Columns
-
Command
-
Compass
-
Cone striped
-
Cone
-
Controller
-
Credit card
-
Crop
-
Cursor fill
-
Cursor text
-
Cursor
-
Dash circle fill
-
Dash circle
-
Dash square fill
-
Dash square
-
Dash
-
Diamond fill
-
Diamond half
-
Diamond
-
Display fill
-
Display
-
Dot
-
Download
-
Droplet fill
-
Droplet half
-
Droplet
-
Egg fill
-
Egg fried
-
Egg
-
Eject fill
-
Eject
-
Envelope fill
-
Envelope open fill
-
Envelope open
-
Envelope
-
Exclamation circle fill
-
Exclamation circle
-
Exclamation diamond fill
-
Exclamation diamond
-
Exclamation octagon fill
-
Exclamation octagon
-
Exclamation square fill
-
Exclamation square
-
Exclamation triangle fill
-
Exclamation triangle
-
Exclamation
-
Exclude
-
Eye fill
-
Eye slash fill
-
Eye slash
-
Eye
-
File arrow down
-
File arrow up
-
File break
-
File check
-
File code
-
File diff
-
File earmark arrow down
-
File earmark arrow up
-
File earmark break
-
File earmark check
-
File earmark code
-
File earmark diff
-
File earmark minus
-
File earmark plus
-
File earmark ruled
-
File earmark spreadsheet
-
File earmark text
-
File earmark zip
-
File earmark
-
File minus
-
File plus
-
File post
-
File richtext
-
File ruled
-
File spreadsheet
-
File text
-
File zip
-
File
-
Files alt
-
Files
-
Film
-
Filter left
-
Filter right
-
Filter
-
Flag fill
-
Flag
-
Folder check
-
Folder fill
-
Folder minus
-
Folder plus
-
Folder symlink fill
-
Folder symlink
-
Folder
-
Fonts
-
Forward fill
-
Forward
-
Fullscreen exit
-
Fullscreen
-
Funnel fill
-
Funnel
-
Gear fill
-
Gear wide connected
-
Gear wide
-
Gear
-
Gem
-
Geo alt
-
Geo
-
Gift fill
-
Gift
-
Graph down
-
Graph up
-
Grid 1x2 fill
-
Grid 1x2
-
Grid 3x2 gap fill
-
Grid 3x2 gap
-
Grid 3x2
-
Grid 3x3 gap fill
-
Grid 3x3 gap
-
Grid 3x3
-
Grid fill
-
Grid
-
Hammer
-
Hash
-
Heart fill
-
Heart half
-
Heart
-
House door fill
-
House door
-
House fill
-
House
-
Hr
-
Image alt
-
Image fill
-
Image
-
Images
-
Inbox fill
-
Inbox
-
Inboxes fill
-
Inboxes
-
Info circle fill
-
Info circle
-
Info square fill
-
Info square
-
Info
-
Intersect
-
Justify left
-
Justify right
-
Justify
-
Kanban fill
-
Kanban
-
Laptop
-
Layers fill
-
Layers half
-
Layers
-
Layout sidebar inset reverse
-
Layout sidebar inset
-
Layout sidebar reverse
-
Layout sidebar
-
Layout split
-
Layout text sidebar reverse
-
Layout text sidebar
-
Layout text window reverse
-
Layout text window
-
Layout three columns
-
Layout wtf
-
Life preserver
-
Lightning fill
-
Lightning
-
Link 45deg
-
Link
-
List check
-
List nested
-
List ol
-
List task
-
List ul
-
List
-
Lock fill
-
Lock
-
Map
-
Mic fill
-
Mic mute fill
-
Mic mute
-
Mic
-
Moon
-
Music note beamed
-
Music note list
-
Music note
-
Music player fill
-
Music player
-
Newspaper
-
Octagon fill
-
Octagon half
-
Octagon
-
Option
-
Outlet
-
Paperclip
-
Pause fill
-
Pause
-
Pen
-
Pencil square
-
Pencil
-
Pentagon fill
-
Pentagon half
-
Pentagon
-
People circle
-
People fill
-
People
-
Person bounding box
-
Person check fill
-
Person check
-
Person dash fill
-
Person dash
-
Person fill
-
Person lines fill
-
Person plus fill
-
Person plus
-
Person square
-
Person
-
Phone landscape
-
Phone
-
Pie chart fill
-
Pie chart
-
Pip fill
-
Pip
-
Play fill
-
Play
-
Plug
-
Plus circle fill
-
Plus circle
-
Plus square fill
-
Plus square
-
Plus
-
Power
-
Puzzle fill
-
Puzzle
-
Question circle fill
-
Question circle
-
Question diamond fill
-
Question diamond
-
Question octagon fill
-
Question octagon
-
Question square fill
-
Question square
-
Question
-
Reply all fill
-
Reply all
-
Reply fill
-
Reply
-
Screwdriver
-
Search
-
Server
-
Shield fill
-
Shield lock fill
-
Shield lock
-
Shield shaded
-
Shield
-
Shift fill
-
Shift
-
Shuffle
-
Skip backward fill
-
Skip backward
-
Skip end fill
-
Skip end
-
Skip forward fill
-
Skip forward
-
Skip start fill
-
Skip start
-
Slash circle fill
-
Slash circle
-
Slash square fill
-
Slash square
-
Slash
-
Sliders
-
Soundwave
-
Speaker
-
Square fill
-
Square half
-
Square
-
Star fill
-
Star half
-
Star
-
Stop fill
-
Stop
-
Stopwatch fill
-
Stopwatch
-
Subtract
-
Sun
-
Table
-
Tablet landscape
-
Tablet
-
Tag fill
-
Tag
-
Terminal fill
-
Terminal
-
Text center
-
Text indent left
-
Text indent right
-
Text left
-
Text right
-
Textarea t
-
Textarea
-
Three dots vertical
-
Three dots
-
Toggle off
-
Toggle on
-
Toggles
-
Tools
-
Trash fill
-
Trash
-
Trash2 fill
-
Trash2
-
Triangle fill
-
Triangle half
-
Triangle
-
Trophy
-
Tv fill
-
Tv
-
Type bold
-
Type h1
-
Type h2
-
Type h3
-
Type italic
-
Type strikethrough
-
Type underline
-
Type
-
Union
-
Unlock fill
-
Unlock
-
Upload
-
View list
-
View stacked
-
Volume down fill
-
Volume down
-
Volume mute fill
-
Volume mute
-
Volume up fill
-
Volume up
-
Vr
-
Wallet
-
Watch
-
Wifi
-
Window
-
Wrench
-
X circle fill
-
X circle
-
X diamond fill
-
X diamond
-
X octagon fill
-
X octagon
-
X square fill
-
X square
-
X
Install
Bootstrap Icons are published to npm, but they can also be manually downloaded if needed.
npm
Install Bootstrap Icons via command line with npm.
npm install bootstrap-icons
Download
Our releases are published to GitHub. All icon SVGs are included in the bundle, as well as license and readme files. Our package.json
is also included, though our npm scripts are primarily available for our development workflows.
Usage
Bootstrap Icons are SVGs, so you can include them into your HTML in a few ways depending on how your project is setup. Bootstrap Icons include a width
and height
of 1em
by default to allow for easy resizing via font-size
.
Embedded
Embed your icons within the HTML of your page (as opposed to an external image file). Here we’ve used a custom width
and height
.
<svg class="bi bi-chevron-right" width="32" height="32" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M6.646 3.646a.5.5 0 01.708 0l6 6a.5.5 0 010 .708l-6 6a.5.5 0 01-.708-.708L12.293 10 6.646 4.354a.5.5 0 010-.708z" clip-rule="evenodd"/></svg>
External image
Copy the Bootstrap icons SVGs to your directory of choice and reference them like normal images with the <img>
element.
<img src="/assets/img/bootstrap.svg" alt="" width="32" height="32" title="Bootstrap">
CSS
You can also use the SVG within your CSS (be sure to escape any characters, such as #
to %23
when specifying hex color values). When no dimensions are specified via width
and height
on the <svg>
, the icon will fill the available space.
The viewBox
attribute is required if you wish to resize icons with background-size
. Note that the xmlns
attribute is required.
.bi::before {
display: inline-block;
content: "";
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/></svg>");
background-repeat: no-repeat;
background-size: 1rem 1rem;
}
Styling
Color can be changed by setting a .text-*
class or custom CSS:
<svg class="bi bi-alert-triangle text-success" width="32" height="32" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
...
</svg>
Working with SVGs
SVGs are awesome to work with, but they do have some known quirks to work around. Given the numerous ways in which SVGs can be used, we haven’t included these attributes and workarounds in our code.
-
Focus handling is broken in Internet Explorer and Edge. When embedding your SVGs, add
focusable="false"
to the<svg>
element. Learn more on Stack Overflow. -
Browsers inconsistently announce SVGs as
<img>
tags with voice assistance. Includerole="img"
when possible to avoid any issues. See this article for details. -
Safari skips
aria-label
when used non-focusable SVGs. As such, usearia-hidden="true"
when embedding the<svg>
file and use CSS to visually hide an equivalent label. More details here.
Found another issue with SVGs we should note? Please open an issue to share details.