网站 favicon 图标怎么裁How to crop a website favicon
favicon 是浏览器标签页、书签里显示的小图标,是网站品牌的第一印象。它其实需要多个尺寸:经典的 16×16、32×32,移动端的 apple-touch-icon 180×180 等。用 365Lab 图片裁剪精确设尺寸、透明背景并导出 PNG,再合并成 .ico 即可。
一、什么是 favicon
- 地址栏/标签页小图:帮助用户一眼认出你的网站。
- 书签与手机主屏:收藏夹、加到主屏时显示的图标。
- 需要多尺寸:不同场景调用不同分辨率,避免放大发虚。
二、常见 favicon 尺寸
| 用途 | 尺寸 | 格式 |
|---|---|---|
| 桌面浏览器标签 | 16×16 / 32×32 | .ico / PNG |
| Windows 磁贴/旧环境 | 48×48 | .ico / PNG |
| iPhone/iPad 主屏 | 180×180 | apple-touch-icon PNG |
| Android / PWA | 192×192 / 512×512 | PNG(manifest) |
三、用 365Lab 裁出各尺寸
- 打开 365Lab 图片裁剪,导入你的方形 logo 原图(建议先有一张最大、最清晰的母图)。
- 用「精确尺寸」依次设 32×32、16×16、180×180、192×192 等,框选居中后导出 PNG。
- 若希望图标在深色标签栏也干净,选透明背景导出 PNG。
- 每个尺寸各导一份,命名清楚(如 favicon-32.png)。
四、导出格式与 .ico 说明
关于 .ico:365Lab 导出 PNG / JPG / WebP,不直接生成 .ico 文件。你先导出 16、32、48 等尺寸的 PNG,再用在线转换工具把它们合并成单个 .ico(多数工具支持多尺寸打包)。这是工具的边界,请知悉。
- 现代站点:直接用 PNG/SVG 引用即可,无需 .ico。
- 要兼容老环境:再额外合成 .ico 作为兜底。
五、放置与引用
- 把图标放到网站根目录,在
<head>里用<link rel="icon">与<link rel="apple-touch-icon">引用。 - PWA 还需
manifest.webmanifest指向 192/512 图标。 - 改完后强刷(Ctrl+F5)让浏览器重新读取新图标。
常见问题
favicon 一般多大?
经典尺寸是 16×16、32×32、48×48;移动端还需 apple-touch-icon 180×180,Android 常用 192×192 与 512×512(配合 manifest)。现代浏览器也支持 SVG favicon。
工具能导出 .ico 吗?
365Lab 导出 PNG / JPG / WebP,不直接生成 .ico。你可以先导出 16、32、48 等尺寸的 PNG,再用在线转换工具合并成 .ico 文件。
透明背景 favicon 可以吗?
可以。选「透明背景」导出 PNG,现代浏览器在深色标签栏也能正常显示;若需要兼容极老环境,可给一个不透明底色版本。
A favicon is the small icon in the browser tab and bookmarks — the first impression of your site's brand. It actually needs multiple sizes: classic 16×16, 32×32, plus apple-touch-icon 180×180 on mobile. Use 365Lab Image Cropper to set exact sizes, transparent background and export PNG, then combine into .ico.
1. What is a favicon
- Tab/address-bar icon: helps users spot your site at a glance.
- Bookmarks & home screen: the icon shown when saved or added to home.
- Multiple sizes needed: different contexts call different resolutions to avoid blur.
2. Common favicon sizes
| Use | Size | Format |
|---|---|---|
| Desktop tab | 16×16 / 32×32 | .ico / PNG |
| Windows tile / legacy | 48×48 | .ico / PNG |
| iPhone/iPad home | 180×180 | apple-touch-icon PNG |
| Android / PWA | 192×192 / 512×512 | PNG (manifest) |
3. Crop each size with 365Lab
- Open 365Lab Image Cropper and import your square logo source (prefer the largest, sharpest master).
- Use "Exact size" to set 32×32, 16×16, 180×180, 192×192 etc., frame centered, export PNG.
- For a clean look on dark tabs, export PNG with transparent background.
- Export each size with a clear name (e.g. favicon-32.png).
4. Export formats and .ico note
About .ico: 365Lab exports PNG / JPG / WebP, and does not produce .ico directly. Export 16, 32, 48 etc. as PNG first, then use an online converter to pack them into one .ico (most tools support multi-size). This is a tool boundary — please note it.
- Modern sites: reference PNG/SVG directly, no .ico needed.
- Legacy fallback: additionally build a .ico.
5. Place and reference
- Put icons at the site root and reference them in
<head>with<link rel="icon">and<link rel="apple-touch-icon">. - PWA also needs
manifest.webmanifestpointing to 192/512 icons. - Hard-refresh (Ctrl+F5) so the browser re-reads the new icon.
FAQ
How big is a favicon usually?
Classic sizes are 16×16, 32×32, 48×48; mobile needs apple-touch-icon 180×180, Android commonly 192×192 and 512×512 (with manifest). Modern browsers also support SVG favicons.
Can the tool export .ico?
365Lab exports PNG / JPG / WebP, not .ico directly. Export 16, 32, 48 etc. as PNG first, then merge into .ico with an online converter.
Can a favicon have a transparent background?
Yes. Export PNG with transparent background; modern browsers show it fine on dark tabs. For very old environments, also keep an opaque-background version.