Font Awesome to Bootstrap Icons Mapping: 53 Class Names

Font Awesome to Bootstrap Icons mapping: 53 fa-solid classes and their bi equivalents, checked against both packs, plus licenses, CDN links and which to pick.

Amit Yadav
8 min read
On this page

Moving from Font Awesome to Bootstrap Icons is mostly a class name swap: fa-solid fa-magnifying-glass becomes bi bi-search, fa-solid fa-xmark becomes bi bi-x-lg. The mapping table below lists 53 common icons. Every name in it was checked against the current Bootstrap Icons, Font Awesome 6 and Font Awesome 7 icon sets.

Quick answer

  • Mapping: the 53 most used fa-solid classes and their bi equivalents are in the table below. Font Awesome 6 and 7 use the same names for all of them.
  • License: Bootstrap Icons is MIT for everything. Font Awesome Free is CC BY 4.0 for icons, SIL OFL 1.1 for fonts and MIT for code.
  • Size of set: Bootstrap Icons has 2,000+ icons in one style (outline plus -fill variants). Font Awesome Free Solid has 2,000+, plus a small Regular set and brand logos.
  • Pick Bootstrap Icons for a Bootstrap project or a clean MIT license. Stay on Font Awesome if you need brand logos or plan to buy Pro styles.
Library
Samples
graph-upcard-imagecode-slashegg-fillbrilliance
location-pingemfoldermoundtoggle-on
Icons
2,078
2,000
License
MIT
CC-BY-4.0
Author
The Bootstrap Authors
Dave Gandy
Category
UI 16px / 32px
UI Other / Mixed Grid
Multicolor
No
No

Font Awesome to Bootstrap Icons mapping

Names differ more than you would expect, and Bootstrap Icons marks filled variants with a -fill suffix where Font Awesome uses the Solid style.

Font Awesome 6 and 7 (Solid) Bootstrap Icons
fa-solid fa-house bi bi-house
fa-solid fa-user bi bi-person
fa-solid fa-users bi bi-people
fa-solid fa-magnifying-glass bi bi-search
fa-solid fa-gear bi bi-gear
fa-solid fa-bell bi bi-bell
fa-solid fa-trash bi bi-trash
fa-solid fa-trash-can bi bi-trash3
fa-solid fa-pen bi bi-pencil
fa-solid fa-pen-to-square bi bi-pencil-square
fa-solid fa-xmark bi bi-x-lg
fa-solid fa-check bi bi-check-lg
fa-solid fa-plus bi bi-plus-lg
fa-solid fa-minus bi bi-dash-lg
fa-solid fa-bars bi bi-list
fa-solid fa-ellipsis-vertical bi bi-three-dots-vertical
fa-solid fa-envelope bi bi-envelope
fa-solid fa-phone bi bi-telephone
fa-solid fa-comment bi bi-chat
fa-solid fa-heart bi bi-heart-fill
fa-solid fa-star bi bi-star-fill
fa-solid fa-cart-shopping bi bi-cart
fa-solid fa-download bi bi-download
fa-solid fa-upload bi bi-upload
fa-solid fa-arrow-right bi bi-arrow-right
fa-solid fa-arrow-left bi bi-arrow-left
fa-solid fa-chevron-down bi bi-chevron-down
fa-solid fa-chevron-right bi bi-chevron-right
fa-solid fa-rotate-right bi bi-arrow-clockwise
fa-solid fa-circle-info bi bi-info-circle-fill
fa-solid fa-circle-exclamation bi bi-exclamation-circle-fill
fa-solid fa-triangle-exclamation bi bi-exclamation-triangle-fill
fa-solid fa-circle-check bi bi-check-circle-fill
fa-solid fa-lock bi bi-lock-fill
fa-solid fa-eye bi bi-eye-fill
fa-solid fa-eye-slash bi bi-eye-slash-fill
fa-solid fa-calendar bi bi-calendar
fa-solid fa-clock bi bi-clock
fa-solid fa-share-nodes bi bi-share
fa-solid fa-filter bi bi-funnel
fa-solid fa-sliders bi bi-sliders
fa-solid fa-copy bi bi-copy
fa-solid fa-link bi bi-link-45deg
fa-solid fa-image bi bi-image
fa-solid fa-file bi bi-file-earmark
fa-solid fa-folder bi bi-folder
fa-solid fa-floppy-disk bi bi-floppy
fa-solid fa-print bi bi-printer
fa-solid fa-right-from-bracket bi bi-box-arrow-right
fa-solid fa-location-dot bi bi-geo-alt-fill
fa-solid fa-globe bi bi-globe
fa-solid fa-sun bi bi-sun
fa-solid fa-moon bi bi-moon

For an icon not listed here, search the Bootstrap Icons pack by keyword: most Font Awesome names have a close match under a different word (fa-gear is bi-gear, but fa-bars is bi-list).

Side by side

Bootstrap Icons are drawn on a 16x16 grid with thinner outlines. Font Awesome Solid is heavier and filled. Mixing the two in one toolbar looks uneven, so migrate a whole screen at a time.

Background

Bootstrap Icons is the icon set from the Bootstrap team. Its npm package was first published in November 2019 (npm registry), and it is a standalone set: it does not need Bootstrap CSS. The current release is 1.13.2.

Font Awesome introduced the <i class="fa ..."> pattern that most icon fonts copied. The current major version is 7 (@fortawesome/fontawesome-free 7.3.1 on npm). The free download has Solid, a smaller Regular set and Brands. Extra styles such as Light, Thin, Duotone and Sharp are in the paid Pro plan.

CDN and class workflow

Both work as an icon font with one stylesheet. Pin the version so a new release cannot change your icons:

<!-- Bootstrap Icons -->
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css"
/>
<i class="bi bi-house"></i>
<i class="bi bi-search fs-4 text-primary"></i>

<!-- Font Awesome Free -->
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css"
/>
<i class="fa-solid fa-house"></i>
<i class="fa-solid fa-magnifying-glass fa-lg text-primary"></i>

Bootstrap Icons size with font-size, so Bootstrap utilities like fs-4 and text-primary work on them. Font Awesome has its own sizing classes (fa-lg, fa-2x).

Using Font Awesome in a Bootstrap project

You can. Bootstrap 4 and 5 ship no icons, so any icon font works next to them. Bootstrap 3 bundled Glyphicons, and many Bootstrap 3 themes added Font Awesome on top. If you start a new Bootstrap 5 project, Bootstrap Icons is the closer fit: same team, same utility classes, MIT license.

React and inline SVG

Tip

On performance-sensitive pages, inline SVG avoids loading a whole icon font for a few icons. Both sets ship raw SVG files you can paste or import. Our icon fonts vs SVG sprites vs inline SVG guide compares the three methods.

// Bootstrap Icons: community package react-bootstrap-icons
import { House } from "react-bootstrap-icons";
<House size={20} />;

// Font Awesome: official packages
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faHouse } from "@fortawesome/free-solid-svg-icons";
<FontAwesomeIcon icon={faHouse} />;

react-bootstrap-icons is maintained by a community developer, not the Bootstrap team. Font Awesome’s React packages are official.

License comparison

Bootstrap Icons Font Awesome Free
Icons (SVG, JS) MIT CC BY 4.0
Font files MIT SIL OFL 1.1
Code MIT MIT
Attribution Keep the MIT notice Kept by the comments already in the files
Paid tier No Pro (more styles)

Font Awesome’s license file says attribution is required, and that “Downloaded Font Awesome Free files already contain embedded comments with sufficient attribution, so you shouldn’t need to do anything additional when using these files normally.” Do not strip those comments. Bootstrap Icons uses the MIT license for the whole repository, font files included.

Which to pick

Use case Pick
Already using Bootstrap CSS Bootstrap Icons
Want one permissive license for everything Bootstrap Icons (MIT)
Need brand logos (GitHub, YouTube, payment cards) Font Awesome Brands, or Simple Icons
Large existing Font Awesome codebase, no reason to move Font Awesome
Need several free weights (thin to bold) Neither. Use Phosphor, which has six free weights
CMS or theme with Font Awesome built in Font Awesome

If neither fits, our Font Awesome alternatives roundup covers other open-source sets.

Frequently asked questions

How do I convert Font Awesome classes to Bootstrap Icons?
Replace the fa-solid fa-NAME class with bi bi-NAME and check the name in the mapping table, because many differ: fa-magnifying-glass is bi-search, fa-xmark is bi-x-lg, fa-bars is bi-list. Then swap the Font Awesome stylesheet for the Bootstrap Icons one.
Do I need Bootstrap CSS to use Bootstrap Icons?
No. Bootstrap Icons are standalone SVGs and an icon font. They work in any project, with or without Bootstrap CSS.
What license is Bootstrap Icons?
MIT, for the SVGs, the icon font and the code. There is no paid tier.
Does the mapping work for Font Awesome 7?
Yes. All 53 Font Awesome names in the table exist in both Font Awesome 6 and 7 Solid, and the fa-solid class prefix is the same.
How does Font Awesome Pro compare to Bootstrap Icons?
Font Awesome Pro adds styles such as Light, Thin, Duotone and Sharp. Bootstrap Icons has one style with outline and -fill variants. If you need several weights for free, Phosphor Icons has six.

Related posts

Share this post