PNG to ICO
Convert a PNG to a multi-size ICO in your browser. Your PNG becomes a favicon.ico with 16, 32, and 48 px — plus the rest of a favicon set.
拖入图片以生成 Favicon
拖放、粘贴或选择文件
PNG · JPG · WebP · SVG — 图标在您的设备上生成
Turn a PNG into a real .ico
The .ico format can hold several sizes in one file, which is exactly what a favicon needs. Drop a PNG here and it is downscaled to 16, 32, and 48 px and packed into a single favicon.ico — the format Windows and older browsers expect.
You also get standalone PNG icons, an apple-touch-icon, Android icons, and a manifest in the same zip, so one PNG gives you everything required to add a favicon to a website. Conversion runs entirely on your device.
How to convert PNG to ICO
- Add your PNG — drag & drop, paste, or choose a file (JPG, WebP, and SVG work too).
- Set the background — keep transparency or add a solid color if your PNG has fine detail.
- Check the previews — confirm the 16 and 32 px versions stay readable.
- Download the zip — your favicon.ico is inside, ready to drop at your site root.
Tip: keep PNG transparency
If your PNG has a transparent background, leave it transparent so the icon blends into light and dark browser tabs. Only add a color if thin lines vanish on certain themes.
.ico 容器: sizes and where each is used
.ico 文件是一种图标容器,能在单个文件中容纳多张位图,这正是网站图标所需要的。你的 PNG 会被缩小并打包进一个包含以下尺寸的 favicon.ico:
| Size | File | Where it's used |
|---|---|---|
| 16 × 16 px | inside favicon.ico | 标准屏幕密度下的浏览器标签页和地址栏图标。 |
| 32 × 32 px | inside favicon.ico | 高 DPI 显示屏上的标签页和书签图标,以及 Windows 任务栏。 |
| 48 × 48 px | inside favicon.ico | 桌面快捷方式和 Windows 磁贴可从中挑选的更大条目。 |
Format & container
.ico 内的每个尺寸都以无损的 PNG 编码条目存储,因此容器本身不会造成任何质量损失——只有源素材的细节程度才决定小图标的清晰度。
How it's wired into your page
<link rel="icon" href="/favicon.ico" sizes="any">
<!-- favicon.ico 也会在你的网站根目录被自动找到 -->
Tip
在源文件中保留 PNG 透明度,让图标在浅色和深色浏览器标签页中都能融入;仅当细线在某个主题下消失时,才添加纯色背景。
所有 Favicon 与图标工具
常见问题
Is the .ico a true multi-size icon?
Yes. The favicon.ico contains 16, 32, and 48 px in one file, so the browser can pick the crispest size for each context.
Can I convert JPG or WebP to ICO instead?
Yes — the converter accepts PNG, JPG, WebP, and SVG. For the sharpest small icon, start from the highest-resolution source you have.
Where does the conversion happen?
In your browser, so the .ico is created on your own device. How any data associated with the tool is handled is described in our privacy policy.
Does converting reduce quality?
Icons are tiny, so downscaling a larger PNG actually improves sharpness. The .ico is lossless; the only thing that affects clarity is how detailed your source art is.
更多图片工具
Convert image format
PNG, JPG and WebP — convert any to any.
Image toolResize an image
Change dimensions to exact pixels or presets.
Image toolCrop an image
Crop to any ratio or an exact pixel size.
Image toolCompress an image
Shrink file size without visible quality loss.
Image toolConvert HEIC to JPG
Turn iPhone HEIC photos into universal JPG.