首页 视觉与设计内容详情

ICO Converter: One Image to Multi-Size favicon.ico + Apple Touch Icon - Pick sizes, pack, done — snippet included

2026-11-17 3 访客
ICO Converter: One Image to Multi-Size favicon.ico + Apple Touch Icon

站点名称:ICO Converter: One Image to Multi-Size favicon.ico + Apple Touch Icon

所属分类:视觉与设计

官方网址:https://www.9314.cn/tools/icon-converter/en/

SEO查询: 爱站网 站长工具

进入网站

站点介绍

ICO Converter: One Image to Multi-Size favicon.ico + Apple Touch Icon

Outfitting one site with icons took me three tools last time: an ICO converter, something to cut a 180x180 PNG, and a tab open to the HTML snippet docs. Forty minutes of tab-hopping for a 30KB file. This page puts those chores in one place: drop, check, download, done in a minute.

The short version

  • One ICO, many sizes: check any of 16/32/48/64/128/256 — the packer writes each size's PNG data block straight into its ICO entry. Spec-legal, natively supported since Windows Vista, no BMP detour, no recompression.
  • apple-touch-icon rides along: iOS home-screen icons must be a 180x180 PNG (it won't read ICO), exported when checked — no second tool needed.
  • The HTML snippet copies out: the counter shows two head tags (favicon.ico + apple-touch-icon); copy, paste into your pages, ship.
  • Honest about upscaling: if your source's shortest side needs stretching beyond 2x, the page says plainly it will only look softer.
  • Packing happens in your browser — zero uploads, zero requests, works offline.

Why PNG inside an ICO is legal

ICO is a container: a 6-byte header, a 16-byte directory entry per size, then data blocks. Since Windows Vista in 2007 (spec update 2005), those blocks may be PNG-encoded — which is why 256px icons dropped from hundreds of KB to tens. Every current browser and OS accepts it.PNG pass-through means exactly what it says: whatever bytes the Canvas encoder produces go into the entry verbatim, zero transcoding in between.

How many sizes to check

My habit: the web standard preset of 16+32+48+256 (one tap on this page), landing around 30KB; 64 and 128 only earn their keep when packaging desktop application icons. Don't check everything out of reflex — two extra entries is extra kilobytes, and a browser tab only ever uses one of them.

FAQ

Is PNG inside an ICO file actually valid?

Yes. The ICO format specification allows each entry to be PNG-encoded, natively supported since Windows Vista, and every current browser and OS accepts it. This tool's packer writes each size's PNG data block straight into its ICO entry — no BMP conversion, no recompression, a real size win at 256px.

Which sizes should I pick?

Take the easy route and select all — one file lands around 30KB. Watching bytes? Check 16/32/48 (legacy Windows and browser tabs) plus 256 (high-DPI and taskbar). 64 and 128 are nice-to-haves for the web; desktop application packaging is where they earn their keep.

What is an apple-touch-icon, and why a separate 180 PNG?

When someone adds your page to the home screen on iPhone or iPad, iOS grabs this image as the icon. Apple asks for a 180x180 PNG (squared-off — the system rounds the corners itself) and does not accept ICO, so this tool exports it as a standalone PNG named apple-touch-icon.png by default.

What if my source image isn't square, or is smaller than 256px?

Non-square images are center-cropped to a square first (icons are meant to be square). Images smaller than a target size get upscaled — anything beyond 2x triggers a warning, because stretching a small image only makes it blurry. Bring a source image of 256x256 or larger.

Is my image uploaded to a server?

No. Rescaling, ICO packing and PNG generation all happen inside this device's browser — zero uploads, zero requests. Your size selections live only in this browser's localStorage and won't follow you to another device; the footer button clears them in one click.

Where does favicon.ico go, and how do I use the HTML snippet?

Drop the downloaded favicon.ico into your site's root directory — most browsers look for /favicon.ico automatically. To be explicit, paste the generated snippet into every page's head: the two lines point at favicon.ico and apple-touch-icon.png respectively. Copy, paste, done.

中文版:https://www.9314.cn/tools/icon-converter/

 暂无评论,快来抢沙发吧~

发布评论