Home Tools Blog About

PNG, JPG and WebP to ICO Converter

In short

Turns PNG, JPG, WebP, GIF, BMP or SVG images into ICO files that hold several sizes at once, from 16 to 256 px. Pick the favicon or Windows preset, preview every size and download one icon or a ZIP.

  • Runs in your browser
  • Nothing uploaded
  • Free, no sign-up
Choose images or drop them here. You can also paste one (Ctrl+V).
PNG, JPG, WebP, GIF, BMP, SVG or AVIF, up to 30 MB each and 20 files at once. A square image of 256 × 256 px or larger works best.
Sizes inside the ICO

Need a full favicon set with apple-touch-icon and a web manifest? Use the Favicon Generator. To test icons you already have, use the Favicon Checker. To turn an ICO back into a picture, use ICO to PNG.

Your images are converted in this browser tab; they are not uploaded.
🛡
Private by designYour files and text stay in this tab
⚡
Runs in your browserNo waiting for a server
💧
No watermarksClean output you can use
🆓
FreeNo account needed

How to Use PNG, JPG and WebP to ICO Converter

Convert PNG to ICO · free online tool · All Tools Verse
The PNG, JPG and WebP to ICO Converter tool, as it looks in your browser.
  1. Pick a preset. Favicon makes 16, 32 and 48 px; Windows icon adds 24, 64, 128 and 256 px. Tick the sizes yourself for Custom.
  2. Add your images. Choose files, drop them on the box or paste one with Ctrl+V. PNG, JPG, WebP, GIF, BMP, SVG and AVIF work.
  3. Adjust if needed. Choose how to handle non-square images, keep transparency or fill a colour, add padding, or switch to BMP entries for old Windows tools.
  4. Download. Check the previews and the entry table, then click Download for each .ico, or Download all (.zip) for a batch.

Example: a 512 px logo to favicon.ico

The test file is a 512 × 512 PNG logo, 3,450 bytes, with a red ring and a white square on a transparent background. With the Favicon preset the tool returns logo-512.ico at 2,858 bytes. Inside are three images: 16 × 16 (525 bytes), 32 × 32 (882 bytes) and 48 × 48 (1,397 bytes), all stored as PNG. The corners stay transparent, so the icon sits cleanly on light and dark browser tabs, and the preview shows both.

Switching to the Windows icon preset adds 24, 64, 128 and 256 px. The file grows to 12,154 bytes. Choosing “BMP below 256” for older Windows tools makes the same icon 106,584 bytes, because BMP images are not compressed.

You can drop a JPG, WebP, GIF, BMP or SVG in the same way. Add up to 20 files at once and each one gets its own ICO, plus a Download all (.zip) button.

What is inside the ICO, size by size

These are the real entry sizes from the example above. A PNG entry is compressed; a BMP entry stores 4 bytes per pixel plus a 1-bit mask, so it grows with the square of the size.

Size PNG entry BMP entry Typical use
16 × 16 525 bytes 1,128 bytes Browser tab favicon, small list icons
24 × 24 750 bytes 2,440 bytes Small icons when the display is scaled up
32 × 32 882 bytes 4,264 bytes Taskbar and shortcuts; a sharper tab icon on high-density screens
48 × 48 1,397 bytes 9,640 bytes Medium icons in File Explorer and on the desktop
64 × 64 1,467 bytes 16,936 bytes Desktop icons on high-density screens
128 × 128 2,581 bytes 67,624 bytes Large icons
256 × 256 4,434 bytes 4,434 (kept as PNG) bytes Extra large icons in File Explorer

The uses listed are typical. Which image Windows or a browser picks depends on the display scaling and the place the icon is shown, which is why one ICO carries several sizes.

How it works

Your image is decoded by the browser and drawn onto a square canvas once for every size you tick. Non-square images are fitted with empty space at the sides, cropped to the centre, or stretched, as you choose. Padding shrinks the artwork inside the square. Large images are halved step by step before the final draw, which keeps 16 and 32 px icons sharper than a single big downscale.

Each size is saved as a PNG. If you pick the BMP option, sizes below 256 are saved as a 32-bit bitmap with an alpha channel and an AND mask instead, which older icon editors expect. The ICO file itself is simple: a 6-byte header, one 16-byte directory entry per image (width, height, colour depth, length and position), then the images. A width or height of 256 is written as 0, because the field is a single byte. After building the file, the tool reads it back and lists every entry it found.

Limits

  • ICO images stop at 256 × 256 px. Bigger sources are scaled down; smaller ones are scaled up, and the tool warns that they may look soft.
  • Only the first frame of an animated GIF is used.
  • JPG has no transparency, so a JPG icon keeps its solid background. Use Fill with a colour to choose that colour.
  • It makes ICO files only. For apple-touch-icon, Android icons and a web manifest, use the Favicon Generator; macOS .icns files are not supported.
  • Very large images, or many at once, depend on your device’s memory.

Frequently asked questions

What sizes should a favicon.ico contain?

16, 32 and 48 px is the common set, and it is what the Favicon preset makes. Browsers use 16 px in tabs and 32 px on high-density screens. Add a PNG <link rel="icon"> or an apple-touch-icon if you also want larger icons for bookmarks and phone home screens.

Can I convert JPG or WebP to ICO here?

Yes. The converter takes PNG, JPG, WebP, GIF, BMP, SVG and AVIF. JPG files have no transparency, so pick a fill colour if the background should be something other than the photo itself.

Can an ICO file be larger than 256 × 256?

No. The size fields in the ICO directory are one byte each, so 256 is the largest size the format can describe. For bigger images use PNG or SVG.

Why is my ICO file bigger than the PNG?

Every size you tick is stored as a separate image. Three PNG entries are usually close to the original size; seven sizes, or the BMP option, make a bigger file. If size matters, keep the Favicon preset and PNG entries.

Do I need favicon.ico if I already have a PNG favicon?

Most current browsers read a PNG icon from a <link rel="icon"> tag. Many sites still keep a favicon.ico at the site root, because some tools and older browsers request /favicon.ico directly.

Keep going

Related Tools

All Image tools →
Share

Embed this tool

Add this free tool to your website. Copy and paste the code: