用一張圖做出多尺寸的 .ico
拖入一張 PNG 或 JPEG,得到一個 .ico,內含 16、32、48、64 四個尺寸,每個尺寸分別算圖、依中心裁切,不拉伸。
一張圖進,一個內含四個尺寸的 .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。這就是全部上限:不限每天次數,也沒有留到購買之後才給的部分。