PWA icon generator & favicon generator: PNG, SVG
Build favicon files and PWA icons from PNG or SVG locally in your browser
- Free
- No account required
Your logo will appear here
Add a file to preview seven sizes. Download only the ones you need.
What makes up a modern favicon set?
A single root favicon.ico is no longer enough. You usually need several variants: multi-size PNG, Apple touch icon, Android icon, and a PWA manifest.json.
This generator builds the PNG icons from one source (PNG, or SVG rasterized to a bitmap, ideally 512×512+) and shows an HTML snippet for <head>.
Everything runs in the browser via the canvas API and nothing is uploaded. SVG is drawn to canvas first, then exported as PNG.
Design for the smallest icon
Review the logo at 16×16 before downloading larger variants. Small lettering and thin lines may disappear. If they do, use a simplified symbol instead of shrinking the full brand mark.
How to make a favicon and PWA icons from a logo
You make a favicon from one square file that becomes a set of PNGs in several sizes, a maskable icon and a manifest. Five steps take you from a logo to icons on your server.
-
Prepare a square source
Take the logo as SVG, or as a PNG of at least 512 × 512 px, ideally on a transparent background. If the mark is horizontal, crop out the symbol, because the full wordmark will not fit in 16 px.
-
Set the background and padding
Drop the file into the generator, pick a background and move the padding slider. The browser tab preview shows the icon at its real size, so you see at once whether thin lines disappear.
-
Download the PNG files and the maskable icon
Download the variants from 16 to 512 px, including the 180 × 180 px apple-touch-icon, plus the 512 × 512 px maskable icon. The generator draws everything in your browser, and the logo file never reaches a server.
-
Download the manifest and fill in the app details
The manifest.json button downloads a file with the 192 and 512 px icons and the maskable icon. The file already sets start_url to the home page (web.dev describes the field as required). Enter your app name, and change start_url if the app should open at a different address.
-
Upload the files and paste the code into the head
Upload the PNGs and the manifest to the site root, copy the HTML and paste it into the head section. Then open each file URL in the browser and check that the server returns the image with status 200.
Examples of favicon and manifest code
The file names match the ones you download from the generator.
<link rel="icon" href="/favicon.ico"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/manifest.json">Google recommends a favicon larger than 48 × 48 px, so it is worth listing the 96 px variant next to the 32 px one.
{
"name": "App name",
"short_name": "App",
"start_url": "/",
"icons": [
{ "src": "/favicon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
{ "src": "/favicon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
{ "src": "/maskable-icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
]
} The maskable icon is a separate entry. web.dev advises against combining "any" and "maskable" in one entry, because the safe zone padding then shrinks the regular icon.
safe zone radius: 40% × 512 px = 204.8 px
circle diameter: 409.6 px
square inside the circle: about 289.6 × 289.6 px If your logo is square, fit it within about 290 px in the centre of the 512 px file, and it survives any mask shape.
Common favicon mistakes
-
A full logo with lettering at 16 px
At 16 × 16 px, lettering turns into a few gray pixels. For the favicon, use the symbol alone or the first letter of the brand.
-
A favicon blocked in robots.txt
Google shows a favicon in results only when Googlebot-Image can fetch the file and Googlebot can fetch the home page. Blocking the images folder removes the icon from search.
-
Changing the favicon URL often
Google asks for a stable file URL. A new version at a new address reaches results only after a recrawl, which Google says takes from several days to several weeks.
-
A transparent maskable icon
Android crops a maskable icon to its own shape, and a transparent background then shows whatever sits behind it. That is why the generator always gives this icon a solid background.
-
Head code without the uploaded files
The copied code references favicon-32.png, apple-touch-icon.png and manifest.json. If any of these is missing on the server, the browser gets a 404 and shows the default icon.
Requirements for favicons and PWA icons
| Value | What it means | Source |
|---|---|---|
| 8 × 8 px | Minimum size of a square favicon for Google Search. Google recommends a file larger than 48 × 48 px. | Google Search Central, Favicon |
| 1 | Number of favicons Google Search supports per hostname. A subdomain can have its own, a folder on the same domain cannot. | Google Search Central, Favicon |
| 192 and 512 px | Icon sizes Chromium requires in a web app manifest. The manifest also needs name or short_name, and start_url. | web.dev, Add a web app manifest |
| 40% | Radius of the maskable icon safe zone relative to the icon width. The outer 10% near the edge may be cropped. | web.dev, Maskable icons |
| /favicon.ico | The address a browser may try on its own when a page has no link with rel="icon". | WHATWG, HTML, link type icon |
| 180 × 180 px | iPhone icon size in Apple’s rel="apple-touch-icon" example. Without a link, iOS looks for apple-touch-icon.png in the site root. | Apple, Configuring Web Applications |
Sources checked:
Key sizes
- 16×16favicon-16.png
- Browser tab. Keep the mark simple.
- 32×32favicon-32.png
- Standard HiDPI tab icon.
- 180×180apple-touch-icon.png
- iOS home-screen icon. Available to download above.
- 512×512favicon-512.png
- Large PWA icon referenced in manifest.json.
A PWA icon generator prepares 192×192 and 512×512 icon files from a PNG or SVG source. This generator runs locally in your browser and does not upload the image.
Upload a PNG or SVG, set the background and padding, then download seven variants: 16×16, 32×32, 48×48, 96×96, 180×180 (apple-touch-icon), 192×192 and 512×512, plus a 512×512 maskable icon. The generator runs locally in your browser and does not upload the image.
Only for old browsers and tools that request /favicon.ico on their own. Modern browsers use the PNG from the <head> snippet. This generator exports PNG, so make the .ico from the 32×32 variant in a separate converter.
Upload a square PNG or SVG, choose the background and padding, then download the icon variants. The generator runs locally in your browser.
The common manifest sizes are 192×192 and 512×512 px. This generator also creates smaller favicon variants: 16×16, 32×32, 48×48 and 96×96 px.
Android does not show your icon as you drew it. It crops it to a shape of its own choosing: a circle, a rounded square, a squircle. A maskable icon is one drawn to survive that, with everything important inside the central 80%, which the spec calls the safe zone, and on an opaque background, because transparency under a crop shows whatever sits behind it. Without one, Android pads your flat icon inside a white circle instead. This generator produces a 512×512 maskable variant alongside the flat icons.
Because the two declarations mean different things. An icon marked purpose "any" is used as drawn and gets no adaptive treatment on Android; one marked "maskable" is assumed to carry a safe zone, so anything that is not Android draws it padded and small. Shipping both is what the spec expects, and it is what the manifest this tool generates does.
At least 512×512. SVG is ideal.
Not in current versions. Since Safari 12, pinned tabs show the regular favicon, so the PNG set from this generator is enough. A mask-icon SVG only matters for older Safari.
Google does not show a favicon when the file is not square, is smaller than 8 × 8 px, is blocked for Googlebot-Image, or when the home page is blocked for Googlebot. A change appears after a recrawl, which takes from several days to several weeks. You can speed it up by requesting indexing of the home page with the URL Inspection tool in Search Console.
A favicon can be an SVG file, and the HTML specification provides the sizes="any" value for scalable icons. Google Search lists BMP, GIF, ICO, PNG, JPEG, PPM and TIFF as supported formats, so it is worth serving a PNG next to the SVG.
A subdomain can have its own favicon in Google, because Google Search supports one favicon per hostname. A blog at blog.example.com can therefore use a different icon from example.com, while the folder example.com/blog gets the domain icon.
What else might come in handy
File or code ready? Check the result on the live page
Icons ready? Explore the scope of an Insight SEO audit before your next site release.