If you like control, you can host Font Awesome yourself, and you can choose to use Web Fonts + CSS described below or SVG + JS to get icons into your projects.

We’ll cover the basics of getting set up with Web Fonts and how you can use specific Font Awesome icon styles.

Before You Get Started

Make sure you:

Set-Up with Web Fonts

Inside the Font Awesome Download or package, you'll find the files you need. The /css folder contains the core styling and utilities for all of Font Awesome's families (Classic, Sharp, and Brands) as well as style options (Solid, Regular, Light, Duotone, and Thin). The /webfonts folder contains all of the typeface files that the CSS files depend on.

There's a Free and Pro version of each in our Pro download - pick the one that's right for your project and grab those files.

Which Files and Folders What’s in there
/fontawesome6/pro/webfonts Icons as Web Fonts to be used with CSS
/fontawesome6/pro/css CSS files for using Web Fonts
/fontawesome6/free/webfonts Just the Free Icons as Web Fonts to be used with CSS
/fontawesome6/free/css CSS files for using just the Free Web Fonts

Add Font Awesome Files to Your Project

Copy both the /webfonts and the /css folders into your project's static assets directory (or wherever you prefer to keep front-end assets or vendor stuff). Be sure to include the core styling file - /css/fontawesome.css - as well as the CSS files for any individual styles you want to use, and you can remove any .css and web font files you don't plan on using.

Copy webfonts and CSS assets into your project directories

Copy webfonts and CSS assets into one of your project directories

Here's a handy table that shows which files go with which styles:

Icon Style Availability Web Font Filename CSS Filename
Brands Free fa-brands-400.* brands.css
Solid Free fa-solid-900.* solid.css
Regular Pro only fa-regular-400.* regular.css
Light Pro only fa-light-300.* light.css
Thin Pro only fa-thin-100.* thin.css
Duotone Pro only fa-duotone-900.* duotone.css
Sharp Solid Pro only fa-sharp-solid-900.* sharp-solid.css

Font Awesome Sharp requires v6.2.0!

Make sure you have an active Pro-level plan or a Pro license with access to Font Awesome v6.2.0 or greater in order to use our Sharp Solid icons.

Reference Font Awesome in Your Project

Link the core fontawesome.css file along with the CSS files for whichever styles you want to use into the <head> of each template or page that you plan to add icons to. Make sure the paths correctly point to where you placed the files!

Here's an example html page with the file links in the <head> and a couple of icons in the content.

<head>
  <!-- our project just needs Font Awesome Solid + Brands -->
  <link href="/your-path-to-fontawesome/css/fontawesome.css" rel="stylesheet">
  <link href="/your-path-to-fontawesome/css/brands.css" rel="stylesheet">
  <link href="/your-path-to-fontawesome/css/solid.css" rel="stylesheet">
</head>
<body>
  <i class="fa-solid fa-user"></i>
  <!-- uses solid style -->
  <i class="fa-brands fa-github-square"></i>
  <!-- uses brand style -->
</body>
Just this once, we recommend letting things go to your head.

Double-Check Your Paths

Make sure the paths of the files you've included in your pages' <head> point to where you've moved all of Font Awesome's files in your project.

Yuss! You’re Ready to Add Icons

Like Anakin said, it’s woooorking! All of our icons are now ready to do your project’s bidding. Learn how to add them to your project and then use their power to bring order and style to your UI!

Add Some Icons!

Alternate Install: Using all.css

In the /css folder, you may have noticed a file named all.css. This file contains the core styling and utilities PLUS all of the icons in all the Classic styles in Font Awesome. (The Sharp family is not included in the all.css file - you'll need to add the Sharp .css files separately.)

It's a handy file if you'll be using all the icon styles or testing out different styles as you develop your project. But if you're using just a couple of styles, we don't recommend it for production sites since loading all of the icons and files isn't great for performance.

If you'd like to use the all.css, just copy the /webfonts folder and the /css/all.css file into your project’s assets directory where other images and CSS are stored. You'll want to keep them in the same directory.

Then, add a link to the /your-path-to-fontawesome/css/all.css file into the <head> of each template or page where you want to use Font Awesome.

Older Version Compatibility

If your project is using an older version of Font Awesome, we've got you covered with backward compatibility. That means you won't have to update any icon names in your project - we'll translate any older version icon names, style syntax, and CSS pseudo-element icon references automatically. Here's how to enable that support for the previous version you need to support:

Version 5 Compatibility

If you're hosting yourself and using only certain styles, add the css/v5-font-face.css to the files linked in your html head. (The all.css file includes these utilities by default so you won't need to do anything.)

Here's an example:

<head>
  <!-- Loading the v6 core styles and the Solid and Brands styles -->
  <link href="/your-path-to-fontawesome/css/fontawesome.css" rel="stylesheet">
  <link href="/your-path-to-fontawesome/css/brands.css" rel="stylesheet">
  <link href="/your-path-to-fontawesome/css/solid.css" rel="stylesheet">

  <!-- update existing v5 CSS to use v6 icons and assets -->
  <link href="/your-path-to-fontawesome/css/v5-font-face.css" rel="stylesheet">
</head>

Version 4 Compatibility

If your project contains Font Awesome 4 icon references, add the css/v4-font-face.css to the files linked in your html head. Our CSS will then translate any Font Awesome 4 icon names and CSS pseudo-elements references to Version 6 automatically.

<head>
  <!-- Add the v6 core styles and then select the individual styles you need, like Solid and Brands -->
  <link href="/your-path-to-fontawesome/css/fontawesome.css" rel="stylesheet" />
  <link href="/your-path-to-fontawesome/css/brands.css" rel="stylesheet" />
  <link href="/your-path-to-fontawesome/css/solid.css" rel="stylesheet" />

  <!-- support v4 icon references/syntax -->
  <link href="/your-path-to-fontawesome/css/v4-font-face.css" rel="stylesheet" />
</head>

If you're using all.css, you'll need to add the v4-shims.js file, which will map V4 icon names to icons in the latest version of Font Awesome, like this:

<head>
  <!-- load all Font Awesome v6 styles -->
  <link href="/your-path-to-fontawesome/css/all.css" rel="stylesheet">

  <!-- support v4 icon references/syntax -->
  <link href="/your-path-to-fontawesome/css/v4-shims.css" rel="stylesheet">
</head>

If you need more help upgrading an existing project to a newer version of Font Awesome, check out our upgrading guides.