Image // blog
All blog postsHow to Create a Favicon Online (and How to Generate One Manually)
PNG to ICO Converter - Favicon GeneratorNothing makes a brand-new site feel unfinished like a blank icon in the browser tab. You spent hours on the layout, picked colors that do not burn retinas, and wrote code that actually works. The tab still looks like a sheet of paper.
You do not need a heavy desktop graphics suite, and you do not need to upload your logo to a mystery server. The PNG to ICO Converter - Favicon Generator turns a PNG or SVG into a real .ico file, builds an Apple touch icon, and gives you the HTML tags, all in this tab.
Turn PNG into .ico and favicons in seconds
Drop in a square PNG (or SVG) and download a multi-resolution favicon.ico (16, 32, and 48, with an optional 256 for Windows) plus apple-touch-icon.png and the small PNG tab icons. The image never leaves your computer. We never see it.
Need a different format first? Convert WebP to PNG in the WebP to PNG Converter / PNG to WebP Converter, clean an SVG in the SVG Optimizer / Cleaner, or embed the result with the Image to Base64 Converter / Base64 to Image Converter. Those tools also run on your computer.
What sizes you actually need
Some guides make it sound like you need seventeen files just to open a tab. Covering the core sizes gets you most of the way there without turning public/ into a museum:
| File | What it is for |
|---|---|
| favicon.ico | 16x16, 32x32, and 48x48 in one .ico |
| 16x16 PNG | Standard browser tabs |
| 32x32 PNG | Address bars and bookmarks |
| 180x180 PNG | apple-touch-icon.png for iOS Home Screen |
| 192x192 PNG | Android and PWA manifest icons |
| 512x512 PNG | PWA splash and large app icons |
Tiny icons hate microscopic text and stacked drop shadows. Those turn into digital oatmeal at 16px. Start with a clean, bold mark or monogram so it still has personality when it is smaller than a pinky nail.
How to generate a favicon manually (no generator needed)
The converter is the fast path when you want a .ico file in thirty seconds. Knowing how to build or wire favicons by hand still helps: automating assets in a script, chasing a stubborn cached icon, or seeing how .ico files work.
1. Resize a PNG in the browser with canvas
HTML5 <canvas> can resize a PNG to 16x16, 32x32, or 180x180 with no backend. Run this on an image element in a script or in DevTools:
JavaScript
function resizeImageToPngDataUrl(img, width, height) {
const canvas = document.createElement("canvas");
canvas.width = width;
canvas.height = height;
const ctx = canvas.getContext("2d");
if (!ctx) return "";
ctx.clearRect(0, 0, width, height);
ctx.imageSmoothingEnabled = true;
ctx.imageSmoothingQuality = "high";
ctx.drawImage(img, 0, 0, width, height);
return canvas.toDataURL("image/png");
}Want a real file instead of a data URL? Convert the canvas with toBlob and trigger a download:
JavaScript
canvas.toBlob((blob) => {
if (!blob) return;
const url = URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "favicon-32x32.png";
a.click();
URL.revokeObjectURL(url);
}, "image/png");2. Pack PNGs into a .ico with CLI tools
If you want a manual build step, classic command-line tools can pack several PNGs into one favicon.ico:
ImageMagick
magick icon-16.png icon-32.png icon-48.png favicon.icoicotool
icotool -c -o favicon.ico icon-16.png icon-32.png icon-48.pngicotool ships with icoutils on Linux and Homebrew. Bundling multiple sizes in one .ico lets older or picky clients pick the resolution that fits.
3. Add the link tags in HTML or Next.js
Once the files sit in your public root, tell browsers where they are. In a plain HTML <head>:
HTML
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />On Next.js App Router, putting favicon.ico and apple-icon.png in the app/ directory (or setting icons in metadata) wires up the expected tags. The favicon generator also copies those tags for you after it builds the files.
4. Why the old favicon is still showing
You update the icon, refresh, and the previous one stares back. Browsers cache favicons hard. Before you throw the monitor out a window:
- Open a private window, or load
/favicon.icodirectly and hard-refresh. - Confirm the file returns 200 and is not blocked by a rewrite or routing rule. A static file in
public/is the usual fix. - If a CDN caches static assets, wait or bump the path (for example
/favicon.ico?v=2).
Generate .ico and app icons in the PNG to ICO Converter - Favicon Generator, or tinker with canvas and CLI tools yourself. Your tab does not have to look lonely. The conversion stays on your computer. We never see the files.
Share