Skip to content

Which favicon files and sizes a website needs in 2026, with the HTML lines and the manifest

A free script checked our site's icons (no maskable one); Favicon Generator made 8 files from an SVG logo and 7 from a PNG one, with the HTML to paste.

We make Favicon Generator, the app this guide uses. The free methods come first; every step shown in Favicon Generator was checked in the app itself, and the screenshots come from the real app with invented sample data.

Short answer

Most sites are covered by favicon.ico (a 32 pixel icon, or several sizes in one file) for browser tabs, an optional favicon.svg, a 180 by 180 apple-touch-icon.png for iPhone home screens, and PNG icons of 192 and 512 pixels, plus a maskable 512 icon, listed in a web app manifest for Android and installed apps; Google recommends an icon larger than 48 by 48 pixels. Four link lines in the page's head point to them, and a short PowerShell script checks a live site's links and the real size of each file. Favicon Generator made the whole set for the site root from an SVG logo (8 files) and from a PNG logo (7 files, without the SVG line), with the HTML to paste.

Who reads which file

  • Google Search reads the favicon from the home page's link lines, its favicon page says: rel="icon", "shortcut icon", "apple-touch-icon" or "apple-touch-icon-precomposed". The icon must be square and at least 8 by 8 pixels, larger than 48 by 48 is recommended, there is one favicon per hostname, and Googlebot-Image must be allowed to fetch it. A change can take days to weeks to show.
  • Browser tabs use rel="icon". With several, MDN explains that the browser picks by their media, type and sizes, and the last one when they are equal. Evil Martians' guide puts sizes="32x32" on the .ico line to get around a Chrome bug that took the ICO instead of the SVG.
  • iPhone and iPad home screens use rel="apple-touch-icon", an Apple value outside the standard: MDN notes that iOS does not use rel="icon" for this. Apple's archived Safari web content guide says an apple-touch-icon.png in the site root works for the whole site and a link line overrides it. Evil Martians gives 180 by 180 pixels.
  • Android and installed web apps read the icons listed in the manifest. web.dev's install criteria for Chrome ask for a 192 and a 512 pixel icon. In MDN's manifest reference, only an icon's src is required; it can also give its sizes ("any" for an SVG) and a purpose: any (the default), maskable or monochrome. A maskable icon may be cut to a circle or another shape, so its logo stays inside the central safe zone: a circle 409 pixels across on a 512 icon, in Evil Martians' numbers.

Older lists of a dozen Apple sizes and Windows tile files come from other years. Evil Martians says Windows tiles are no longer required, Safari's pinned tabs use the regular favicon, and "shortcut" was never a valid link relation; RealFaviconGenerator's guide says a single 180 by 180 Apple icon has been enough since iOS 8. The sources still differ in places: Evil Martians suggests a single 32 pixel image in the .ico, while RealFaviconGenerator puts 16, 32 and 48 pixel images in it and also suggests a 96 by 96 PNG for Google.

The HTML lines and the manifest

These are the head lines of a set made for the site root, from the test below. The theme-color line is optional: it colours the browser bar in some mobile browsers, such as Chrome on Android.

<link rel="icon" href="/favicon.ico" sizes="32x32">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#14532d">

And its site.webmanifest, which names the site and lists the three PNG icons (the app writes each key on its own line; each icon is on one line here):

{
  "name": "Larkspur Tea",
  "short_name": "Larkspur Tea",
  "icons": [
    { "src": "icon-192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "icon-512.png", "sizes": "512x512", "type": "image/png" },
    { "src": "icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
  ],
  "theme_color": "#14532d",
  "background_color": "#ffffff",
  "display": "standalone"
}

Method 1 (free): check a live site with PowerShell

Writing the lines is quick; checking that each file is there, of the right type and size, is where mistakes show. This Windows PowerShell 5.1 script reads a home page's icon and manifest lines, downloads each file and reads its real pixel size from the file's own header, with no module to install:

$Site = 'https://agitools.app/'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
function Get-IconInfo([string]$url) {
    try { $r = Invoke-WebRequest $url -UseBasicParsing }
    catch { "  $url -> error $([int]$_.Exception.Response.StatusCode)"; return }
    $b = $r.RawContentStream.ToArray()
    $kind = "$($r.Headers['Content-Type'])"
    $size = ''
    if ($b.Length -ge 24 -and $b[1] -eq 0x50 -and $b[2] -eq 0x4E -and $b[3] -eq 0x47) {         # PNG: IHDR width, height
        $w = [BitConverter]::ToUInt32([byte[]]($b[19], $b[18], $b[17], $b[16]), 0)
        $h = [BitConverter]::ToUInt32([byte[]]($b[23], $b[22], $b[21], $b[20]), 0)
        $size = "PNG $w x $h"
    } elseif ($b.Length -ge 6 -and $b[0] -eq 0 -and $b[2] -eq 1) {                               # ICO: one entry per size
        $n = [BitConverter]::ToUInt16($b, 4)
        $size = 'ICO ' + ((0..($n - 1) | ForEach-Object { $s = $b[6 + 16 * $_]; if ($s -eq 0) { 256 } else { $s } }) -join ', ')
    } elseif ([Text.Encoding]::UTF8.GetString($b, 0, [Math]::Min(200, $b.Length)) -match '<svg') {
        $size = 'SVG'
    }
    "  $url -> $($r.StatusCode), $kind, $($b.Length) bytes, $size"
}
$html = (Invoke-WebRequest $Site -UseBasicParsing).Content
$links = [regex]::Matches($html, '<link\b[^>]*\brel="(icon|shortcut icon|apple-touch-icon|manifest)"[^>]*>')
"links in the home page: $($links.Count)"
foreach ($l in $links) {
    "  " + $l.Value
    $href = [regex]::Match($l.Value, 'href="([^"]+)"').Groups[1].Value
    $url = [Uri]::new([Uri]$Site, $href).AbsoluteUri
    if ($l.Groups[1].Value -eq 'manifest') {
        try { $m = Invoke-RestMethod $url } catch { "  $url -> error $([int]$_.Exception.Response.StatusCode)"; continue }
        "  manifest: name '$($m.name)', short_name '$($m.short_name)', $(@($m.icons).Count) icons"
        foreach ($i in $m.icons) { "    icon $($i.src) sizes $($i.sizes) purpose $($i.purpose)"; Get-IconInfo ([Uri]::new([Uri]$url, $i.src).AbsoluteUri) }
    } else { Get-IconInfo $url }
}

We ran it on our own site on 30 November 2026 (Windows PowerShell 5.1, Windows 11):

links in the home page: 4
  <link rel="icon" href="/favicon.ico" sizes="32x32">
  https://agitools.app/favicon.ico -> 200, image/vnd.microsoft.icon, 4478 bytes, ICO 16, 32, 48
  <link rel="icon" href="/favicon.svg" type="image/svg+xml">
  https://agitools.app/favicon.svg -> 200, image/svg+xml, 2003 bytes, SVG
  <link rel="apple-touch-icon" href="/apple-touch-icon.png">
  https://agitools.app/apple-touch-icon.png -> 200, image/png, 6231 bytes, PNG 180 x 180
  <link rel="manifest" href="/site.webmanifest">
  manifest: name 'AGI TOOLS', short_name 'AGI TOOLS', 2 icons
    icon /icon-192.png sizes 192x192 purpose
  https://agitools.app/icon-192.png -> 200, image/png, 6822 bytes, PNG 192 x 192
    icon /icon-512.png sizes 512x512 purpose
  https://agitools.app/icon-512.png -> 200, image/png, 29315 bytes, PNG 512 x 512

Every file answered, and the stated sizes match: the .ico holds 32 pixels among 16, 32 and 48, and the manifest's icons are 192 and 512 pixels. The script only lists them; you compare by eye. A missing file prints a line such as "-> error 404" (we tried a made-up address on our site). The check also shows what our manifest lacks: it lists no maskable icon, which matters if the site is to be installed as an app. Replace the address in the first line to check another site. To make favicon.ico itself with free tools, see our guide to creating favicon.ico offline on Windows.

Method 2: the whole set with Favicon Generator

Favicon Generator is our Windows app for this: from one image or SVG it makes the ICO and PNG icon set, the web app manifest and the HTML lines to copy, with a preview on light and dark tabs, for one site or several, offline. The screenshots below come from version 1.0.0 (evaluation build), with two invented logos: a clean SVG for "Larkspur Tea" and a 1024 by 1024 PNG on a transparent background for "Copperfield Garage".

  1. Add the logos. Both were listed as ready, one site each.
  2. Set the icon folder under On the website: / for the site root. The app explains that it can also be a folder such as /assets/icons/ or a full https:// address, and the HTML lines follow it.
  3. Read the preview and the HTML. For the SVG logo, the preview showed light and dark tabs at 16 and 32 pixels, the iPhone and Android (maskable) home screen icons and the 512 pixel icon, above the five lines shown earlier and the note "The set has 8 files". Copy HTML copied them. For the PNG logo, the HTML had three link lines and the theme-color line: no favicon.svg line, since there is no SVG to point to.
  4. Create the icon sets. One run made a folder per site: "Larkspur Tea favicons" with 8 files and "Copperfield Garage favicons" with 7, each with its icons, site.webmanifest and a favicon-snippet.html holding the lines to paste.
Favicon Generator with two logos: the Larkspur Tea SVG selected, its icon on light and dark browser tabs, on iPhone and Android home screens and at 512 pixels, the icon folder set to the site root and five HTML lines pointing to /favicon.ico, /favicon.svg, /apple-touch-icon.png and /site.webmanifest.
An SVG logo, the icon folder set to the site root, and the HTML that follows it. Favicon Generator 1.0.0 (evaluation build), tested 30 November 2026, invented logos.
The Copperfield Garage PNG logo selected, with its previews and four HTML lines: the .ico, the Apple touch icon and the manifest links, the theme color, and no SVG line.
A PNG logo gets no SVG line. Favicon Generator 1.0.0 (evaluation build), tested 30 November 2026, invented logos.
The Icon sets created window: Copperfield Garage favicons with 7 files and Larkspur Tea favicons with 8 files.
Two sites, two folders, in one run. Favicon Generator 1.0.0 (evaluation build), tested 30 November 2026, invented logos.

We read every file back with Pillow. In both sets, favicon.ico holds 16, 32 and 48 pixel icons; apple-touch-icon.png is 180 by 180 with no transparent pixel, on a white background; icon-192.png, icon-512.png and icon-maskable-512.png have the sizes their names give; and the manifest lists the three PNG icons, the maskable one with purpose maskable. In both maskable icons, the logo sits on white and its farthest pixel is 137 pixels (Copperfield) and 183 pixels (Larkspur) from the centre: inside the 205 pixel radius of the safe zone.

How to Make a Favicon from One Image (All Sizes + HTML Code)1:05Watch on YouTubeNothing loads from YouTube until you press play. The player then loads from youtube-nocookie.com, YouTube's privacy-enhanced mode, and connects to Google's servers. Privacy

Limitations

  • The PowerShell script reads link lines written exactly as rel="icon", "shortcut icon", "apple-touch-icon" or "manifest", with double quotes, in the home page only: it misses apple-touch-icon-precomposed and other spellings, and resolves addresses against the address in its first line, not one reached after a redirect. We ran it on one site, ours.
  • Sources differ on some sizes, and Google decides whether and when a favicon shows in its results.
  • Favicon Generator makes the files and the lines to paste; it does not upload them to your site or edit your pages.
  • Favicon Generator's planned requirements: Windows 10 (22H2) or 11, 64-bit.

References