JPEG to ICO Converter

Turn a JPEG into an ICO icon or favicon in your browser, at up to 256 x 256.

or drop files here

JP

JPEG Format

JPEG image

A lossy raster image format defined by the Joint Photographic Experts Group (ISO/IEC 10918-1), designed for photographs. .jpg and .jpeg are the same format.

  • Lossy compression
  • No alpha transparency
  • Supported everywhere
IC

ICO Format

Windows icon

A container format for icons on Microsoft Windows that can hold several bitmap images of different sizes and color depths in a single file. Browsers also use it for favicons.

  • Multiple sizes allowed in one file
  • Alpha transparency
  • PNG or bitmap entries
  • Registered as image/vnd.microsoft.icon

How to convert JPEG to ICO

Follow these steps to convert JPEG to ICO online.

    1

    Choose your JPEG file, or several at once.

    2

    Wait while the converter turns each file into ICO.

    3

    Download each new ICO file. Your original file isn't changed.

What to know before converting JPEG to ICO

  • The ICO holds one image, not a set of sizes.
  • A picture with a side over 256 px is fitted inside 256 x 256, keeping its shape; a smaller one keeps its size.
  • The converter does not crop or pad to a square.
  • A JPEG has no transparency, so the icon is a solid rectangle.
  • EXIF data, ICC profiles and XMP are not copied.

About JPEG and ICO

What is a JPEG file?

Three dates frame the history. Work in the Joint Photographic Experts Group began in 1986, ITU-T published its standard as T.81 in 1992, and the same text became ISO/IEC 10918-1 in 1994. Baseline JPEG discards detail on purpose: blocks of 8x8 pixels get a discrete cosine transform, and Huffman coding packs what remains. Color is stored at 8 bits per channel with no alpha channel, so see-through pixels cannot exist in a JPEG. An optional progressive layout draws a blurry whole first and sharpens it. A 0 to 100 quality scale is common, but the numbers are not comparable across programs, and an ordinary setting turns a photo into roughly 1/10 to 1/20 of its raw size, which is the trade that made JPEG the photo format.

Either ending, .jpg or .jpeg, means the same format. A JPEG cannot store layers. The final US patents on the format ran out on 27 October 2006. Digital cameras and scanners commonly save in JPEG, and it turns up wherever photos live: phones, stock sites, product pages and email attachments.

Programs that open JPEG files

  • Windows: Photos shows JPEG pictures.
  • Mac: Preview shows JPEG pictures.
  • Windows, Mac and Linux: GIMP can import a JPEG for editing, while ImageMagick opens one from the command line.
  • Web and mobile: every browser displays JPEG, Chrome and Firefox on the web and Safari and Chrome on phones.

JPEG and ICO compared

  • Extensions and types: JPEG uses .jpg or .jpeg and image/jpeg; ICO uses .ico and image/vnd.microsoft.icon.
  • Purpose: JPEG is for photographs. ICO holds icons for Microsoft Windows, and browsers also use it for favicons.
  • Several images: one ICO may contain many pictures at different sizes and color depths. Microsoft describes typical icon sizes as 16, 32, 48 and 256 pixels. A JPEG contains one picture.
  • Size: 256 pixels is the largest side this converter writes, which matches the largest of those typical sizes.
  • Transparency: ICO supports alpha. A JPEG gives it nothing to carry.
  • Compression: JPEG is lossy. Here, an image of 256 px is written as a PNG entry.

The page decodes the JPEG with your browser, then hands the pixels to ImageMagick, which writes the ICO. One image goes in. A picture wider or taller than 256 pixels is shrunk to sit within 256 x 256 at the same proportions, and a smaller picture keeps its size. No metadata is copied.

If you need an ICO with 16, 32 and 48 pixel images inside, that is a job for a program that writes several sizes into one file, such as the ImageMagick command below. The converter on this page does not crop to a square or add padding.

Other ways to convert JPEG to ICO

  • GIMP (Windows, Mac, Linux): after loading the JPEG, File > Export As lets you name the file with an .ico ending; press Export. The export type is called Microsoft Windows icon.
  • ImageMagick (command line): run magick portrait.jpeg -alpha off -define icon:auto-resize="16,32,48,64,96,128,256" favicon.ico. This writes seven sizes into one ICO; ImageMagick's page says the input should be square.
  • IrfanView: choose File > Open for the JPEG, then File > Save as, pick ICO as the output format, set the file name and save. IrfanView lists ICO among the formats it can save.

Problems with JPEG files

  • The icon has a white or colored box: a JPEG can't be transparent, so its whole rectangle becomes the icon. Cut the subject out in an editor first.
  • "Image decode failed." appears: your browser could not decode the file as a JPEG. It may be another format that was renamed to .jpg.
  • Detail disappears at icon size: a JPEG bigger than 256 px is reduced to fit the 256 x 256 limit, so a detailed photo loses much of its detail. A simple, cropped picture with one clear subject holds up better.
  • The ICO isn't square: the converter keeps the JPEG's shape, so crop the JPEG to a square before converting.
  • You lose your layers: a JPEG keeps none, and neither does this conversion. Keep the project file you made it from.
  • EXIF data is gone: only pixels are passed on, so camera details, ICC profiles and XMP stay behind.

Frequently Asked Questions

Everything you need to know about our converter

How do I turn a JPEG into a favicon?

What size will the ICO be?

Does the ICO contain several sizes, like 16, 32 and 48?

Why isn't my ICO square?

Can a JPEG give me a transparent icon?

Does converting change the picture?

Will the ICO keep my JPEG's EXIF data?

Will a small JPEG be enlarged to make a bigger icon?

Can I rename a .jpg to .ico instead?

Can I convert JPG and JPEG files with the same page?