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!

Before You Get Started

Make sure you've:

Basics

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>

Leave 'fa-' to Font Awesome

We don't recommend creating your own classes that start with fa- as it can result in missing icons or other unwanted behavior. You can add any other custom classes to your elements though!

Families + Styles

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.

Font Awesome Classic is Our Default Family

If you don't specify a family class name, our styling toolkit will render icons in Font Awesome Classic, the original look and feel that's always in style. But if you need to reference the Classic family, you can just add the fa-classic in your icon's HTML class names. If you want to change any or all icons to use Sharp, just add fa-sharp in the same manner!

Classic

Style AvailabilityClassesfont-familyfont-weightPreview
Solid Free or Profa-classic fa-solidFont Awesome 7 Free Font Awesome 7 Pro900
Regular Free or Profa-classic fa-regularFont Awesome 7 Free Font Awesome 7 Pro400
Light Pro onlyfa-classic fa-lightFont Awesome 7 Pro300
Thin Pro onlyfa-classic fa-thinFont Awesome 7 Pro100

Duotone

Style AvailabilityClassesfont-familyfont-weightPreview
Solid Pro onlyfa-duotone fa-solidFont Awesome 7 Duotone900
Regular Pro onlyfa-duotone fa-regularFont Awesome 7 Duotone400
Light Pro onlyfa-duotone fa-lightFont Awesome 7 Duotone300
Thin Pro onlyfa-duotone fa-thinFont Awesome 7 Duotone100

Sharp

Style AvailabilityClassesfont-familyfont-weightPreview
Solid Pro onlyfa-sharp fa-solidFont Awesome 7 Sharp900
Regular Pro onlyfa-sharp fa-regularFont Awesome 7 Sharp400
Light Pro onlyfa-sharp fa-lightFont Awesome 7 Sharp300
Thin Pro onlyfa-sharp fa-thinFont Awesome 7 Sharp100

Sharp Duotone

Style AvailabilityClassesfont-familyfont-weightPreview
Solid Pro onlyfa-sharp-duotone fa-solidFont Awesome 7 Sharp Duotone900
Regular Pro onlyfa-sharp-duotone fa-regularFont Awesome 7 Sharp Duotone400
Light Pro onlyfa-sharp-duotone fa-lightFont Awesome 7 Sharp Duotone300
Thin Pro onlyfa-sharp-duotone fa-thinFont Awesome 7 Sharp Duotone100

Brands

Style AvailabilityClassesfont-familyfont-weightPreview
Brands Freefa-brandsFont Awesome 7 Brands400

Chisel

Style AvailabilityClassesfont-familyfont-weightPreview
Regular Pro+ onlyfa-chisel fa-regularFont Awesome 7 Chisel400

Etch

Style AvailabilityClassesfont-familyfont-weightPreview
Solid Pro+ onlyfa-etch fa-solidFont Awesome 7 Etch900

Graphite

Style AvailabilityClassesfont-familyfont-weightPreview
Thin Pro+ onlyfa-graphite fa-thinFont Awesome 7 Graphite100

Jelly

Style AvailabilityClassesfont-familyfont-weightPreview
Regular Pro+ onlyfa-jelly fa-regularFont Awesome 7 Jelly400
Fill Regular Pro+ onlyfa-jelly-fill fa-regularFont Awesome 7 Jelly Fill400
Duo Regular Pro+ onlyfa-jelly-duo fa-regularFont Awesome 7 Jelly Duo400

Mosaic

Style AvailabilityClassesfont-familyfont-weightPreview
Solid Pro+ onlyfa-mosaic fa-solidFont Awesome 7 Mosaic900

Notdog

Style AvailabilityClassesfont-familyfont-weightPreview
Solid Pro+ onlyfa-notdog fa-solidFont Awesome 7 Notdog900
Duo Solid Pro+ onlyfa-notdog-duo fa-solidFont Awesome 7 Notdog Duo900

Pixel

Style AvailabilityClassesfont-familyfont-weightPreview
Regular Pro+ onlyfa-pixel fa-regularFont Awesome 7 Pixel400

Slab

Style AvailabilityClassesfont-familyfont-weightPreview
Regular Pro+ onlyfa-slab fa-regularFont Awesome 7 Slab400
Press Regular Pro+ onlyfa-slab-press fa-regularFont Awesome 7 Slab Press400
Duo Regular Pro+ onlyfa-slab-duo fa-regularFont Awesome 7 Slab Duo400
Press Duo Regular Pro+ onlyfa-slab-press-duo fa-regularFont Awesome 7 Slab Press Duo400

Thumbprint

Style AvailabilityClassesfont-familyfont-weightPreview
Light Pro+ onlyfa-thumbprint fa-lightFont Awesome 7 Thumbprint300

Utility

Style AvailabilityClassesfont-familyfont-weightPreview
Semibold Pro+ onlyfa-utility fa-semiboldFont Awesome 7 Utility600
Fill Semibold Pro+ onlyfa-utility-fill fa-semiboldFont Awesome 7 Utility Fill600
Duo Semibold Pro+ onlyfa-utility-duo fa-semiboldFont Awesome 7 Utility Duo600

Vellum

Style AvailabilityClassesfont-familyfont-weightPreview
Solid Pro+ onlyfa-vellum fa-solidFont Awesome 7 Vellum900

Whiteboard

Style AvailabilityClassesfont-familyfont-weightPreview
Semibold Pro+ onlyfa-whiteboard fa-semiboldFont Awesome 7 Whiteboard600

Parity Across Icon Packs

Each Pro+ only style is considered "small batch" and does not have parity with categories or icons in our larger Packs. Instead they contain a curated selection of the 200 most common icons needed for app and website design.

Kit-Based Custom Icons

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

Style Availability Classes font-family font-weight
Custom Icons Pro Kits only fa-kit Font Awesome Kit 400
Custom Duotone Icons Pro Kits only fa-kit-duotone Font Awesome Kit Duotone 400

Setting Different Families + Styles

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>

Stay on target with those CSS rules!

When using our SVG framework, remember that DOM elements with Font Awesome classes are replaced with injected <svg> elements by default. Be sure that your CSS rules target the right element.

Aliases

Since v6, we've updated many of our icon names to make them more universal and consistent. But if you're a v5 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>

Alternate Ways to Add Icons

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

When using Web Fonts

When using SVGs

In Other Integrations

    No results