100% free
Favicon generator
The color fills the maskable icon and appears in the code as theme-color and tile color. Your image stays unchanged.
<!-- Favicons for browsers -->
<link rel="icon" type="image/png" sizes="48x48" href="/favicon-48x48.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<!-- Apple touch icons -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="167x167" href="/apple-touch-icon-167x167.png">
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
<!-- Windows tiles -->
<meta name="msapplication-TileColor" content="#3b82f6">
<meta name="msapplication-TileImage" content="/mstile-150x150.png">
<meta name="msapplication-square310x310logo" content="/mstile-310x310.png">
<!-- Web manifest and theme -->
<link rel="manifest" href="/site.webmanifest">
<meta name="theme-color" content="#3b82f6">{
"name": "Your website",
"short_name": "Website",
"description": "Description of your website",
"start_url": "/",
"scope": "/",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/maskable-icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#3b82f6",
"background_color": "#ffffff",
"display": "standalone",
"orientation": "portrait-primary",
"lang": "en"
}Create a favicon in four steps
- Choose a square image (PNG, JPG, SVG, or WebP, 10 MB at most) and set the background color. Or switch to the "Create from text" tab.
- For a text favicon, enter one or two characters, choose a background and a text color, and click "Create preview".
- Click "Generate favicons". The generator renders 14 PNG files directly in your browser.
- Download the files one by one, or all at once with "Download all as ZIP". The ZIP contains all PNG files, the site.webmanifest file, and the HTML code as a text file.
An image that isn't square is not cropped. The generator fits it entirely into the square, and the remaining space stays empty. An SVG without width and height needs a viewBox, which the generator uses for the aspect ratio. Without either, generation fails with an error.
Which favicon files you get
| Group | Files | Used for |
|---|---|---|
| Browser | favicon-16x16.png, favicon-32x32.png, favicon-48x48.png | Browser tab and Windows taskbar |
| Apple | apple-touch-icon.png (180 px) plus variants at 76, 120, 152, 167, and 180 px | Home screen on iPhone and iPad |
| Android | android-chrome-192x192.png, android-chrome-512x512.png | Android and the home screen of web apps |
| PWA | maskable-icon-512x512.png | Icon with a safe margin that Android may crop |
| Windows | mstile-150x150.png, mstile-310x310.png | Tiles |
The generator doesn't create a favicon.ico or an SVG file. If you need an .ico file, make it with another program, for example from favicon-48x48.png.
Where the files and the HTML code go
All paths in the code start with a slash, e.g. /favicon-32x32.png. Put the downloaded files in the root directory of your website.
Paste the code from the "HTML code" box into the head section of your pages. It contains the link tags for browsers, Apple, and Windows (including the 310 x 310 tile), plus the manifest and the theme-color. The site.webmanifest file is in the ZIP, and you can also download it on its own. Put it in the same directory. It contains placeholders such as "Your website" for name and short_name. Change them before you publish the file.
In WordPress, the classic route is Appearance > Customize > Site Identity. There you upload a site icon of at least 512 x 512 pixels. The file android-chrome-512x512.png fits.
What to know first
- For a text favicon you can enter two characters at most. The generator turns them into capital letters.
- The background color is the same setting in both tabs. For an uploaded image it fills the maskable icon and appears in the code as theme-color and tile color. The default is a medium blue (#3b82f6), so change the color before generating if it doesn't match your brand.
- The maskable icon gets a ten percent margin on every side. Your artwork should still look good with a little less room.
- At 16 pixels, fine type is no longer readable. A simple symbol or a single letter works better than a whole logo.
Frequently asked questions
What is a favicon?
Which sizes do I need for a favicon?
Which file format is best for favicons?
Why doesn't the generator create a favicon.ico?
How do I add a favicon to my website?
Can I use a text logo as a favicon?
Is the favicon generator free, and is my image uploaded anywhere?
Related tools
Changelog
November 20, 2026
SVG without a size and complete HTML code
- • Fixed: SVG files without width and height but with a viewBox can now be used. The tool takes the aspect ratio from the viewBox. If the file has no viewBox either, the generation error message appears
- • Fixed: the HTML code now also references mstile-310x310.png (msapplication-square310x310logo). The file was created before but not included
- • The FAQ explains why the generator doesn't create a favicon.ico and describes the file format question in more detail
November 17, 2026
ZIP download and color choice for uploads
- • "Download all as ZIP" delivers a ZIP file with all favicons, the site.webmanifest file, and the HTML code (html-code.txt)
- • The background color can now also be set in the "Upload image" tab
- • New file picker with its own label instead of the browser default field
- • Added a guide with instructions and use cases below the tool
- • Added related tools at the end of the page
December 28, 2025
More Apple touch icons and web manifest
- • Added all Apple touch icon sizes (76, 120, 152, 167, and 180 px)
- • Added a complete web manifest with all options
- • Added a maskable icon for PWAs (with padding)
- • Added a download for the web manifest file
- • Added a Windows tile icon
- • Improved grouping of icons by platform
Show older versions
December 8, 2025
Launch
- • Image upload (PNG, JPG, SVG, WebP)
- • Generation of all common favicon sizes
- • Live preview in different contexts
- • HTML code to copy
- • Download of all sizes
- • Favicon creation from text