How to make a favicon for your website
Last updated: 28 October 2026
A favicon is the small icon next to your site’s name in browser tabs, bookmarks, history and, on mobile, in Google’s search results. Without one, browsers show a generic globe and your site looks unfinished. Making a good one takes a few minutes.
Start with the right image
- Square, at least 256 × 256 pixels, ideally as a PNG or SVG with a transparent background.
- Simple: at 16 × 16 pixels only bold shapes survive. A logo mark or a single letter works much better than a full logo with text.
- High contrast, so it is visible on both light and dark browser themes.
If your logo is an SVG file, you can export a large PNG from it with SVG to PNG, and if your image is not square yet, Resize Image helps you get the dimensions right.
Which files you need
Different places look for different files. A sensible, modern set is:
- favicon.ico in the root of your site, containing 16, 32 and 48 pixel versions. Browsers and many other tools still request
/favicon.icoautomatically, even if your HTML points elsewhere. - An SVG icon (optional), which modern browsers can use at any size.
- apple-touch-icon.png, 180 × 180 pixels, used when someone adds your site to an iPhone or iPad home screen.
Google’s search results use your favicon too. Its guidelines ask for a square icon whose size is a multiple of 48 pixels, so including the 48 × 48 version in your ICO file, or providing a 96 or 192 pixel PNG, covers that.
Create the favicon.ico
- Open PNG to ICO and drop in your square PNG. JPG, WebP and SVG work too.
- Tick the sizes 16, 32 and 48. Add 256 only if you also want to use the file as a Windows icon.
- Download the file and upload it to the top folder of your site as
favicon.ico, so it is available atyoursite.com/favicon.ico.
Add the HTML
Put these lines inside the <head> of every page, adjusting the file names to yours:
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/icon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
Browsers that understand SVG pick the SVG, the rest fall back to the ICO. If you do not have an SVG version, leave out the second line.
Why is my old icon still showing?
Browsers cache favicons for a long time. Open the icon’s address directly, reload it, or check in a private window. Google updates the icon in search results the next time it crawls your home page, which can take days or weeks.
Tools used in this guide
PNG → ICO
Make multi-size .ico favicons and Windows icons from a PNG.SVG → PNG
Render SVG vector graphics as sharp PNG images at any size.IMAGE → RESIZED IMAGE
Make photos smaller by percentage or to an exact width or height.
More guides
- How to open HEIC photos on WindowsWhy iPhone photos arrive as .heic files, and three ways to open or convert them on a PC.
- How to make a PDF small enough to emailWhy scanned and photo-heavy PDFs get so big, and how to shrink them under email limits.
- What is a WebP file, and how do you open it?Why images saved from websites end up as .webp, and how to turn them into PNG or JPG.
- How to turn PDF pages into imagesSave PDF pages as JPG or PNG, and pick the right resolution for screen, slides or print.
- JPG vs PNG: which one should you use?Quality, file size and transparency compared, with simple rules for photos, screenshots and logos.
- What is an AVIF file, and how do you open it?Where .avif files come from, which apps open them, and how to turn them into JPG or PNG.
- What is a JFIF file, and why does Windows keep saving them?Why downloaded pictures end in .jfif, why they are really JPEGs, and how to get .jpg files.
- How to combine photos or scans into one PDFTurn phone photos of documents into one tidy PDF, with tips for sharp pages and small files.
- How to resize photos for email, upload forms and the webWhich pixel sizes to use for email, websites and profile pictures, and how to resize them.
- How to merge, split and reorder PDF pagesCombine PDFs, extract or remove pages, and change the page order without special software.
- How to open TIFF files and convert scans to JPGWhy scanners save .tif files, which apps open them, and how to turn them into JPG or PDF.
- How to reduce a photo to 100 KB or any size limitGet a photo or scan under an upload limit like 100 KB without making it unreadable.