ICO converter
Turn a PNG, SVG or JPG into a Windows .ico with every size inside, or turn an .ico back into a PNG. The conversion runs in your browser, so your image is never uploaded.
Drop your PNG, SVG, JPG or ICO here
A square image of 1024 × 1024 pixels gives the best result.
Your icons are ready
Made from your image.
Your image never leaves your computer: the conversion runs in this page and nothing is uploaded.
How to convert an image to ICO
- Drop your image on the box above, or click "Choose an image".
- Check the previews at each size.
- Download the
.ico.
The converter draws your image at seven sizes and packs them into one .ico file. It reads PNG, SVG, JPG and WebP, and existing .ico files too. You also get a macOS .icns and a plain PNG made from the same image, in case you need them.
For the sharpest result, start with an SVG, or a square PNG of at least 256 × 256 pixels with a transparent background. An image that isn't square is centred with transparent padding, not stretched.
PNG to ICO
A PNG is the usual starting point. Use one that's at least 256 × 256, because that's the largest size in the file and anything smaller has to be scaled up. If you're also making a Mac icon from the same artwork, start at 1024 × 1024, which is what the PNG to ICNS converter wants.
Transparency is kept. The images inside the .ico are stored as 32-bit PNG, so soft edges and shadows survive.
SVG to ICO
An SVG is the best source there is, because it has no fixed size. The converter redraws the vector at each of the seven sizes, so the 16 pixel image is rendered at 16 pixels and not shrunk from a bigger bitmap.
Two things to check in the SVG itself:
- Give it a square
viewBox. A wide logo will be centred with empty space above and below - Fonts aren't embedded in most SVG files. If your icon has text, convert the text to outlines in your design tool first, or it will be drawn in whatever font your browser falls back to
ICO to PNG
Drop an .ico on the box and use "Download .png". You get the image as a PNG at its own size, with transparency intact.
This is useful when the .ico is the only copy of an icon you have. If the file only contains small sizes, the PNG will be small too. Nothing can add back detail that was never stored.
What's inside the ICO file
An .ico is a container: one file holding the same icon at several sizes. Windows picks the size it needs for each place, so it never has to scale one image to fit them all.
The file you download here has seven: 16, 24, 32, 48, 64, 128 and 256 pixels.
Microsoft's guidance on building a Windows app icon is that an app should have, at the bare minimum, 16, 24, 32, 48 and 256 pixel versions. This file has those five plus two in between. Which size shows up where depends on the Windows version and the display scaling, which is the reason to include them all.
Each image is stored as PNG, which Windows has supported inside .ico files since Vista. The file has a 6-byte header, a 16-byte directory entry for each image, then the image data.
Where the .ico goes in your app
Electron. With electron-builder, save it as icon.ico in your build folder, or point win.icon at it. It has to be at least 256 × 256, which this file is.
Tauri. List it under bundle.icon in tauri.conf.json. Tauri's own tauri icon command can also generate every platform's icons from one source image.
.NET (WPF, WinForms, WinUI). Set it in the project file:
<PropertyGroup>
<ApplicationIcon>app.ico</ApplicationIcon>
</PropertyGroup>
C and C++ (Win32). Add it to a resource script and compile that into the executable:
IDI_ICON1 ICON "app.ico"
Python with PyInstaller. Pass it when you build: pyinstaller --icon=app.ico yourapp.py. The guide to updating a Python desktop app covers what comes after the build.
Installers. Inno Setup takes it as SetupIconFile=app.ico, and NSIS as !define MUI_ICON "app.ico". Inno Setup's documentation recommends an icon with 16, 32, 48, 64 and 256 pixel images, all of which are in this file.
Using it as a favicon
A favicon can be the same format. Browsers request /favicon.ico from the root of a site automatically, so the file from this page works if you rename it and put it there. Only the small sizes are used for tabs and bookmarks, so check the 16 and 32 pixel previews: fine detail disappears at that size.
Many sites now also declare PNG or SVG icons with <link rel="icon"> tags. The .ico at the root is the fallback that works without any markup.
Tips for an icon that reads well
- Look at the 16 pixel preview first. If you can't tell what it is, simplify the shape. Most people see your icon small far more often than large
- Keep the background transparent. Windows draws icons on light and dark surfaces
- Use the same artwork for every platform. Make the
.icoand the.icnsfrom one source so the app looks the same on Windows and macOS
After the icon: getting your app to customers
The icon is one of the last things you do before a release. What comes next takes longer: signing the build so Windows doesn't warn people off it, an installer, a way to take payment, and a way to deliver updates.
- SignTool covers signing a Windows build
- Inno Setup and NSIS auto updates covers installers that update themselves
- How to sell software online covers payments and license keys
LicenseSeat handles the license keys and the update feed for apps you sell from your own site.
Common questions about converting to ICO
What size should an image be to convert to ICO?
At least 256 × 256 pixels and square, or an SVG. 256 is the largest size stored in the file, so every other size is scaled down from it and stays sharp.
What sizes are in the ICO file?
16, 24, 32, 48, 64, 128 and 256 pixels, each stored as a 32-bit PNG with transparency.
Is this ICO converter free?
Yes, with no sign-up and no limit on how many files you convert. It's a small tool that runs in your browser.
Is my image uploaded anywhere?
No. The conversion is done by JavaScript in this page, on your computer. Your image isn't sent to a server, so it's safe to use for an icon you haven't released yet.
Can I convert SVG to ICO?
Yes. Drop the SVG on the box. It's redrawn at each size, which gives a sharper result than converting from a PNG. Convert any text in the SVG to outlines first.
Can I convert ICO to PNG?
Yes. Drop the .ico on the box and click "Download .png". The PNG is as large as the image your browser reads from the file.
Can I convert JPG to ICO?
Yes, though a JPG has no transparency, so the icon will have a solid rectangular background. A PNG or SVG with a transparent background makes a better icon.
What's the difference between ICO and ICNS?
They do the same job on different systems. .ico is the Windows icon format and .icns is the macOS one. Both hold several sizes of one icon in a single file. This page gives you both from one image.
Does the ICO work on older versions of Windows?
The images inside are PNG-compressed, which Windows reads from Vista onwards. Every version of Windows that's still supported reads it.