<p>Just like you would add a regular favicon just in your head.
If you want it to be an uploaded picture I would say:</p>

<p>Make a global and add a field like "favicon" to it and upload your image there and display it like:</p>

<pre><code>{% for image in favicon.fav %}
&lt;link rel="icon" type="image/png" sizes="16x16" href="{{ image.url }}"&gt;
{% endfor %}
</code></pre>

<p>But what I always do is just go to a favicon generator like:
<a href="http://www.favicon-generator.org/" rel="noreferrer">http://www.favicon-generator.org/</a></p>

<p>And upload your logo and copy paste that code in your <code>&lt;head&gt;</code> tags in your <code>_layout.html</code> file</p>

CC BY-SA 3.0
2017-02-21T15:23:56.463Z
Thanks, Justin, will bear in mind your advice and let you know how we get on
JasonD
CC BY-SA 4.0
2019-07-17T08:15:35.263Z
In general I don't see any need for this to be editable through the CMS, so you could also just add the code and images to your layout template, and put the image files where they need to be on the server.
darylknight
CC BY-SA 3.0
2017-02-17T10:49:06.850Z
2017-02-17T10:49:06.850Z
Justin Dekkers
<p>Here is an article about creating favicons from images uploaded through the control panel:</p>

<p><a href="http://craftsnippets.com/articles/adding-favicons-to-craft-cms-website?s=s" rel="nofollow noreferrer">http://craftsnippets.com/articles/adding-favicons-to-craft-cms-website?s=s</a></p>

CC BY-SA 4.0
2019-07-17T06:33:22.930Z
2019-07-17T06:33:22.930Z
Piotr Pogorzelski
<p>I'm a newbie to Craft so apologies if this has been answered or is too simplistic for the forum but how do I change my site's favicon? Thank you.</p>

<assets>
How do I add a favicon
# How do I add a favicon

(Asked by: username_0 on 2017-02-17)

I'm a newbie to Craft so apologies if this has been answered or is too simplistic for the forum but how do I change my site's favicon? Thank you.

**Tags:** assets


---

## 2 answers

### Answer by username_1 on 2017-02-17. Score: 5

Just like you would add a regular favicon just in your head.
If you want it to be an uploaded picture I would say:
Make a global and add a field like "favicon" to it and upload your image there and display it like:
{% for image in favicon.fav %}

{% endfor %}

But what I always do is just go to a favicon generator like:
http://www.favicon-generator.org/
And upload your logo and copy paste that code in your  tags in your _layout.html file

> **Comments:**
> **username_0**: Thanks, Justin, will bear in mind your advice and let you know how we get on  
> **username_2**: In general I don't see any need for this to be editable through the CMS, so you could also just add the code and images to your layout template, and put the image files where they need to be on the server.  

---

### Answer by username_3 on 2019-07-17. Score: 1

Here is an article about creating favicons from images uploaded through the control panel:

<http://craftsnippets.com/articles/adding-favicons-to-craft-cms-website?s=s>


---

