Free Favicon Generator
Use this free favicon generator to create favicon icons from any image — all sizes and HTML code included.
Drop your image here
or click to browse — up to 5 MB
Related Tools
The small icon in a browser tab is one of the first things users notice — and one of the last things most website owners set up properly. This free favicon generator takes any image you upload and produces favicon files in every size browsers and devices expect, along with the HTML code to add them to your site.
No design software needed. No account. Works for any platform.
How to Create a Favicon Online
- Upload your image — drag and drop or click to browse. PNG, JPG, and SVG are all supported. Use a square image for best results, ideally 512×512 pixels or larger.
- Preview — the browser tab preview shows exactly how your favicon will look at actual size before you download anything.
- Download the ZIP — the package includes all size variants and an HTML snippet ready to paste into your site’s
<head>. - Add to your website — upload the files to your site’s root directory and copy the HTML code into your page template.
What Favicon Sizes Do You Actually Need?
Browsers and devices request favicons at different sizes depending on where they’re displayed. Here’s what the generated package covers:
16×16px — The standard browser tab size. The smallest and most commonly requested size. Appears in the address bar and browser tabs on desktop.
32×32px — Used by some browsers for the taskbar and shortcut icons. Also the standard for most Windows shortcut icons.
48×48px — Windows desktop shortcut and some taskbar contexts.
180×180px — Apple Touch Icon. Used when a user saves your site to their iPhone or iPad home screen. Without this size, iOS uses a screenshot of your page instead of a clean icon.
192×192px — Android Chrome home screen icon and Progressive Web App (PWA) manifest icon.
512×512px — High-resolution PWA splash screen icon. Also what WordPress uses as the base image when you set a Site Icon.
The HTML code the tool generates includes the correct <link> tags for each of these, including apple-touch-icon declarations for iOS devices.
What Image Should You Use?
The quality of your favicon depends heavily on the source image. A few practical guidelines:
Use a square image — Favicons are always displayed in square containers. A non-square image gets cropped or letterboxed, which rarely looks good at small sizes.
Simple designs work best — At 16×16 pixels, there are only 256 pixels to work with. Intricate logos, detailed illustrations, and fine text become unreadable. A single letter, a simple icon, or a bold abstract shape reads clearly at small sizes.
Start from the highest resolution you have — The tool scales down, so starting with a 512×512 or larger image preserves more detail in the smaller output sizes than starting with a small image and scaling up.
Transparent backgrounds usually work well — On light-colored browser tabs, icons with transparent backgrounds look clean and integrated. Test against both light and dark tab colors if you’re using a dark icon.
Test your favicon in dark mode — A growing share of users browse in dark mode. A dark icon on a transparent background becomes invisible against a dark tab bar. Add a light outline or background if your icon has dark elements.
How to Add a Favicon to WordPress
WordPress has had built-in favicon support since version 4.3. You don’t need a plugin for basic setup.
Using the Customizer (Classic Themes): Go to Appearance → Customize → Site Identity → Site Icon. Upload a square image at least 512×512 pixels. WordPress automatically generates all the smaller sizes it needs. Click Publish.
Using Settings (Block Themes): In newer block-based WordPress themes, the Customizer may not be available. Instead, go to Settings → General and scroll down to Site Icon.
Manual HTML method: If you need precise control over which files browsers load, upload the favicon files to your site’s root directory via FTP or your hosting file manager, then add the HTML code from this tool into your theme’s header.php or equivalent template file, inside the <head> section.
If your favicon doesn’t appear immediately after uploading, clear your browser cache — browsers cache favicons aggressively.
How to Add a Favicon to HTML Sites
For plain HTML websites, place the downloaded favicon files in your root directory (the same folder as your index.html) and add this inside the <head> of every page:
html
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
The HTML code from this tool already includes these tags pre-filled with the correct filenames. Copy and paste directly.
ICO vs PNG — Which Format to Use?
ICO (.ico) is the original favicon format and the most broadly compatible. It’s a container format that can bundle multiple sizes (16×16, 32×32, 48×48) into a single file. All browsers support it, including older Internet Explorer versions. Placing a favicon.ico file in your root directory is the minimum requirement — most browsers look for it automatically even without an explicit <link> tag.
PNG is a standard image format that all modern browsers support as favicons. You need separate files for each size, but PNG files are more flexible and often sharper than ICO at the same dimensions. Most modern favicon setups use PNG for specific sizes alongside an ICO fallback.
For most websites, the practical answer is: include both. The ZIP file from this tool does exactly that.
