Skip to content

Menu

Favicon HTML Generator

Generate HTML link tags for favicons across all platforms and sizes.

Runs entirely in your browserSEO & WebFree, no sign-up
Loading tool

01What is Favicon HTML Generator?

Every site needs a handful of icon tags in its <head>, and almost nobody remembers the exact attributes. Favicon HTML Generator writes them for you. You type the path or URL of your main icon, tick the groups you want, pick a theme color, and copy the result. Here is how it works under the hood. The tool takes the folder of the file you entered and puts every companion file in that same folder, using the names most favicon exporters produce: favicon.ico, favicon-32x32.png, favicon-16x16.png, apple-touch-icon.png and site.webmanifest. A path with no slash at all is treated as living in the site root. For a full http or https URL, it keeps the origin and folder, so a CDN path stays a CDN path. The file you typed is always linked too, based on its extension. An .svg gets type="image/svg+xml", a .png gets type="image/png", and an .ico becomes the plain icon link. The tool is careful not to duplicate lines. If you enter favicon-32x32.png while the PNG group is on, it won't link that file twice. The tags follow the HTML Living Standard's rel="icon" and rel="manifest" link types. The apple-touch-icon line uses sizes="180x180", which is one of the sizes in Apple's Safari Web Content Guide. The theme-color meta tag is the one described in the WHATWG spec for colouring browser UI. An optional MS Tile group, off by default, adds the two msapplication meta tags that older Windows pinned sites read, and it reuses your theme color for the tile. A quick example. Enter /favicon.svg with the defaults and you get seven lines: the ICO link, two PNG links, an SVG link, the Apple touch icon, the manifest link and theme-color #ffffff. Untick everything and clear the color, and you get a single SVG link. Paths and colors are HTML-escaped, so a stray quote in a file name turns into &quot; instead of breaking the attribute. Now the honest limits. This is a text generator. It doesn't look at your image, resize it, check that the files exist, or write the manifest's JSON. The PNG sizes are fixed at 16 and 32, and the tile image name is fixed too. You still export the icons yourself with the names shown. Your path and color never leave the page, since the HTML is built by a small function in your browser tab.

Front-end developers wiring up the <head> of a new site or template who want correct favicon, Apple touch icon and manifest tags without looking up each attribute. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Favicon HTML Generator

  1. Type the path or URL of your main icon into the path field, such as /favicon.svg or https://cdn.example.com/icons/favicon.png.
  2. Tick the groups you want: ICO (favicon.ico), PNG (16x16, 32x32), Apple Touch Icon (180x180), Web Manifest link and, only if you need it, MS Tile (legacy Windows).
  3. Pick a theme color with the color picker or type a hex value in the Theme color box.
  4. Click Copy HTML and paste the block into your page's <head>.
  5. Create each referenced file at the exact path and name shown in the output.

03Worked examples

Input: Favicon path: /favicon.ico (default options: ICO, PNG, Apple, Manifest on; theme color #ffffff)
Result: <link rel="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" /> <link rel="manifest" href="/site.webmanifest" /> <meta name="theme-color" content="#ffffff" />
The companion files get conventional names (favicon-32x32.png, apple-touch-icon.png, site.webmanifest) in the same folder as the path you enter.
Input: Favicon path: /favicon.svg (default options)
Result: <link rel="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="icon" type="image/svg+xml" href="/favicon.svg" /> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> <link rel="manifest" href="/site.webmanifest" /> <meta name="theme-color" content="#ffffff" />
An SVG path gets its own type="image/svg+xml" link, and the ICO and PNG links stay as fallbacks.
Input: Favicon path: https://cdn.example.com/icons/favicon.png (default options)
Result: <link rel="icon" href="https://cdn.example.com/icons/favicon.ico" /> <link rel="icon" type="image/png" sizes="32x32" href="https://cdn.example.com/icons/favicon-32x32.png" /> … <link rel="icon" type="image/png" href="https://cdn.example.com/icons/favicon.png" /> <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.example.com/icons/apple-touch-icon.png" /> <link rel="manifest" href="https://cdn.example.com/icons/site.webmanifest" /> <meta name="theme-color" content="#ffffff" />
With a full URL, every companion link uses the same origin and folder (/icons/). The 16x16 line is left out here.
Input: Favicon path: /static/favicon-32x32.png (default options)
Result: <link rel="icon" href="/static/favicon.ico" /> <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png" /> <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png" /> <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png" /> <link rel="manifest" href="/static/site.webmanifest" /> <meta name="theme-color" content="#ffffff" />
Because the PNG option already links favicon-32x32.png, the tool doesn't add a second link to the file you entered.
Input: Favicon path: /favicon.ico; only ICO and MS Tile on; theme color #0f172a
Result: <link rel="icon" href="/favicon.ico" /> <meta name="msapplication-TileImage" content="/mstile-144x144.png" /> <meta name="msapplication-TileColor" content="#0f172a" /> <meta name="theme-color" content="#0f172a" />
The theme color is used for both the tile color and the theme-color meta tag.
Input: Favicon path: /favicon.svg; every group unticked; theme color cleared
Result: <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
The entered file is always linked, so with every option off you still get the one SVG line.

04Common use cases

  • Adding favicon tags to a new site's <head> after exporting icons from a design tool
  • Linking an SVG favicon with PNG and ICO fallbacks
  • Pointing favicon links at a CDN folder instead of the site root
  • Adding an Apple touch icon so the site has a proper icon when saved to an iPhone or iPad home screen
  • Cleaning up an old <head> full of 57, 72 and 114 pixel Apple tags and replacing it with one short block
  • Generating the tag block for a static site template where the icons live in /static/ or /assets/

05Tips

  • For Chromium to treat a site as installable, the web app manifest needs at least a 192 × 192 and a 512 × 512 icon; those go in the manifest's icons array, not in link tags.
  • If a page has no apple-touch-icon link, iOS looks in the site root for files named apple-touch-icon, so keeping apple-touch-icon.png there is a sensible fallback.
  • A manifest on another origin, such as a CDN, must be served with CORS headers, so it's usually simpler to host site.webmanifest on your own domain.
  • Keep the manifest's theme_color the same as the theme-color meta tag.
  • Clear the theme color box if you don't want a theme-color tag at all. An empty value drops that line from the output.

06Related concepts

Favicon, Web app manifest, Apple touch icon, theme-color.

Frequently Asked Questions

What is Favicon HTML Generator?

Favicon HTML Generator is a free, browser-based developer tool on AIDToolStack. Generate HTML link tags for favicons across all platforms and sizes. It requires no installation or sign-up and works entirely in your browser.

Is Favicon HTML Generator free to use?

Yes. No sign-up, no fees and no usage cap.

Does Favicon HTML Generator store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe