Use Font Awesome Icon As Favicon

FaviconFont Awesome

Favicon Problem Overview


Is it possible to use a Font Awesome icon as a favicon icon? You know, the little icon that appears along-side a website title in the browser tab?

Favicon Solutions


Solution 1 - Favicon

EDIT: I suggest you use http://gauger.io/fonticon


I've created an online Font Awesome Favicon Generator to do just that!

See Font Awesome Favicon Generator.

Solution 2 - Favicon

I've also created an online Font Awesome Favicon Generator which has additional features that were missing from Paul Ferrett's solution.

favicon

  • preview of favicon live in browser
  • sizing of the icon
  • transparent icon and background
  • huge image size (icon can be as detailed as you want)
  • iconset can be updated via github pull request
  • update 06/2017 update to Font Awesome 4.7
  • update 06/2017 fuzzy search and keyword search
  • update 09/2017 stacked icons
  • update 06/2018 update to Font Awesome 5.0.13
  • update 11/2018 update to Font Awesome 5.5.0
  • update 04/2019 update to Font Awesome 5.8.1
  • update 11/2021 update to Font Awesome 5.15.4

If you want additional features please feel free to submit an issue or a pull request here.

Solution 3 - Favicon

Method 1

  1. Just visit fontawasome gallery.
  2. Now search and open your required icon i.e edit icon.
  3. Click on download svg as shown in given image.

enter image description here

  1. Now you can use this svg file in your website as favicon see How to set favicon.

Method 2

Take a screenshot of something with the desired character, cut the part you want and save it as an image (.ico).

Seriously now, you may want to check the formats supported by each browser: http://en.wikipedia.org/wiki/Favicon#File_format_support

If your characters are image or vector files, you'll be ok with most browsers but IE (because MS hates you). Otherwise, well, you'll really have to save them as images first.

Solution 4 - Favicon

Font Awesome is hosted on a number of popular CDNs, enabling you to link directly to the individual SVG files. Just set the href URL of the <link> element to the desired SVG in the hosted Font Awesome library.

Example HTML for a "rocket" bookmark icon hosted on jsDelivr:

<head>
   <link rel=icon href=https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/svgs/solid/rocket.svg>
</head>

What it looks like in Chrome:
https://i.stack.imgur.com/olxSB.png" height="350" alt="screenshot"/>

A limitation of this approach is that most browsers do not support changing the color or modifying any style properties.

Safari supports custom colors if you use the mask-icon relation and color attribute. The color bookmark icon will display on Safari's pinned tabs and also regular tabs if the user has selected the "Show website icons in tabs" option.

Example HTML for a color bookmark icon:

<head>
   <link rel=mask-icon color=teal
      href=https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/svgs/solid/rocket.svg>
</head>

What it looks like in Safari:
https://i.stack.imgur.com/ZjTxe.png" height="350" alt="screenshot"/>

Take a ride on the rocket:
https://centerkey.com/files/rocket.html

Solution 5 - Favicon

Any image can be uploaded to a favicon generator site such as

http://favicon-generator.org/

or

http://www.favicon.cc/

follow the online instructions on the site you choose. Its usually just a three step process. Save the favicon in the top level of your site.

For compatibility across browsers I recommend always using images for favicons. Even if some sites you create are only for modern browsers still convert your favicon artwork to an image. Consistently using the same process gives you one less thing to worry about.

Solution 6 - Favicon

It is not possible that you can use direct awesome font character as favicon without converting into image. You must convert character into image ..

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionConnor BlackView Question on Stackoverflow
Solution 1 - FaviconPaul FerrettView Answer on Stackoverflow
Solution 2 - FaviconeclipseView Answer on Stackoverflow
Solution 3 - FaviconGeeky GuyView Answer on Stackoverflow
Solution 4 - FaviconDem PilafianView Answer on Stackoverflow
Solution 5 - FaviconotherDewiView Answer on Stackoverflow
Solution 6 - FaviconShakeel AhmedView Answer on Stackoverflow