Convert JPG to ICO

Converting JPG to ICO wraps your picture in the icon container that browsers and Windows still ask for, at up to 256 pixels square and with 16, 32 and 48 written into one file by default. Start from a square image and drop it above — it converts on your own machine. A JPG has no transparency, so the icon will have a solid background.

  • Where it runs In your browser. The file is never uploaded.
  • Lossy Some detail is traded for size. ICO cannot hold everything a JPG can.
  • File size limit Up to 100 MB per file, free, without an account.
  • Worth knowing Scaled down to icon sizes; detail beyond 256 pixels is discarded.

Up to 100 files at once. Mixed formats are fine.

What JPG to ICO actually does

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as JPG.

JPG9 KB

A generated landscape with a low sun and three ridges, used to show what JPEG does to continuous tone. Shown as ICO.

ICO139 KB15.9× larger

A photographic scene — smooth gradients, soft edges, grain. This is the case ICO is designed for or against, and the figures show which. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as JPG.

JPG6 KB

A generated badge: a circular gradient on a transparent background with a white bar across it, used to show what each format does with transparency and with hundreds of shades. Shown as ICO.

ICO7 KB22% larger

A transparent background and a gradient across the shape. ICO either keeps both, keeps one, or fills the transparency with a solid colour — which is the difference that catches people out. Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.
A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as JPG.

JPG16 KB

A generated application window with a sidebar, a table and a bar chart, used to show what JPEG does to flat colour and hard edges. Shown as ICO.

ICO3 KB6.2× smaller

Flat colour and hard edges, as in an interface, a chart or a logo. Very different behaviour from the photograph above, and the reason the answer is "it depends what is in the file". Both images are drawn in code and encoded by the same converter that runs on this page, so the sizes are this site's own output.

The background will not be transparent

This is the thing people find out afterwards, so it belongs first. JPG has no alpha channel — the format simply cannot record that a pixel is see-through. Whatever sits behind your logo in the JPG, usually white, is part of the picture, and it comes through into the icon as a solid rectangle.

On a white browser tab that often looks fine. In a dark-themed taskbar, on a coloured toolbar, or next to a bookmark bar in dark mode, it looks like a white box with something in it. If the mark needs to float, the source has to carry transparency: start from a PNG, or go back and ask for the logo as PNG or SVG.

Photographs make poor icons, at any resolution

A favicon is drawn at about 16 pixels. A taskbar icon is 32. That is a canvas smaller than the full stop at the end of this sentence, and a photograph carries thousands of times more detail than can survive the journey down to it.

What survives scaling is silhouette and contrast: one bold shape, two or three colours, clear edges. What does not is faces, text, textures, thin lines and anything with a busy background. If you are converting a photograph because it is the only file you have, expect a coloured smudge and consider cropping hard to the single most recognisable element first.

Crop it square before you convert it

Icons are square and photographs generally are not. The conversion does not crop for you — cropping means deciding what to throw away, and a tool guessing at that gets it wrong on exactly the images where it matters. What it does instead is centre the picture on a square and leave the rest empty, so a 3:2 frame arrives with a band of nothing above and below it and the picture itself drawn two thirds the height of the icon.

So do it first, in any image editor or even a phone gallery. Crop tightly around the subject rather than keeping the whole frame: an icon has no room for context, and a picture that reads well at full size usually needs to be cropped twice as tight to read at all when it is sixteen pixels across.

The 256-pixel ceiling

Nothing an ICO holds is larger than 256 pixels on an edge, so a bigger JPG is scaled down to fit before anything else happens. The sizes written into the file are then taken from that: the default set is 48, 32 and 16, and "All common sizes" adds 64, 128 and 256.

Ask for a size the JPG cannot support and it is enlarged rather than refused, so a 64-pixel picture converted with "256 px only" comes out blurrier rather than better. The default set is safe from that for almost any source, and it covers the two contexts most people are here for — a browser tab and a Windows shortcut. What it is not is a substitute for hand-drawing the small sizes, which is what an application icon in a crowded taskbar really wants; the entries here are your picture reduced, not redrawn.

No second round of compression

The picture is decoded from the JPG and stored inside the ICO as PNG data, which is lossless. So the conversion itself does not add compression artefacts on top of the ones the JPG already has.

What it cannot do is remove them. If the source is a heavily compressed JPG pulled off a website, the blocky edges and the haze around dark lines are in the pixels, and scaling to 256 keeps them in proportion. Starting from the highest-quality copy you have is worth more here than any setting.

Where the file goes on a website

Put it at the root of the site as favicon.ico. Browsers have requested that exact path for nearly thirty years and still do, whatever your HTML declares, so having it there also stops a steady trickle of 404s in the server log.

If the icon does not change when you reload, that is caching rather than a failed conversion — favicons are cached unusually aggressively. A hard reload, a private window, or appending a query string to the link in your HTML will show you the new one.

Using it as a Windows shortcut icon

ICO is the format Windows uses for executables, folders and shortcuts, and the shell picks whichever entry matches the view it is drawing — so "All common sizes" is the one to choose here, since Explorer draws icons anywhere from 16 pixels in a details list to 256 on a large-tile view. Right-click the shortcut, choose Properties, then Change Icon, and point it at the file.

Keep the ICO somewhere permanent before you do this. Windows stores the path rather than a copy, so an icon set from the Downloads folder disappears the moment the folder is cleared out.

Converting several images at once

Drop up to 100 JPG files in one go. Each converts separately on your own machine, keeps its filename with the extension swapped, and the batch comes back as a single ZIP — useful when a set of internal tools or shortcuts all need their own icon.

Nothing is uploaded at any point. The conversion runs in the browser tab on your own processor, so there is no queue behind other people and no daily allowance to exhaust.

How to make an ICO file from a JPG

  1. Crop the JPG square first — the conversion will not crop for you.
  2. Drop it onto this page; it converts on your own machine.
  3. Save the result as favicon.ico at the root of your site.

JPG against ICO: a photograph in an icon container

JPG compared with ICO
JPGICO
Full nameJPEG ImageWindows Icon
File extension.jpg, .jpeg, .jpe.ico
Media typeimage/jpegimage/x-icon
CompressionLossy — file size is bought with qualityLossless — nothing is discarded
First published19921985
Published byJoint Photographic Experts GroupMicrosoft
SpecificationITU-T T.81
LicensingOpen standardPublished, not standardised
Standing todayCurrentNiche
Bit depth88
Colour it can describeRGB, greyscale, YCbCrRGB, indexed palette
Largest image65,535 px per side256 px per side
Opens in a browserEvery browserEvery browser
Considered insteadWebP, AVIF, HEICPNG, SVG

What the target format adds

ICO supports transparency and JPG does not. That is room the result has and the original never used — converting does not create a transparent background, it only makes one possible afterwards.

Opening the result

GIMP reads both JPG and ICO, so there is a way to check the result against the original without a second tool.

File size and quality

The result is larger than the original and no better. JPG has already discarded detail, and ICO stores what is left without discarding more — it prevents further loss rather than undoing the first one.

What each format is for

JPG is Joint Photographic Experts Group's format, published in 1992. It records 8 bits per channel.

ICO comes from Microsoft and dates from 1985. GIMP and IcoFX all read it.

JPG to ICO: backgrounds, sizes and sharpness

Are my JPG files uploaded anywhere?

No. This conversion runs entirely inside your browser, so the file never leaves your device. You can confirm it yourself: open the network tab of your browser's developer tools and convert something. You will see the page load, plus the analytics and advertising the site is paid for with — and nothing carrying your file. The engine behind this particular pair is jSquash, WebAssembly builds of the reference image codecs; your browser fetches it once and caches it.

Can the icon have a transparent background?

Not from a JPG. The format has no transparency at all — every pixel is opaque, including the white behind your logo — so the icon comes out as a solid rectangle. If you need transparent corners, you need a source with an alpha channel: convert from a PNG, or ask for the logo as PNG or SVG.

What size should the JPG be?

Square, and at least 256 pixels on each side. Anything larger is scaled down to 256, which is the biggest image an ICO can hold. A rectangular photo is not cropped for you: it is centred on a square with empty space above and below, so the picture ends up smaller than the icon it sits in — crop it square first.

Why does my favicon look like a smudge?

Because a favicon is displayed at roughly 16 pixels, and a photograph has far more detail than sixteen pixels can hold. The scaling is working correctly; the source is the problem. Icons want one bold shape and two or three colours, not a picture.

Does converting a JPG to an ICO lose quality?

The scaling loses detail, unavoidably, because 256 pixels cannot hold what a 4000-pixel photo held. The encoding itself does not: the image is stored inside the ICO as PNG data, so no second round of JPG compression is applied on top of the first.

Does the ICO contain several sizes?

Yes. The "Icon sizes" control decides the set and the default writes 16, 32 and 48 pixels into one file, each as its own image. That is worth more from a photograph than from anything else, because it is the small sizes a photograph fails at and this way they are reduced once here rather than on the fly by whatever draws them.

Is the image uploaded anywhere?

No. The conversion runs inside your own browser on your own machine, so the JPG never leaves the device. There is no account, no queue and no daily allowance.

More about these formats

Where these figures come from

The claims this page makes about JPG and ICO are checkable, and these are the documents that settle them.