GIF can never show more than 256 colours. Fewer colours make smaller files but look rougher. Dithering mixes dots of nearby colours to hide banding in photos and gradients, but makes the file larger. Photos usually look much better with it on.

JPG to GIF Converter

Select JPG files — or a whole folder — and convert them to GIF right in your browser. Nothing is uploaded.

Or drag & drop JPG files or folders anywhere on this page. Only JPG files are accepted.

Ready
0 files

🎞️ How the JPG to GIF Converter Works — Complete Guide

Everything you need to know about converting JPG photos to GIF with Sakarto: what the two formats are, when converting makes sense, how colours and dithering work, and how to use Queue Mode. Scroll down for step-by-step instructions, tips, and answers to common questions.

100% Private — Your Images Never Leave Your Computer Everything runs inside your browser. No uploads, no accounts. Your original JPG files are only read, never changed — the converter creates new GIF files.

🔍 What This Tool Does

Sakarto converts JPG (JPEG) photos into GIF inside your browser. Add a few files or a whole folder, choose how many colours to keep, and get back GIF copies you can download one by one, as a single ZIP, or save straight to a folder. Photos from phones and cameras are turned the right way up. The GIF encoder is built into the page and runs in a background Web Worker, so nothing is uploaded and the page stays responsive. Only genuine JPG files are accepted — every file is checked by its internal signature, not just its extension.

Works Everywhere

GIF opens in practically every browser, app, email client and device, which makes it a safe choice for old or picky systems.

Colours and Dithering

Choose 2 to 256 colours and turn dithering on for photos and gradients to keep smooth-looking transitions.

Photos Come Out Upright

Photos from phones and cameras are turned the right way up using their rotation data, just like in your browser.

Queue or Instant Mode

Hand-pick which JPG files to convert with Queue Mode, or switch it off and convert everything the moment it is loaded.

📚 JPG vs GIF — What Are These Formats?

JPG is built for photos and GIF for simple graphics with few colours. Understanding the difference helps you decide whether a conversion makes sense.

📷 What is JPG?

JPG (also written JPEG, after the Joint Photographic Experts Group) became a standard in 1992. It makes photos small by throwing away detail the eye barely notices, and it is the most common photo format in the world.

  • Lossy compression — smaller files, but some detail is gone for good
  • Millions of colours (24-bit), made for photographs
  • No transparency — every pixel is solid
  • Every re-save compresses again and adds more loss
  • Stores camera data such as EXIF, rotation and sometimes GPS location
  • Opens in practically every browser, app, printer and device
🎞️ What is GIF?

GIF (Graphics Interchange Format) was introduced by CompuServe in 1987. A GIF picture can use at most 256 colours, picked from a palette, and that palette image is then compressed without further loss. The format also supports simple transparency and animation, and it is one of the most widely supported image formats in the world.

  • At most 256 colours per image, taken from a palette
  • Compresses the palette image without further loss (LZW)
  • Each pixel is either fully transparent or fully solid — no soft edges
  • Can store animation (Sakarto creates still images only)
  • Opens in practically every browser, app, email client and device
  • Photos and smooth gradients look rough, and their files can get large
GIF works everywhere — but it is rarely the best choice for still images. For logos, icons, pixel art and simple graphics with few colours, GIF can be small and perfectly good. For photos, JPG, WebP or AVIF look far better and are much smaller. Convert a photo to GIF only when a system specifically asks for it.

⚖️ Side-by-Side Comparison

⚖️ Side-by-Side Comparison
FeatureJPGGIF
ColoursMillions (24-bit)256 per image, from a palette
CompressionLossy — detail is discardedLossless — but only after the colours are reduced
TransparencyNoneOn or off for each pixel
Best forPhotosSimple graphics, pixel art and systems that require GIF
File size for photosSmallMuch larger, and the picture looks rough
AnimationNoYes (Sakarto converts still images only)
Camera data (EXIF, GPS)Stored in the fileNot copied by this converter
Browser supportUniversalUniversal
App and printer supportUniversalUniversal, even on very old systems
File extensions.jpg, .jpeg.gif

🎯 When Should You Convert JPG to GIF?

✅ Good reasons to convert
  • A website, form, forum or email system that only accepts GIF files
  • Very old software or devices that cannot open newer formats
  • A small thumbnail, avatar or icon where a rough look doesn't matter
  • A simple graphic that was saved as JPG and has only a few flat colours
  • You want a stylised, low-colour look for a photo
⚠️ Think twice if…
  • Photos you want to keep looking good — 256 colours can't reproduce them well, and GIF files of photos are large
  • Smooth gradients such as skies — GIF shows visible banding unless you use dithering
  • Anything that needs more than 256 colours to look right
  • Websites and apps where JPG, WebP or AVIF are accepted — they look better and are much smaller
  • Photos you plan to edit further — keep the JPG as your master
Convert copies, never masters. Sakarto never modifies your JPG files — it creates new GIF files. Keep the originals as your master copies.

🧠 How the Conversion Works

Here is what happens to every file, step by step — all of it on your own device:

  1. Validate the JPG

    The first bytes of each file are checked against the JPG signature, and the frame header is read to get the dimensions and the camera rotation — without decoding the whole image. Files that aren't real JPGs are skipped.

  2. Read the pixels

    Your browser's own JPEG decoder turns the file into pixels. Photos are turned upright using their camera rotation data, and if the photo has a colour profile the browser converts the colours to sRGB. Very large photos that exceed the browser's canvas limits can't be processed and are reported as failed.

  3. Build the palette and encode

    A palette of up to the number of colours you chose is built with a median-cut algorithm, each pixel is matched to its nearest palette colour (with dithering if you ticked it), and the result is written as a GIF using LZW compression. This runs in a background Web Worker, so the page stays responsive, and on computers with several cores a few files are encoded at the same time.

  4. Deliver the result

    Each GIF file is held in memory. You can download them individually, bundle them into a ZIP that is built locally in your browser, or write them straight into a folder (Chrome and Edge).

What do the settings change? The number of colours and dithering decide how close the GIF looks to your photo and how big the file gets. A photo has thousands of colours, so GIF has to pick the best 256 (or fewer) and everything else is matched to them — dithering hides the resulting banding with a fine pattern of dots.

🎚️ Choosing the Number of Colours

There is no single best setting, but these ranges are a reliable starting point. The more colours, the better the picture — and the larger the file.

🎚️ Choosing the Number of Colours
ColoursBest forWhat to expect
256Photos you must keep recognisableThe best GIF can do; photos still show banding unless dithering is on
128–64Small previews and avatarsSmaller files; gradients start to band and skin tones turn patchy
32–16A deliberate, posterised lookVery small files; photos look flat and graphic
8–4Stylised effectsTiny files; the photo is barely recognisable
2Black-and-white graphic effectsSmallest possible; everything is reduced to two colours

🔁 Queue Mode vs. Instant Mode

The Queue Mode checkbox in the toolbar decides what happens when you click Convert, and whether files are converted as soon as they are loaded.

📋 Queue Mode ON (default)
  • Loaded JPG files are only listed — nothing is converted yet
  • Select the files you want and click Convert to stage them
  • Review the Convert Queue tab and remove anything you don't want
  • Click Convert All Files to process the whole queue at once
  • Best when a folder contains photos you only want to convert selectively
⚡ Queue Mode OFF
  • Every JPG is converted automatically the moment it is loaded
  • Clicking Convert on selected files converts them immediately
  • Results appear straight away in the Converted GIF tab
  • Best for a few photos: drop them in, download the ZIP
  • You can still change the colours or dithering setting and re-convert files
Your Queue Mode choice is remembered on this device, so the page works the way you like the next time you visit.

📋 Step‑by‑Step: How to Convert JPG to GIF

Step 1

Choose Your Settings

Pick the number of colours and tick Dithering for photos and gradients. Decide whether you want Queue Mode on or off.

Not sure? Leave it on 256 colours. Photos look much smoother with Dithering ticked, but the file gets larger.
Step 2

Add JPG Files

Click 🖼️ Select JPG Files to choose photos, or 📁 Select Folder to scan a whole folder including subfolders. You can also drag and drop files or folders onto the page. Anything that isn't a real JPG is skipped, and you are told how many were skipped.

Step 3

Review the Files

Every JPG appears as a card with its dimensions and size. Photos from phones and cameras are shown upright, and their dimensions are given the right way round.

  • Click a card to select it (blue border)
  • Click & drag on empty space to box-select several cards
  • Click the 🔍 icon to preview full size
  • Right-click a card for the context menu
  • Ctrl+A selects everything, Escape clears the selection
  • Ctrl+Click (Cmd+Click on Mac) to add a card to the compare list (purple border)
Step 4

Convert

Select the files you want and click 🔁 Convert. With Queue Mode on, the files are staged in the Convert Queue. With Queue Mode off, they are converted immediately.

Step 5

Review the Queue (Queue Mode)

Open the Convert Queue tab in the sidebar. Remove any file with the ✕ button, then click Convert All Files. A progress bar shows how far along the conversion is, and you can stop it at any time.

Step 6

Compare Before and After

Ctrl+Click (Cmd+Click on Mac) two or more cards — original JPGs in the JPG Files tab, converted files in the Converted tab, or a mix of both — then click ⚖️ Compare in the toolbar. A modal shows each file with its dimensions, size and details, plus how much the size changed. You can also open a converted file's preview and click Compare with Original.

⚖️ Compare View the selected files side by side
Ctrl + Click Add or remove a card from the compare list
Compare with Original Open the original and its converted file together
Not happy with the result? Change the settings and press Convert again — your files stay loaded, so you don't need to add them again.
Step 7

Download Your GIF Files

Finished files appear in the Converted GIF tab with their new size and how much smaller (or larger) they are. Then pick how to get them:

📦 Download ZIP All GIF files in one archive, folder structure kept
⬇️ Download All One download per file
📁 Save to Folder Write straight to a folder (Chrome / Edge)
📥 Download List A text file showing which JPG became which GIF
⬇️ Card button Download a single GIF file
Converted files exist only in your browser's memory until you download them. Download before closing or reloading the tab.

🏛️ Quick Reference — Buttons & Controls

🏛️ Quick Reference — Buttons & Controls
Button / ActionWhat it does
🔄 New SessionReload the page and start from scratch
➕ Add FilesAdd more JPG files to the current session
☑️ Select AllSelect every JPG file in the list
✕ Deselect AllClear the current selection
🔁 Convert (N)Queue the selected files, or convert them now if Queue Mode is off
⚖️ Compare (N)Open the compare modal for Ctrl+clicked cards. Needs 2 or more.
Queue Mode checkboxOn: stage files first. Off: convert immediately.
ColoursHow many colours the GIF may use, from 256 down to 2
Dithering checkboxMix nearby colours to hide banding (larger files)
Click cardSelect / deselect the file
Ctrl + Click cardAdd / remove the card from the compare list (purple border)
Click & drag (empty area)Box-select several cards at once
Right-click cardContext menu: Copy Name / Preview / Compare / Convert
🔍 hover iconOpen a full-size preview with details
Convert All FilesConvert everything in the Convert Queue
📦 Download ZIPBundle all converted GIF files into one ZIP file
📥 Download ListSave a text file listing each JPG and the GIF it became, with sizes
Show as ListShow the same "from → to" list on the page
Ctrl+A / EscapeSelect all files / clear the selection

⭐ What Users Say

Based on 4 reviews (demo)

"This is a demo review. The real reviews will be shown here."

"This is a demo review with a longer text, so you can check how a card looks with more content. The real reviews will be shown here."

"Demo review — real reviews will be here."

"This is a demo review. Once you have real users, their words and names replace this card."

💡 Tips for Best Results

Photos: Turn Dithering On

Dithering hides the banding that 256 colours cause in photos and gradients. Expect a noticeably larger file.

GIF Suits Simple Pictures

Photos usually look rough as GIF. If you only need a smaller or more widely supported photo, use JPG to WebP or JPG to AVIF instead.

Fewer Colours, Smaller Files

For small thumbnails or a stylised look, try 64, 32 or even 16 colours. The file shrinks a lot, but the photo looks flatter.

Photos Come Out Upright

Phone and camera photos are turned the right way up using their rotation data, so the GIF looks like the photo in your browser.

Use Queue Mode for Big Folders

Scanning a folder with many photos? Turn on Queue Mode and convert only the ones you need.

ZIP Beats Many Downloads

Browsers may block or prompt for many simultaneous downloads. Download ZIP gives you everything in one go.

Keep the Download List

Use Download List to save a text file showing which JPG became which GIF, with the size of each.

Test on a Few Files

Convert two or three photos first, compare the preview and size, and adjust the colours before running a large batch.

Change Settings and Convert Again

Not happy with the result? Change the colours or dithering and press Convert again — your files stay loaded, no need to add them again.

Keep the JPG If You Need the Location

GPS location and camera details stored in the JPG are not copied to the GIF. Keep the original if you need them.

Compare Before You Download

Use Compare to look at the JPG and the GIF side by side, with the exact size difference, before you download a whole batch.

⚠️ Known Limitations

Results live in memory only.

Converted GIF files are not saved anywhere until you download them. Reloading or closing the tab discards them.

At most 256 colours.

Every GIF is reduced to a palette of 256 colours or fewer, so photos and smooth gradients lose detail. This is a limit of the GIF format itself.

Files are much larger than the JPG.

GIF compresses photos far less efficiently than JPG, so the result is usually several times bigger. The Converted GIF tab shows the size change for every file.

Large batches and big images use a lot of memory.

Each image is held in memory several times while it is encoded. Sakarto limits the number of parallel workers (one on phones and tablets), but very large images can still exhaust a device's memory.

Very large images may fail.

Photos over 30 megapixels or 65,535 pixels per side and files over 100 MB are not converted, and browsers limit how big a canvas can be (mobile browsers are stricter). Rare kinds of JPEG, such as arithmetic-coded or lossless JPEGs, can't be opened by browsers. Failed files are reported.

Camera data isn't carried over.

EXIF, GPS location and camera details from the JPG are not copied to the GIF. Colour profiles are applied by the browser, which converts to sRGB, so photos in wide-gamut profiles may look slightly different.

No transparency.

JPG has no transparency, so the GIF is fully opaque.

HEIC photos aren't JPG.

Photos from some phones are saved as HEIC. This converter only accepts JPG files, so those are skipped.

Saving to a folder needs Chrome or Edge.

The File System Access API is only available in Chromium-based desktop browsers. Everywhere else, use Download ZIP or the per-file download buttons.

🔒 Privacy & Security

Nothing is uploaded. Open DevTools → Network and watch: converting files makes no network requests at all. Reading the photo, building the palette, encoding the GIF and ZIP creation all happen on your device.
Your originals are never changed. Files are only read. The converter always creates new GIF files and never overwrites or deletes your JPGs.
Location data stays behind. Photos can contain GPS coordinates and camera details. The GIF created here has none of them, so it's safer to share — but keep the JPG if you need that information.
No accounts needed. The only things stored in your browser are your preferences (colours, dithering and Queue Mode). File names and images are never saved.
Purely static — no backend. The page is HTML, CSS and JavaScript. There is no server, database or API that receives your images.

❓ Frequently Asked Questions

Are my JPG files uploaded anywhere?
No. All conversion happens locally in your browser. The GIF encoder is part of this page and runs on your device, so your photos never leave it, and no server receives them. You can verify this in your browser's DevTools → Network tab.
Why does my GIF look worse than the JPG?
GIF can only use 256 colours per image, while a JPG can have millions. Photos and smooth gradients therefore show banding or rough areas. Keep the colours on 256 and tick Dithering to improve photos, or use WebP or AVIF if you want a small file that still looks good.
What is GIF?
GIF is an image format from 1987 that stores pictures with at most 256 colours. It supports simple transparency and animation, is compressed without further loss, and can be opened by practically every browser, app and device.
What does dithering do?
Dithering mixes small dots of nearby palette colours so that gradients and photos look smoother with so few colours. It makes the file larger, and on flat logos or icons it just adds noise, so leave it off for those.
How many colours should I choose?
For photos and detailed images, 256. For logos, icons and charts, try 32, 16 or even 8 — the picture often looks identical and the file is much smaller. The Converted GIF tab shows how many palette entries were really used.
Why is my GIF larger than the original JPG?
GIF compresses photos much less efficiently than JPG, and dithering makes it worse. Try fewer colours, turn dithering off, or keep the JPG. The Converted GIF tab shows the size change for every file so you can spot this.
Does GIF support transparency?
Yes, but JPG photos have no transparency, so your GIF files will be fully opaque.
Can I get my original JPG back from the GIF?
No. The colours were reduced, so that information is gone for good. Always keep your original JPG files — Sakarto never modifies them.
What is the difference between Queue Mode and converting directly?
With Queue Mode on, loaded files are only listed. You select the ones you want, stage them in the Convert Queue, review, and convert them together. With Queue Mode off, every JPG is converted as soon as it is loaded, and the Convert button converts the selection immediately.
Why can't I add PNG, WebP, HEIC or other image types?
This converter is built specifically for JPG to GIF. Files are verified against the JPG file signature, so a different image that was only renamed to .jpg is skipped. Photos saved as HEIC by some phones aren't JPG either. Converters for other formats are available from the sidebar.
Which file extensions are accepted?
.jpg, .jpeg, .jpe and .jfif — as long as the file really is a JPG inside.
Is the camera data (EXIF, GPS) kept?
No. The GIF is produced from the decoded pixels, so EXIF data, GPS location and camera details aren't copied. Photos are turned upright using their rotation data before saving, so they look the same as in your browser.
Can I make an animated GIF?
No. Sakarto creates still GIF images. If you convert an animated JPG (AJPG), only its first frame is used.
Are there file size or image size limits?
Files over 100 MB are skipped, as are photos over 30 megapixels or 65,535 pixels per side. Images that exceed your browser's canvas limits can't be processed either, and mobile browsers have stricter limits than desktop ones. Failed files are reported after the conversion.
My browser blocks or asks about multiple downloads. What can I do?
Browsers often limit many automatic downloads. Use Download ZIP to get all files in a single download, or Save to Folder in Chrome or Edge to write them directly to a folder.
Does this work on iPhone, Android and Safari?
Yes. The converter uses only standard browser features, so it works in current Chrome, Edge, Firefox and Safari, including on iPhone, iPad and Android. Phones and tablets convert one file at a time and are more limited with very large images. Folder selection and Save to Folder require a Chromium-based desktop browser such as Chrome or Edge.
Can I change the settings and convert again without adding the files again?
Yes. Your JPG files stay loaded. Change the colours or tick/untick Dithering, then press Convert again. If nothing is selected, Convert re-converts the files you already converted; otherwise it converts the selection. The new results replace the old ones.
How do I compare the original and the GIF file?
Ctrl+Click (Cmd+Click on Mac) the original card and its converted card, then click ⚖️ Compare in the toolbar. Or open a converted file's preview and click Compare with Original. The modal shows both images with their sizes and the size difference.
How do I know which JPG became which GIF?
Click Download List in the Converted GIF tab to save a text file with each original path, the new file name, dimensions, sizes, colours and dithering. Show as List displays the same "from → to" list right on the page.