Skip to main content

Favicon generator

Create every favicon size for your website. Upload an image or make a favicon from text.
Upload an image
Upload a square image (recommended: at least 512x512 px)

The color fills the maskable icon and appears in the code as theme-color and tile color. Your image stays unchanged.

HTML code
Paste this code into the <head> section of your website
<!-- 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

  1. 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.
  2. For a text favicon, enter one or two characters, choose a background and a text color, and click "Create preview".
  3. Click "Generate favicons". The generator renders 14 PNG files directly in your browser.
  4. 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

GroupFilesUsed for
Browserfavicon-16x16.png, favicon-32x32.png, favicon-48x48.pngBrowser tab and Windows taskbar
Appleapple-touch-icon.png (180 px) plus variants at 76, 120, 152, 167, and 180 pxHome screen on iPhone and iPad
Androidandroid-chrome-192x192.png, android-chrome-512x512.pngAndroid and the home screen of web apps
PWAmaskable-icon-512x512.pngIcon with a safe margin that Android may crop
Windowsmstile-150x150.png, mstile-310x310.pngTiles

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

Everything about favicons and how to create them
What is a favicon?
A favicon (favorite icon) is the small symbol shown in browser tabs, bookmarks, and on the home screen of mobile devices. It helps visitors recognize your website quickly.
Which sizes do I need for a favicon?
For good compatibility you need several sizes: 16x16 px and 32x32 px for browser tabs, 180x180 px for Apple touch icons, and 192x192 px and 512x512 px for Android and PWAs. This generator creates 14 PNG files in all the common sizes.
Which file format is best for favicons?
PNG is the best-supported format for favicons. SVG scales without loss but isn't supported everywhere. Only very old browsers need ICO. Our generator creates PNG files only.
Why doesn't the generator create a favicon.ico?
Current browsers use the PNG files when the HTML code is in the head. The generator doesn't create an .ico file. Some programs and crawlers still request /favicon.ico in the root directory when there is no link tag. If you need one, convert favicon-48x48.png, for example, to an .ico file with another program.
How do I add a favicon to my website?
Paste the generated link tags into the <head> section of your HTML pages. The two most important ones are <link rel='icon' href='/favicon-32x32.png'> for browsers and <link rel='apple-touch-icon' href='/apple-touch-icon.png'> for iOS devices.
Can I use a text logo as a favicon?
Yes, but favicons are very small (16x16 to 32x32 pixels), so text is hard to read at that size. A simple symbol, a single letter, or a heavily simplified logo works better.
Is the favicon generator free, and is my image uploaded anywhere?
Yes, it is free and needs no sign-up. The icons are generated in your browser, and your image is not sent to a server. You can download and use the generated files without restrictions.

Related tools

All tools

Changelog

Latest updates and improvements to the Favicon generator
v1.3.0

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
v1.2.0

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
v1.1.0

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
v1.0.0

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