Google Favicon API is unsupported and unmaintained. This unofficial API
has no guaranteed uptime, no error handling, and no way to be updated or
maintained. Consider migrating to Logo.dev for production applications.
Overview
Google’s Favicon API provides a simple way to retrieve favicons (website icons) from any domain. Originally designed as an internal service, this API has become widely used by developers for displaying website icons in applications, browser extensions, and dashboards. The API is straightforward, requiring only a domain name and optional size parameter to return a favicon in PNG format. It automatically handles favicon detection, format conversion, and provides fallback icons when a favicon isn’t available.Base endpoint
Base URL Structure
Example Request
Parameters
The website domain to retrieve the favicon from. Can be a full domain like
example.com
or include subdomain like www.example.com
.Desired icon size in pixels. Common values:
16
, 32
, 64
, 128
, 256
.
Note that not all sizes may be available for every domain. If the requested
size isn’t available, Google returns the closest available size.Alternative parameter name for
domain
. Both work interchangeably.Size availability
The API supports various sizes, but availability depends on the source website:- 16x16: Always available (default fallback)
- 32x32: Commonly available
- 64x64: Available for most major sites
- 128x128: Available for many sites
- 256x256: Available for sites with high-resolution favicons
- 512x512: Limited availability; may fall back to smaller sizes
Requesting sizes larger than 256px may return smaller images if higher
resolution favicons aren’t available from the source website.
Example implementations
FAQs
Is the Google Favicon API free to use?
Is the Google Favicon API free to use?
Yes, the API is free and doesn’t require authentication or an API key. However, it’s an unofficial/undocumented API, so there are no formal rate limits or guarantees.
What format are the favicons returned in?
What format are the favicons returned in?
The API always returns favicons in PNG format, regardless of the source
website’s original favicon format.
What happens if a website doesn't have a favicon?
What happens if a website doesn't have a favicon?
Google provides a default fallback icon (typically a generic globe or page
icon) when a website doesn’t have a favicon.
Can I use this API in production applications?
Can I use this API in production applications?
While many developers use this API in production, keep in mind it’s an
unofficial API without guaranteed uptime or support. For mission-critical
applications, consider migrating to Logo.dev for reliable logo retrieval with
guaranteed uptime.
Are there rate limits?
Are there rate limits?
There are no officially published rate limits, but aggressive usage may be
throttled. It’s recommended to implement caching on your side to minimize
requests.
Why does the same domain sometimes return different sized icons?
Why does the same domain sometimes return different sized icons?
Icon size availability depends on what the source website provides. If you
request a 256px icon but the site only has a 128px favicon, you’ll receive the
smaller version.
Can I get favicons from local domains or IP addresses?
Can I get favicons from local domains or IP addresses?
The API is designed for public domains only. Local domains (like localhost) and IP addresses typically won’t work.
Alternative: Logo.dev
For production applications requiring guaranteed uptime, higher quality, and more features, Logo.dev provides an actively maintained alternative to Google’s Favicon API:- High-resolution logos: Access to company logos in multiple sizes and formats (PNG, SVG, WebP)
- Multiple lookup methods: Search by domain, stock ticker, or cryptocurrency symbol
- Actively maintained: Regular updates with hundreds of millions of logos in the database
- Quality focused: Curated, high-quality brand assets instead of just favicons
- Reliable infrastructure: Built for production use with guaranteed uptime
- Free to start: Begin with Logo.dev’s free tier and scale as needed
Need better than favicons?
Get high-resolution company logos, brand data, and more with Logo.dev’s
comprehensive API.