Skip to content
Jellykit

JPG to GIF Converter

Turn JPG photos into still GIF images with a 256-colour palette and optional dithering, and see when a GIF ends up larger or coarser.

  • Runs on your device
Loading tool

About JPG to GIF Converter

GIF is sometimes the only format an old upload form, a forum avatar field or a legacy system accepts. This page turns JPG photos into still GIFs, up to 300 at once, each with a palette of up to 256 colours chosen from that photo.

A photo usually holds tens of thousands of colours, so a GIF can only approximate it. Dithering mixes palette colours in fine dots so skies and skin do not break into bands; you can switch it to a regular pattern or turn it off. GIF also compresses photos poorly, and the page tells you when a GIF came out larger than its JPG.

How it works

  1. Each file is recognised from its first bytes, not its name, and decoded the right way up (phone rotation is applied). HEIC and HEIF photos are decoded locally in a worker with libheif whenever your browser does not open them natively.
  2. The picture is drawn onto a canvas. For JPEG, which has no transparency, transparent areas are filled with the background colour you choose.
  3. The canvas is encoded in the chosen format and the result is checked byte by byte, because some browsers silently write PNG when they cannot write WebP or AVIF.
  4. For GIF, a palette of up to 256 colours is built from the picture itself (every colour is kept exactly when there are few enough), dithered if you ask, and written in a background worker.

Questions

Why is the GIF bigger than my JPG?

JPG compression is built for photographs; GIF compression is built for flat areas of one colour. In a dithered photo neighbouring pixels keep changing, so GIF finds little to repeat and the file often grows several times over. A lower colour count makes it smaller, at the cost of more visible dots.

Which dithering should I choose?

Diffusion, the default, gives the smoothest gradients and suits most photos. Pattern spreads a regular, even texture that some prefer for illustrations. None gives flat areas of colour, which suits pictures that already have few colours but shows bands in skies and shadows.

How large a photo can I convert?

Up to 4096 px on its longer side, the most the GIF writer on this page takes; a larger photo is refused, and the page says its size. Phones in their high-resolution modes often save larger photos, so resize those first, which also keeps the GIF a sensible size.

Is the camera information kept?

No. The photo is turned the right way up using its rotation tag and redrawn, and only its pixels are written, so EXIF data such as GPS position, camera model and date is not carried into the GIF.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.