JPG to GIF Converter

Turn a JPG into a GIF with a 256-color palette, right in your browser.

or drop files here

JP

JPG 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
  • Adjustable quality
  • No alpha transparency
  • Supported everywhere
GI

GIF Format

Graphics Interchange Format

A raster image format introduced by CompuServe in 1987. It uses LZW compression, a palette of at most 256 colors per frame, and supports simple animation.

  • 256-color palette per frame
  • Lossless LZW compression
  • Animation
  • 1-bit transparency

How to convert JPG to GIF

Follow these steps to convert JPG to GIF online.

    1

    Choose your JPG file, or several at once.

    2

    Wait while the converter turns each file into GIF.

    3

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

What to know before converting JPG to GIF

  • The GIF is a single still frame, not an animation.
  • It is limited to 256 colors, so photographic gradients get coarser.
  • A photo can end up larger as a GIF than as a JPG.
  • EXIF data, ICC profiles and XMP are not copied.
  • Several JPGs convert one after another, each to its own GIF.

About JPG files

What is a JPG file?

A JPG (or JPEG) is a photograph format named for the Joint Photographic Experts Group. The core standard appeared as ITU-T T.81 in 1992, with ISO/IEC 10918-1 following in 1994. Baseline JPEG is lossy: the image is split into 8x8 pixel blocks, put through a discrete cosine transform, then Huffman coded. A typical setting leaves between a tenth and a twentieth of the uncompressed size.

JPEG gives each channel 8 bits, offers no alpha channel and can't store layers. The US patents ended on 27 October 2006. Cameras and scanners write JPEG, which makes it the usual format for photos on the web, in email and in photo sharing. The .jpg and .jpeg endings name the same format, whose media type is image/jpeg. A progressive JPEG paints a rough picture first and refines it as the rest arrives.

Programs that open JPG files

Windows / Mac / Linux

  • GIMP: loads JPEG for editing.
  • ImageMagick: a command-line reader of JPG files.

Windows

  • Microsoft's Windows Photos opens JPG.

Mac

  • Preview opens JPG.

Web and mobile

  • Firefox and Chrome open a JPG on a computer; Safari and Chrome handle it on a phone.

JPG and GIF compared

  • Extensions and media types: JPG is .jpg or .jpeg with image/jpeg, and GIF is .gif with image/gif.
  • Compression: baseline JPEG is lossy, while GIF uses lossless LZW coding. Unisys charged LZW license fees from 1994, and its patents expired in 2003 and 2004.
  • Colors: JPEG keeps 8 bits per channel. A GIF image draws from a palette limited to 256 colors.
  • Transparency: JPEG has none. A GIF may flag one palette color as fully transparent and offers nothing partial.
  • Animation: a GIF can hold many images and times each frame in hundredths of a second. A JPG is one still picture.
  • Origin: CompuServe introduced GIF in 1987. GIF89a, the revision of July 1990, brought transparency, per-frame timing, comments and application data.
  • Metadata: the GIF made here carries none of the JPG's data.
  • Browsers: Firefox and Chrome display both formats on a computer, and Safari and Chrome display both on a phone.
  • Stills: a JPG records one picture, so the GIF made from it has a single frame and no timing to set.
  • Layers: neither format stores layers, so the GIF made here is one flat picture.

What this conversion does is trade color for compatibility with GIF. Your browser decodes the JPG, and the page writes a single-frame GIF with the colors reduced to fit a 256-color palette. Nothing moves, and no transparency appears. Every JPG is converted in turn on its own, and the GIF keeps the JPG's name with a .gif ending. The GIF is a good fit for a flat graphic, a screenshot or a small icon-like picture, and a poor fit for a portrait or a landscape photo.

Other ways to convert JPG to GIF

  • GIMP (Windows, Mac, Linux): open the JPG, choose Export As under File, name it with a .gif ending and click Export. GIMP reduces the image to a palette of 256 colors or fewer, and a multi-layer image can be exported as an animation. GIMP drops a GIF comment that has non-ASCII characters, and its GIF dialog advises converting the image to indexed mode first, since partial transparency cannot be kept.
  • ImageMagick (command line): run magick portrait.jpg portrait.gif. ImageMagick reads and writes both JPEG and GIF, with a GIF palette of up to 256 colors, and quantizing to a palette can change the colors of a photograph.

Problems with JPG files

  • The picture loads in stages: a progressive JPG shows a rough picture while it downloads. That is a storage mode, and the GIF made here is a single still frame.
  • Transparency is missing: a JPEG can't hold transparent pixels. If you need them, pick a format with alpha, such as PNG.
  • An old photo frame refuses the file: progressive JPEG trips up some older frames. Export once more with progressive mode off.
  • Quality numbers don't match: JPEG quality normally runs from 0 to 100, and an identical number may give different quality in different programs, so judge results by eye.
  • You need the layers: JPG does not preserve an editable layer stack. Keep the project file.

Frequently Asked Questions

Everything you need to know about our converter

How do I turn a JPG into a GIF?

How can a JPG become a GIF that moves?

Can I join several JPGs into one GIF here?

Why do the colors look worse in the GIF?

Does a GIF come out smaller than the JPG?

Does a GIF have transparency like my logo?

Is the JPG's EXIF data copied into the GIF?

Is there a loss of quality when I convert JPG to GIF?

What is a GIF good for compared with a JPG?

What do I do when my JPG won't load here?