GameParticles
Images

Favicon Size Guide: What Is a Favicon and Sizes You Need

The standard favicon size is 16x16 and 32x32 pixels, plus 180x180 for iOS and 192x192 and 512x512 for Android. See which files and HTML tags a site needs.

Updated

A favicon is the small icon a browser shows for a website in tabs, bookmarks and history. The core favicon sizes are 16 x 16 and 32 x 32 pixels, usually bundled with 48 x 48 in one favicon.ico file. A complete modern set adds a 180 x 180 PNG for iPhone home screens and 192 x 192 and 512 x 512 PNGs for Android.

What is a favicon

The word is short for "favorites icon". Internet Explorer 5 introduced it in 1999 to mark sites saved to the Favorites menu, and it looked for a file named favicon.ico at the root of the site. Every major browser adopted the idea, and that file name is still requested by default today.

The icon now appears in many more places than a bookmarks list:

  • Browser tabs and the tab switcher
  • Bookmarks, history and address bar suggestions
  • Home screen shortcuts on phones and tablets
  • Installed web apps and their splash screens
  • Search results on mobile, next to the site name

Each of those places draws the icon at a different size, which is why one image is not enough.

Which sizes browsers and devices use

SizeFileUsed for
16 x 16Inside favicon.icoBrowser tabs on standard-density screens
32 x 32Inside favicon.ico, plus favicon-32x32.pngTabs on high-density screens, taskbar and shortcut icons
48 x 48Inside favicon.icoLarger desktop shortcut icons on Windows
180 x 180apple-touch-icon.pngiPhone and iPad home screen shortcuts
192 x 192android-chrome-192x192.pngAndroid home screen icon, listed in the web app manifest
512 x 512android-chrome-512x512.pngAndroid splash screen and install prompt, listed in the manifest

This is the set that covers current browsers and devices with the fewest files. Older guides list a dozen or more sizes, such as 57, 72, 114, 144 and 152. Those targeted devices and browser versions that have long since been retired. Devices that want an in-between size scale down the next larger icon, so a single 180 x 180 Apple touch icon serves every current iPhone and iPad.

Search engines also show favicons next to results. Google's documentation asks for a square icon and recommends one larger than 48 x 48 pixels. Its exact wording has changed over the years, so check the current Google Search Central page if search appearance matters to you.

ICO vs PNG vs SVG

FormatStrengthsLimits
ICOHolds several sizes in one file. Requested automatically at /favicon.ico. Works in every browser.Not practical above small sizes. Needs a tool to create.
PNGSimple, supports transparency, works for all the larger icons.One file per size, each needs its own tag or manifest entry.
SVGOne vector file that is sharp at any size. Can adapt to dark mode with a CSS media query inside the file.Not supported by older browsers, and not used for Apple touch icons or manifest icons, so it cannot be the only file.

An ICO file is a container. It can hold the same icon at several sizes, and the browser or operating system picks the one closest to what it needs. That is why a single favicon.ico with 16, 32 and 48 pixel images covers tabs, taskbars and shortcuts.

SVG favicons are supported by current versions of Chrome, Firefox and Edge. Safari added support later than the others. If you use one, declare it alongside an ICO or PNG so browsers without support fall back cleanly:

  • <link rel="icon" href="/favicon.ico" sizes="32x32">
  • <link rel="icon" href="/favicon.svg" type="image/svg+xml">

The HTML tags

Place these in the head of every page. The file names match the package produced by the Favicon Generator, which also gives you this snippet ready to copy.

  • <link rel="icon" type="image/x-icon" href="/favicon.ico">
  • <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  • <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  • <link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
  • <link rel="icon" type="image/png" sizes="512x512" href="/android-chrome-512x512.png">
  • <meta name="theme-color" content="#ffffff">

What each part does:

  • rel="icon" marks a favicon. The sizes attribute lets the browser choose the best match.
  • rel="apple-touch-icon" is read by Safari on iOS when someone adds the site to their home screen.
  • theme-color tints the browser interface on some mobile browsers to match your brand.

A web app manifest is a small JSON file that lists the 192 and 512 pixel icons for Android and installed web apps. Link it with one more tag: <link rel="manifest" href="/site.webmanifest">.

Even with no tags at all, browsers request /favicon.ico from the site root. Keeping a file there means the icon appears on pages you forgot to tag, including error pages and plain file downloads.

Platform details worth knowing

  • iOS ignores transparency. A transparent Apple touch icon is shown on a black background. Give that icon a solid background color.
  • iOS rounds the corners itself. Supply a full square. If you round the corners in the file, the result is a rounded shape inside another rounded shape.
  • Android may mask the icon into a circle or a rounded square, depending on the launcher. Keep the logo away from the edges so nothing is clipped.
  • Tabs can be dark. A black logo on a transparent background vanishes in a dark browser theme. Check the icon against both light and dark backgrounds.

Getting every size from one image

Scaling a logo by hand to six sizes and packing three of them into an ICO is tedious. The Favicon Generator takes one PNG, JPG, WebP or SVG image and produces:

  • favicon.ico containing 16, 32 and 48 pixel images
  • favicon-32x32.png
  • apple-touch-icon.png at 180 pixels
  • android-chrome-192x192.png and android-chrome-512x512.png
  • site.webmanifest and the HTML snippet

It previews the icon at 16, 32, 48, 180 and 192 pixels on light and dark backgrounds, and lets you set a transparent or solid background, square, rounded or circular corners, and padding. It does not output an SVG favicon, so if you want one, export it from your vector editor and add the SVG tag shown above.

Start from a square source of at least 512 x 512 pixels, because the largest icon is generated at that size. If your logo is not square, crop it first in the Image Cropper using the 1:1 preset.

For the full walkthrough, from choosing a design that works at 16 pixels to installing and testing the files, see how to make a favicon.

Try it

Drop your logo into the Favicon Generator, check the 16 pixel preview on both light and dark backgrounds, and download the package with every size listed in this guide.

Tools in this guide

Frequently asked questions

What is a favicon?

A favicon is the small icon that identifies a website in browser tabs, bookmarks, history and home screen shortcuts. The name is short for favorites icon, and it was introduced by Internet Explorer 5 in 1999.

What size should a favicon be?

A favicon is displayed at 16 by 16 pixels in a standard browser tab and 32 by 32 on high-density screens. A complete set adds 48 by 48, 180 by 180 for iPhone home screens, and 192 and 512 pixel icons for Android.

Should a favicon be ICO, PNG or SVG?

Use an ICO file for the widest compatibility, since browsers request favicon.ico by default. Add PNG files for the Apple touch icon and Android icons. SVG scales to any size but needs an ICO or PNG fallback for older browsers.

Is a 512x512 favicon too big?

Not for its purpose. The 512 pixel icon is listed in the web app manifest and used for Android splash screens and install prompts. It is not loaded for the browser tab, which uses the small sizes in favicon.ico.

More images guides

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵