Skip to main content

How to Create a Favicon

Make a favicon from your logo in minutes: prepare the source image, set padding and background, preview light and dark tabs, and install the pack on your site.

CompressMyPic Editorial Team · Published Nov 17, 2026 · 10 min read

How to Create a Favicon

Creating a favicon sounds technical, but it takes only a few minutes with the right tool. You upload a logo, adjust a handful of settings, download a pack of files, and add a short snippet to your website. This guide walks through each step in order.

You need just two things before you start: a logo file and access to your website files. A square PNG or SVG logo works best, and the largest version you have gives the sharpest result. If you only have a JPG, that works too.

The favicon generator does the whole job in your browser. Your logo never leaves your device, there is no account to create, and the finished pack downloads as a ZIP. Follow the steps below and your site will have a complete icon set.

Open your logo file and check that it is square, or close to it. A square canvas uses the tiny favicon space best, while a wide rectangular logo leaves empty bands above and below the mark. If your logo is wide, crop a square detail or use a single-letter version.

Check the resolution. A source of 512 by 512 pixels or larger shrinks cleanly to every favicon size. A 64 pixel source stretched to 512 pixels for Android looks soft, so always use the biggest file you have. An SVG file is ideal because it has no fixed resolution at all.

Simplify the artwork if it has small text or fine detail. A tagline under a wordmark will not survive at 16 pixels, so remove it for the favicon version. Keep the boldest element: the symbol, the initial, or the strongest shape.

If your logo has a transparent background, keep it that way for now. Transparency gives you the most options in the generator, because you can add a background fill later if the previews show you need one. A JPG has no transparency, so a PNG or SVG is the better starting point.

Step 2: Upload to the Generator

Open the favicon generator and drop your logo onto the upload zone, or click to choose the file from your device. You can also paste a copied image straight from your clipboard with Ctrl and V, which is handy when the logo is open in another app.

The tool accepts PNG, SVG, JPG, WebP, and HEIC files up to 20 MB. Most logos are far smaller than that limit, so size is rarely a problem. If your file is a phone photo in HEIC format, it uploads and converts without any extra step.

As soon as the file loads, the generator builds a preview of the icon pack. You will see the mark rendered at several sizes, so you can judge how it reads small and large. If the logo looks wrong at 16 pixels, fix the source image now rather than later.

If you uploaded a rectangular logo, the tool fits it inside the square canvas without stretching. Check whether the result looks too small. If it does, go back and prepare a squarer version of the mark before continuing.

Step 3: Set Padding and Shape

Padding is the space between your logo and the edge of the icon. Start with a small amount, enough that the mark does not touch the canvas edge. A logo pressed against the border looks cramped, especially at tab size where every pixel counts.

Increase the padding if the logo has fine edges or thin strokes. Thin details need breathing room or they merge with the edge at small sizes. Decrease it if the mark is bold and simple, since a bold shape can fill more of the canvas safely.

Corner radius rounds the corners of the icon background. A slight rounding softens the look without changing the character of the mark. A full rounding turns the icon into a circle, which suits avatars and app-style icons but can crop a square logo awkwardly.

Watch the previews as you adjust these controls. The changes apply to every size in the pack at once, so one adjustment updates the tab icon, the Apple icon, and the Android icons together. Stop when the smallest preview still reads clearly.

Step 4: Choose a Background Fill

Background fill is the color behind a transparent logo. Leaving it transparent keeps the icon light and lets the browser tab color show through. That works well for dark, bold logos on light tabs.

Add a solid fill when the logo is pale, thin, or light-colored. A white or brand-colored square behind the mark gives it contrast on any tab. Pick a fill that matches your brand, since this color becomes part of the icon identity.

Apple Touch Icons ignore transparency and fill empty areas with black, so a solid fill is the safe choice for the home screen icon. If your tab favicon stays transparent but the Apple icon needs a fill, the generator handles both from the same settings.

Check the fill against both the light and dark tab previews. A fill that looks great on a light tab can look heavy on a dark tab, and the reverse. The right fill keeps the mark visible in both themes without overpowering it.

Step 5: Check the Previews

The generator shows your icon on light and dark browser tabs. Look at the dark preview first if your logo is dark, and at the light preview first if your logo is light. The preview where your logo color matches the tab color is where problems appear.

Zoom your attention to the smallest preview, the 16 pixel tab icon. That is the size visitors see most often, and it is where detail dies. If you can still recognize the mark at that size, the favicon works. If it becomes a blob, simplify the source or increase the padding.

Also glance at the largest preview, the 512 pixel Android icon. A mark that reads well small can look empty or lost at large size, especially if it is a single thin letter. The large preview shows whether the design holds up on a home screen.

Do not skip this step. The preview catches the two most common failures: an icon that vanishes in dark mode and a mark that turns to mush at tab size. Fixing them now takes seconds, while fixing them after upload takes a full round of cache clearing.

Step 6: Download the Pack

When the previews look right, download the ZIP. Inside you will find favicon.ico, the Apple Touch Icon, the Android icons at 192 and 512 pixels, the site.webmanifest file, and the HTML snippet. Everything is named and ready to upload.

You can also download single files if you only need one of them. Grabbing just favicon.ico is enough for a quick fix on an old site, while the full ZIP is the right choice for a new site that needs the complete set.

Unzip the pack on your computer and look at the files before uploading. Check that the icon sizes are present and that the manifest file is included. A quick glance now prevents a missing-file surprise after you have edited your site.

Keep a copy of the ZIP somewhere safe. If you rebrand or lose the site files later, the ZIP is the fastest way to restore the icon set. It is also the source for regenerating the pack with a tweak instead of starting from scratch.

Step 7: Upload the Files

Upload the icon files to the root folder of your website, the same folder that holds your homepage. Browsers look for favicon.ico at the root by default, so placing it there covers pages that do not include the snippet.

Use your hosting file manager, FTP client, or deployment tool to copy the files. The files are small, so the upload takes seconds. Confirm that each file landed in the root and not inside a subfolder by mistake.

If your site builder does not expose the root folder, look for a favicon or site icon setting in its dashboard. Many builders accept an uploaded icon and handle the file placement themselves. Upload the 512 pixel PNG in that case, since builders usually resize from a large source.

Do not rename the files unless you also update the HTML snippet to match. A renamed file with an old snippet path is the same as a missing file, and the browser will show the default icon instead.

Step 8: Add the HTML Snippet

Open the HTML snippet that came with the pack. It contains link tags for the favicon, the Apple Touch Icon, and the web manifest. Copy the whole block exactly as provided, without editing the paths.

Paste the snippet inside the head section of your pages, near the other meta and link tags. On a plain HTML site, add it to every page or to a shared header template. In React or Next.js, add it once to the layout or document file that every page shares.

Save the file and reload your site in the browser. The tab icon should change to your new favicon. If it does not, the old icon may be cached, which is normal and covered in the next step.

Check the snippet paths if the icon still does not appear after a cache clear. A path pointing to a subfolder that does not exist is the usual cause. The snippet assumes the files sit in the site root, so a different location needs updated paths.

Step 9: Clear the Cache and Test

Browsers cache favicons for a long time, so your own browser may keep showing the old icon after the upload. Do a hard refresh with Ctrl, Shift, and R, or open the favicon URL directly and refresh that page to force a fresh fetch.

Test the icon in a second browser or a private window, where the cache is empty. A private window shows what a new visitor sees, which is the honest test. If the icon appears there, the upload worked and only your main browser cache is stale.

Add the site to your phone home screen and check the Apple or Android icon. The home screen icon is the largest version, so it shows flaws the tab preview hides. If it looks right on the phone, the pack is complete.

Bookmark the page and look at the bookmark list. The favicon should appear beside the saved title. A missing icon in bookmarks usually means the snippet path is wrong or the file did not upload.

Step 10: When to Regenerate

Regenerate the pack whenever your logo changes, even slightly. A new wordmark, a new brand color, or a refined symbol all deserve a fresh pack, because a stale favicon quietly contradicts the new branding everywhere it appears.

Regenerate the whole pack rather than replacing a single file. Swapping only favicon.ico leaves the old mark on home screens and in the manifest, which creates a confusing mix of old and new icons across devices.

If you change your site name or theme color, update the manifest too. The generator writes a fresh manifest with each pack, so regenerating keeps the name, colors, and icons in sync without hand-editing JSON.

Keep the old ZIP until the new pack is verified live. If the new upload has a problem, the old files restore the previous icon in seconds. Once the new icon is confirmed in the tab, on the phone, and in bookmarks, the old pack can go.

Quick Reference: Favicon Creation Checklist

Prepare a square PNG or SVG logo of at least 512 pixels, with small text removed. Upload it to the generator, set padding and corner radius, choose a background fill, and check the light and dark previews at the smallest size.

Download the ZIP, upload the files to your site root, paste the snippet into the shared head template, and test in a private window and on your phone. Clear the cache if the old icon lingers.

For the full background on every file in the pack, read the Favicon Generator: Complete Guide, and for the size-by-size breakdown, read Favicon Sizes Explained: 16×16 to 512×512. Start now with the favicon generator.

Frequently asked questions

What logo file should I use to create a favicon?

A square PNG or SVG logo of at least 512 pixels works best. SVG is ideal because it scales cleanly to every size. A JPG also works, but it has no transparency, so a PNG or SVG gives you more control over the background.

Why does my new favicon not show up right away?

Browsers cache favicons aggressively, sometimes for weeks. Do a hard refresh, open the favicon URL directly and refresh it, or test in a private window. The new icon appears for other visitors when their cache expires, or immediately if you add a version number to the icon links.

Where do I put the favicon files on my website?

Upload them to the root folder of your website, the same folder as your homepage. Browsers look for favicon.ico at the root by default. Then paste the HTML snippet into the head section of your pages so the browser can find the Apple icon and the manifest too.

Do I need to add the HTML snippet to every page?

Add it once to the shared head template or layout file that every page uses. On a plain HTML site that means the header include; in React or Next.js it means the layout or document file. You do not need to paste it into each page by hand.

Can I create a favicon from a photo on my phone?

Yes, the generator accepts HEIC photos from iPhones as well as JPG and PNG files. A photo rarely makes a good favicon at 16 pixels, though, so crop to a bold detail or a single strong shape first for the best result.

What if my logo is not square?

The generator fits a rectangular logo inside the square canvas without stretching it, but the result can look small with empty space on the sides. For the best result, prepare a square version of your mark, or crop to the most recognizable detail before uploading.

Related guides

Create

How to Make a Photo Collage

Make a photo collage in minutes: pick your photos, choose a grid or strip layout, arrange them, set gaps and background, and export a share-ready image.

Nov 17, 2026 · 12 min readRead the guide →

Share this guide

← Back to the blog