Skip to content

How To Add Icons

You can place Font Awesome icons just about anywhere, and we’ve tried to make it so that icons will take on the characteristics and blend in with surrounding text naturally.

We’ll cover the basics of how to add icons to your project, shorthand class names for different icon styles, how to add icons to HTML, using icons aliases, and more!

To add an icon, you need to know a few bits of information:

  1. The shorthand class name for the style you want to use
  2. The icon name, prefixed with fa- (meaning “Font Awesome” naturally!)
  3. The shorthand class name for the family you want to use (the default is the Classic family if you don’t include a family class)

So to add an icon to your HTML, you just add an element with that classes to your page. Here’s an example:

<i class="fa-sharp fa-solid fa-user"></i>
<!--
In the example above, you add...
1. `fa-solid` class for Solid style
2. `user` icon with the `fa-` prefix
3. `fa-sharp` class for Sharp family
... and you'll see the Sharp Solid User icon
-->

We designed Font Awesome for use with inline elements, and we recommend that you stick with a consistent element in your project. We recommend using <i> element and you’ll add CSS classes for the for the Font Awesome family and style of icon you want to use and the icon name class with the fa- prefix for the icon you want to use.

If you want to avoid using the i tag, you can use a <span> element instead of <i>. Here’s that same example using a span tag:

<!-- You can use a <span> element, with classes applied in the same way -->
<span class="fa-sharp fa-solid fa-user"></span>

Font Awesome contains many icon packs each with its own visual look and collection of families and styles. Below you’ll find all our families and styles listed with the classes and other info you need to add icons to your projects.

StyleAvailabilityClassesfont-familyfont-weightPreview
SolidFree or Profa-solidFont Awesome 7 Free Font Awesome 7 Pro900
RegularFree or Profa-regularFont Awesome 7 Free Font Awesome 7 Pro400
LightPro onlyfa-lightFont Awesome 7 Pro300
ThinPro onlyfa-thinFont Awesome 7 Pro100

StyleAvailabilityClassesfont-familyfont-weightPreview
SolidPro onlyfa-duotone fa-solidFont Awesome 7 Duotone900
RegularPro onlyfa-duotone fa-regularFont Awesome 7 Duotone400
LightPro onlyfa-duotone fa-lightFont Awesome 7 Duotone300
ThinPro onlyfa-duotone fa-thinFont Awesome 7 Duotone100

StyleAvailabilityClassesfont-familyfont-weightPreview
SolidPro onlyfa-sharp fa-solidFont Awesome 7 Sharp900
RegularPro onlyfa-sharp fa-regularFont Awesome 7 Sharp400
LightPro onlyfa-sharp fa-lightFont Awesome 7 Sharp300
ThinPro onlyfa-sharp fa-thinFont Awesome 7 Sharp100

StyleAvailabilityClassesfont-familyfont-weightPreview
SolidPro onlyfa-sharp-duotone fa-solidFont Awesome 7 Sharp Duotone900
RegularPro onlyfa-sharp-duotone fa-regularFont Awesome 7 Sharp Duotone400
LightPro onlyfa-sharp-duotone fa-lightFont Awesome 7 Sharp Duotone300
ThinPro onlyfa-sharp-duotone fa-thinFont Awesome 7 Sharp Duotone100

StyleAvailabilityClassesfont-familyfont-weightPreview
BrandsFreefa-brandsFont Awesome 7 Brands400

StyleAvailabilityClassesfont-familyfont-weightPreview
RegularPro+ onlyfa-chisel fa-regularFont Awesome 7 Chisel400

StyleAvailabilityClassesfont-familyfont-weightPreview
SolidPro+ onlyfa-etch fa-solidFont Awesome 7 Etch900

StyleAvailabilityClassesfont-familyfont-weightPreview
RegularPro+ onlyfa-jelly fa-regularFont Awesome 7 Jelly400
Fill RegularPro+ onlyfa-jelly-fill fa-regularFont Awesome 7 Jelly Fill400
Duo RegularPro+ onlyfa-jelly-duo fa-regularFont Awesome 7 Jelly Duo400

StyleAvailabilityClassesfont-familyfont-weightPreview
SolidPro+ onlyfa-notdog fa-solidFont Awesome 7 Notdog900
Duo SolidPro+ onlyfa-notdog-duo fa-solidFont Awesome 7 Notdog Duo900

StyleAvailabilityClassesfont-familyfont-weightPreview
RegularPro+ onlyfa-slab fa-regularFont Awesome 7 Slab400
Press RegularPro+ onlyfa-slab-press fa-regularFont Awesome 7 Slab Press400

StyleAvailabilityClassesfont-familyfont-weightPreview
LightPro+ onlyfa-thumbprint fa-lightFont Awesome 7 Thumbprint300

StyleAvailabilityClassesfont-familyfont-weightPreview
SemiboldPro+ onlyfa-whiteboard fa-semiboldFont Awesome 7 Whiteboard600

If you’re using a Font Awesome Kit and have added custom icons.

StyleAvailabilityClassesfont-familyfont-weight
Custom IconsPro Kits onlyfa-kitFont Awesome Kit400
Custom Duotone IconsPro Kits onlyfa-kit-duotoneFont Awesome Kit Duotone400

Here are some examples that show different styles and families of icons:

<!-- icon rendered across the Classic family (Classic is set by default) -->
<i class="fa-solid fa-user"></i>
<i class="fa-regular fa-user"></i>
<i class="fa-light fa-user"></i>
<i class="fa-thin fa-user"></i>
<!-- icon rendered across the Classic family (Classic is set explicitly) -->
<i class="fa-classic fa-solid fa-user"></i>
<i class="fa-classic fa-regular fa-user"></i>
<i class="fa-classic fa-light fa-user"></i>
<i class="fa-classic fa-thin fa-user"></i>
<!-- icon rendered across the Duotone family -->
<i class="fa-duotone fa-solid fa-user"></i>
<i class="fa-duotone fa-regular fa-user"></i>
<i class="fa-duotone fa-light fa-user"></i>
<i class="fa-duotone fa-thin fa-user"></i>
<!-- icon rendered across the Sharp family -->
<i class="fa-sharp fa-solid fa-user"></i>
<i class="fa-sharp fa-regular fa-user"></i>
<i class="fa-sharp fa-light fa-user"></i>
<i class="fa-sharp fa-thin fa-user"></i>
<!-- icon rendered across the Sharp Duotone family -->
<i class="fa-sharp-duotone fa-solid fa-user"></i>
<i class="fa-sharp-duotone fa-regular fa-user"></i>
<i class="fa-sharp-duotone fa-light fa-user"></i>
<i class="fa-sharp-duotone fa-thin fa-user"></i>
<!-- icon rendered across Small Batch families -->
<i class="fa-chisel fa-regular fa-user"></i>
<i class="fa-etch fa-solid fa-user"></i>
<i class="fa-jelly fa-regular fa-user"></i>
<i class="fa-jelly-fill fa-regular fa-user"></i>
<i class="fa-jelly-duo fa-regular fa-user"></i>
<i class="fa-notdog fa-solid fa-user"></i>
<i class="fa-notdog-duo fa-solid fa-user"></i>
<i class="fa-slab fa-regular fa-user"></i>
<i class="fa-slab-press fa-regular fa-user"></i>
<i class="fa-thumbprint fa-light fa-user"></i>
<i class="fa-whiteboard fa-semibold fa-user"></i>
<!-- Font Awesome Brands icon -->
<i class="fa-brands fa-font-awesome"></i>

Since Version 6, we’ve updated many of our icon names to make them more universal and consistent. But if you’re a Version 5 or earlier user, we wanted to make sure not to break your existing code. So we made aliases for renamed icons to allow them to work with either the old or new names.

And you can use the old or new name for styles as well. So you can still use fas, far, fal, fad, and fab. And we’ve also included older prefix versions for our new Thin style (fat) and new Sharp family of styles (Sharp Solid is fass while Sharp Regular is fasr).

<!-- All of these code snippets will render the same Solid icon thanks to aliases. -->
<i class="fa-solid fa-cutlery"></i>
<i class="fa-solid fa-utensils"></i>
<i class="fas fa-utensils"></i>
<!-- All of these code snippets will render the same Sharp Solid icon thanks to aliases. -->
<i class="fa-sharp fa-solid fa-times"></i>
<i class="fa-sharp fa-solid fa-close"></i>
<i class="fass fa-xmark"></i>

We also have many other ways to add Font Awesome icons, in case your situation calls for something specific: