将任意图片转换为完整的 favicon 图标集:.ico 文件、多种 PNG 尺寸、Apple touch icon 以及 web manifest,全部在浏览器中生成。
如何使用 Favicon 生成器
上传一张正方形图片。简单的 logo 或图标效果最佳,图片会在你的浏览器中处理。
可选择背景颜色并输入网站名称,用于 web manifest。
下载 ZIP 文件,并将 HTML 代码片段粘贴到页面 head 中。
A favicon is the small icon shown in browser tabs, bookmarks and on phone home screens. It is a tiny detail that makes a site look finished and recognizable, and modern browsers expect several versions of it.
That is the catch: one image is not enough any more. You need a multi-size .ico for classic browsers, separate PNG sizes, an Apple touch icon for iOS home screens, larger PNGs for Android, and a web manifest if the site should be installable.
This generator builds the entire set from a single image, including a real multi-size .ico, and gives you the exact HTML snippet to drop into your page head, so you do not have to assemble or hand-write any of it.
For the best result, upload a square image of at least 512 px, ideally a simple logo or mark rather than a detailed photo, since the icon is often shown very small. A non-square image is centered and padded to a square, so detail near the edges may end up in the margins.
You can optionally set a background color and your site name. The site name goes into the web manifest used when someone adds the site to their home screen.
Everything runs locally in your browser with the Canvas API, so your image is never uploaded. You download a ZIP with all the files and the snippet to paste in.
常见问题
包含 16、32 和 48 px 的 favicon.ico,单独的 16 和 32 px PNG 文件,180 px 的 Apple touch icon,用于 Android 的 192 和 512 px PNG 文件,一个 site.webmanifest,以及可粘贴到页面 head 的 HTML 代码片段。
至少 512 px 的正方形图片效果最佳,最好是简单的 logo 或标识。非正方形图片会被居中并填充为正方形,因此靠近边缘的细节可能会落入留白中。
不会。图标使用 Canvas API 在你的浏览器中生成,因此你的图片绝不会离开你的设备。
嵌入此工具
将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。
<iframe src="https://monu.tools/embed/zh/favicon-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相关工具