Favicon, apple-touch-icon and web app icon sizes
A practical set: favicon.ico (32 or 48 px) plus an SVG icon; Google Search wants a square favicon, ideally larger than 48×48. apple-touch-icon: 180×180 with a solid background (iOS rounds the corners). Web app manifest: 192×192 and 512×512, plus a separate maskable icon with the logo inside the centre 80%.
The details
| Format | Pixels | Keep clear | File | Text | Source |
|---|---|---|---|---|---|
| Web favicon 1:1 | 48×48 | — | — | — | developers.google.com official |
| Web apple-touch-icon 1:1 | 180×180 | iOS rounds the corners itself; use a solid background, no transparency | — | — | realfavicongenerator.net community |
| Web web app manifest icon 192 1:1 | 192×192 | — | — | — | web.dev official |
| Web web app manifest icon 512 / maskable 1:1 | 512×512 | maskable: keep the logo inside a centred circle with a radius of 40% of the icon width; the outer ~10% may be cropped | — | — | web.dev official |
Notes: Google Search: the favicon must be square and at least 8x8, and Google recommends larger than 48x48. Formats: ICO, PNG, SVG are common; Google lists BMP/GIF/ICO/PNG/JPEG/PPM/TIFF. Practical set: favicon.ico (32 or 48) plus an SVG icon. 180 px = 60 pt @3x, still the largest iPhone needs. Apple's only page on this markup is archived, so the figure is a community reading. Use rel="apple-touch-icon"; '-precomposed' is obsolete. Chromium requires both 192x192 and 512x512 icons. Add a raster fallback if you use an SVG. For pixel-exact sizes, add icons in 48dp steps. Declare a separate icon with "purpose": "maskable" (full-bleed background) beside the normal "any" icon. Manifest screenshots must be 320-3840 px per side, with the long side at most 2.3x the short side.
What usually goes wrong
- A transparent apple-touch-icon: iOS fills the transparent part with black.
- One maskable icon used as the normal icon too (the logo gets cropped).
- A favicon that is a scaled-down full logo: unreadable at 16 px.
What your agent can't do alone
Palm's render tools let an agent see an icon at the sizes people do (a browser tab, a home screen) before shipping it, and its data is dated and sourced.
Questions
What size should a favicon be?
Square and larger than 48×48 for Google Search; ship favicon.ico (32 or 48) plus an SVG.
Do I still need -precomposed?
No: use rel="apple-touch-icon"; "-precomposed" is obsolete.