Skip to main content
Google does not document or support this API. It has no published terms, rate limits, or uptime commitment, and Google can change it at any time.
Google’s favicon service returns the favicon of a website as a PNG. Many apps and browser extensions use it to show small site icons. It needs no key.

Endpoint

Example
The URL redirects to a gstatic.com address that serves the image.

Parameters

string
required
The website domain, such as example.com or www.example.com. domain_url also works.
number
default:"16"
The requested size in pixels, such as 16, 32, 64, or 128. If the site has no icon at that size, Google returns a smaller one.

Behavior

  • The response is always a PNG, whatever format the site uses.
  • The icon can be smaller than sz. A request for 128 pixels can return a 32-pixel icon, so large sizes can look blurry.
  • If Google finds no favicon, it returns a 404 status with a generic globe icon. An <img> tag still shows the globe.
  • The service works for public domains only, not for localhost or IP addresses.

FAQs

Yes. It needs no key or account. Google publishes no terms or rate limits for it, so cache the icons on your side.
Google can return only the sizes that the website provides. If a site has a 32-pixel favicon, a request for 128 pixels returns 32 pixels.
Many apps do, but Google does not support it. If you need company logos rather than favicons, use a logo service.

Company logos instead of favicons

A favicon is the small icon that a browser shows in a tab. The Logo.dev CDN returns a company logo from a URL, with these differences:

Logo.dev CDN

Show company logos by domain, ticker, or name from a plain image URL.