🖼️ Favicon Generator
1 / 4
模擬瀏覽器標籤頁顯示效果:此處直接渲染與匯出相同的 16×16px 影像;高密度螢幕會由系統放大顯示。
匯出說明:
Pack all selected sizes into a ZIP, download 256px individually, or generate an ICO containing selected 16–256px PNG entries. The 180/192/512 px sizes cover Apple Touch and PWA icons; an empty text field produces a background-only icon; image upload is not supported.
📐 計算公式 / 原理
按所選尺寸集合(16 / 32 / 48 / 64 / 128 / 180 / 192 / 256 / 512px)逐尺寸繪製畫布預覽;形狀分方形(圓角 0)、統一圓角、圓形三類,標籤頁預覽直接使用同一繪製邏輯生成的 16×16px 畫布;ZIP 採用無壓縮打包,ICO 目錄項直接嵌入 16–256px PNG 資料
將文字 / Emoji 渲染到 Canvas,按 16 / 32 / 48 / 64 / 180 / 192 / 512 等尺寸匯出 PNG,可打包 ZIP 或生成含 16–256px 目錄項的 ICO;用於適配瀏覽器、Apple Touch 與 PWA。
📦 已選匯出尺寸預覽
📎 網站圖示與 PWA 部署示例
<!-- page head -->
<link rel="icon" type="image/png" sizes="16x16" href="https://example.com/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://example.com/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="48x48" href="https://example.com/favicon-48x48.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://example.com/favicon-180x180.png">
<link rel="manifest" href="https://example.com/site.webmanifest">
# https://example.com/site.webmanifest (excerpt)
{
"icons": [
{ "src": "/favicon-192x192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/favicon-512x512.png", "sizes": "512x512", "type": "image/png" }
]
}
下載全部尺寸後按實際檔名部署;manifest 至少保留 192 與 512 兩個 PWA 圖示。
📚 深度解析:Favicon 生成器
💡 常見使用場景
- 網站上線前補齊 favicon。
- 用品牌首字母或 Emoji 快速做圖示。
- 生成 Apple Touch 與 PWA 所需尺寸。
- 為不同瀏覽器準備多尺寸圖示。
由首字母生成 16–512 圖示集
輸入:文字 F、圓形、品牌紫背景。
處理:用同一繪製邏輯重繪各尺寸。
輸出:多尺寸 PNG 下載,含 180/192/256px(可選 512px),並可打包 ICO;不處理圖片上傳。
❓ 常見問題(FAQ)
- 必須方形嗎?
- 建議方形,非方會被裁切或留白;透明 PNG 更通用。結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
- 生成的程式碼/圖片能直接用嗎?
- 可直接複製使用,建議粘到專案後在瀏覽器實測微調;本工具只生成不託管。
- 會儲存或上傳我的內容嗎?
- 結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Multi-size container | ICO packs several bitmaps from 16 to 256 px in one file | Microsoft ICO format |
| Web app manifest | manifest icons at 192 and 512 px feed install surfaces | W3C Web App Manifest |
| Alpha and background | transparent icons may vanish on dark themes, so keep safe padding | Design practice |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準