← 返回工具首页 | Olutil Image Tools
🌐 简体中文

图片转 ICO

将 PNG、JPG 或 WebP 图片转为多尺寸 .ico 网站图标。选择图标尺寸、添加内边距和背景,然后下载单个 favicon.ico。 100% 本地处理

🪟 上传图片以生成 .ico 网站图标

使用方法

  1. Upload an image — 点击拖拽区、拖入文件,或用 Ctrl/⌘+V 粘贴。 PNG with transparency works best.
  2. 选择图标尺寸 — 16、32 和 48 默认勾选,覆盖大多数浏览器标签和快捷方式需求;添加 64、128 和 256 用于高 DPI 和桌面快捷方式。右侧面板实时预览每个尺寸。
  3. 设置背景(可选)— 保持透明保留原始 Alpha,或填充白色/自定义颜色使不透明 Logo 在图标上可读。
  4. 调整内边距 — 百分之几的内边距让图形远离边缘,在 16 px 时更平衡。
  5. 下载生成的 favicon.ico 并在你的网站 <link rel="icon" href="/favicon.ico"> 中引用。

应包含哪些尺寸?

The browser picks the best entry from the file, so including more sizes only helps. 16 px is the classic browser tab size; 32 px is the high-DPI tab size; 48 px is used by Windows for taskbar shortcuts; 256 px is shown by Windows for large icon views and by some launchers. A 32 px-only file is fine for a minimal tab favicon; include 16, 32 and 48 for broad compatibility.

功能特性

相关工具