Toolshub
转换 · 在浏览器中运行

用一张图做出多尺寸的 .ico

拖入一张 PNG 或 JPEG,得到一个 .ico,内含 16、32、48、64 四个尺寸,每个尺寸分别渲染、按中心裁剪,不拉伸。

免费 · 免费上限每文件 25 MB · 不限每天次数

文件
未选择文件

一张图进,一个内含四个尺寸的 .ico 出。透明部分保留。

在本标签页内运行,不上传任何内容。

结果

永久免费:每文件最多 25 MB,每次 1 个文件,不限每天次数,也不需要账号。站内其余工具一律按件一次买断。价格。

不需要授权:这一页没有要付费的东西。

这页与别处不同之处

浏览器标签页要 16 像素,任务栏要 32 像素,桌面快捷方式可能还要更大。这个页面把同一张图按四个尺寸分别渲染,再打包成单个 .ico,每个尺寸独立按中心裁剪,因此不会被拉扁;透明区域照原样保留。

在同一个 .ico 里交出四个分别渲染的尺寸,而不是把一张图缩四次塞进去。

示例输入与输出

环节 情形 体积 说明
输入 1024×1024 的方形 logo PNG 94 KB company mark with transparent padding around the glyph, exported from a design tool
输出 内含四个尺寸的单个 .ico 40 KB 16, 32, 48 and 64 pixel renders packed into one container, roughly 10 KB each

这里写的是本页构建时对照的演示数字,不是对每个文件的承诺。

你可以自己核对什么

承诺 测试结果
这个 .ico 里确实有四个尺寸,不是一个。 读回目录可以看到 16、32、48、64 四个条目,即使源 logo 不是方形,每条也是方形。
每个条目都指向文件内部真实的图像数据。 四个条目的偏移加长度都落在容器内(16、32、48、64 像素各一段数据),每段数据都以 PNG 签名开头,而不是填充字节。

常见问题

以下问答目前仍为英文原文。

Why four sizes instead of one?

Browsers ask for a size and pick the closest entry; a 16-pixel tab icon rendered from a 512-pixel image looks muddy, while a 64-pixel entry scaled down stays sharp. Carrying all four in one file is the format working as intended.

My logo is wide, not square. Will it be squashed?

No. The source is scaled until it covers the square, then the overflow is cropped from the centre. Nothing is stretched, and you can see the crop in the preview before downloading.

Do transparent areas survive?

Yes. The entries are written as 32-bit PNG data inside the container, so alpha stays intact and edges stay clean against any tab colour.

Will this work for Windows application icons?

Partly. The container is valid, but Windows shell icons also expect a 256 pixel entry for large views. That entry is not generated here, so use it for websites and app favicons rather than for executable resources.

Is my logo uploaded anywhere?

No. Decoding and re-encoding both run in this tab, and this site has no upload endpoint at all.

价格

这件工具永久免费:不限每天次数,不需要账号,也没有留在购买之后才给的部分。它的作用就是当这个站点的入口,付费工具维持站点运转。

这件工具每次收 1 个文件,单文件上限 25 MB。这就是全部上限:不限每天次数,也没有留到购买之后才给的部分。

相关工具