How to download favicon from website?

Solution 1:

Studiohack has the "thorough" approach but heres a short hack:

  1. Enter the domain name like https://superuser.com/(must end with '/')
  2. Add favicon.ico to the end
  3. Press enter (this should be in the URL: https://superuser.com/favicon.ico)
  4. Right click on the image and click "save image as"

Solution 2:

by reading http://en.wikipedia.org/wiki/Favicon you can also find that:

The following format is cross-browser compatible and is supported by Internet Explorer, Firefox, Chrome, and Opera.[3]

<link rel="shortcut icon" href="http://www.example.com/myicon.ico" />

Additionally the following is also acceptable:

<link rel="shortcut icon" href="/somepath/myicon.ico" />

The following shows the supported format of link tags, using examples, for HTML and XHTML.

HTML:

<link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico"> <link rel="icon" type="image/png" href="http://example.com/image.png"> <link rel="icon" type="image/gif" href="http://example.com/image.gif">

So, the common practice is indeed to put a file called 'favicon.ico' on the root folder, but to be sure, you have to lookup the source code of the served file and see if and what is defined there.

eg, for http://superuser.com it is

<link rel="shortcut icon" href="http://sstatic.net/su/favicon.ico"> 

Solution 3:

You can do this using Google S2 converter.

Here is the syntax : http://www.google.com/s2/favicons?domain=DomainName

ex: http://www.google.com/s2/favicons?domain=https://superuser.com/

Solution 4:

You can't always add /favicon.ico (eg. https://superuser.com/favicon.ico)
All of the answers are more complicated than necessary.

All you do is what is written here: http://www.itechcolumn.com/4-way-download-favicon-website/

  1. Go to the target site.
  2. View the page source (Right click on the page and click on "View Page source") - using firefox, may be slightly different in other browsers.
  3. Search (Ctrl+F) for "shortcut icon"
  4. You should see something like this:

    link rel="shortcut icon" href="http://www.sitename.com/images/thenameofthefavicon.ico"/>

  5. Right click on the link http://www.sitename.com/images/favicon.ico and save the icon. Or, open the page using the URL and save the page.