If you like control, you can host Font Awesome yourself, and you can choose to use SVG + JS described below or Web Fonts + CSS to get icons into your projects.
Set up with SVG+JS
Inside the Font Awesome Download or package, you'll find the files you need. The
/js folder contains the core styling, utilities, and icons for all of Font Awesome's families (Classic, Sharp, and Brands) as well as style options (Solid, Regular, Light, Duotone, and Thin).
There's a Free and Pro folder in our Pro download - pick the one that's right for your project and grab the files from there.
|Which Files and Folders ||What’s in there|
|Icons and scripts for each style, or all of them at once.|
|Just the Free icons and scripts for each style.|
Add Font Awesome Files to Your Project
Copy both the
fontawesome.js loader and the
.js files for the styles you'd like to use 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 file -
/js/fontawesome.js - as well as the JS files for any individual styles you want to use.
Copy the core and specific style files you need into your project directories
Here's a handy table that shows which file goes with which style:
Reference Font Awesome in Your Project
Link the core
fontawesome.js file along with the JS files for whichever styles you want to use into the
<head> of each template or page that you plan to add icons to. We recommend referencing the
fontawesome.js loader last. Make sure the paths correctly point to where you placed the files!
Here's an example html page with the file links in the Just this once, we recommend letting things go to your head.
<head> and a couple of icons in the content.
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.js
/js folder, you may have noticed a file named
all.js. 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.js file - you'll need to the Sharp
.js 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 isn't great for performance.
If you'd like to use the
all.js, just copy it into your project’s static assets directory, or wherever you prefer to keep front-end assets or vendor stuff.
Then, add a link to the
/your-path-to-fontawesome/js/all.js file into the
<head> of each template or page where you want to use Font Awesome icons.
Older Version Compatibility
If your project is using an older version of Font Awesome, we've got you covered with backward compatiiblity. 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
Once loaded, our SVG + JS framework handles translating any Font Awesome 5 icon names, style syntax, and CSS pseudo-element icon references automatically. This is true when using the
js/all.js file or using only certain styles.
Version 4 Compatibility
If your project contains Font Awesome 4 icon references, add the
v4-shims.js file after any v6 JS files you're including. That file will map v4 icon names to icons in the latest version of Font Awesome.
Here's an example:
If you need more help upgrading an existing project to a newer version of Font Awesome, check out our upgrading guides.