JPG to GIF Converter
Best for turning a sequence of JPG frames into a simple animated GIF for embedding on the web.
▸▾GIF is limited to 256 colours per frame
Photos with many colours will show banding in GIF output. Use high-quality source JPGs for the best result.
Drop files or a folder here
or click to browse · paste from clipboard
Accepts .JPG, .JPEG · Up to 1,000 files
Turn a sequence of JPGs into an animated GIF. Set frame rate, size, and loop count in your browser.
How it works
Drop your JPGs in order
You can add JPG frames by uploading them, browsing to local files, or pasting from the clipboard. The files are ordered by their name, so simply number all frames (e.g., frame-001.jpg, frame-002.jpg, …).
Set frame rate, size, and loop
Specify frames per second (10-24), image width (all frames to the same width), and other properties. Choose an infinite or fixed loop counter.
Click Convert
ffmpeg.wasm does a two-pass palette optimization for you locally in the browser: first, it creates an optimized 256-color palette for your frames, and then it encodes the animated GIF from there.
Download the GIF
You can then view the animation and either save it as a single GIF or download it with other conversions as a ZIP file.
What is JPG?
JPG (or JPEG) is a photo image format introduced in 1992. It’s a very popular image format for use on the web, in phone galleries, and on cameras. The JPG format uses lossy compression, which means that a small amount of the image is eliminated to form a smaller file. This is great for photos but not as suitable for sharp graphics and text.
It is a single image and does not support any form of animation, transparent backgrounds, or multiple frames in an image. All cameras, browsers, phones, and chat programs support JPG files.
What is GIF?
GIF (or Graphics Interchange Format) was introduced in 1987. This format is used for short, animated clips (or more popularly known as memes), adding an emotional aspect to a message or article. The main difference between a JPG and a GIF file is that the latter is made up of multiple frames contained within a file. Another difference is that GIFs support only up to 256 colors and use older compression methods, so image encoding isn’t as efficient, resulting in larger file sizes.
Because GIFs only support images that have 256 colors, gradients that would look really good in JPGs just aren’t going to look as good in a GIF format. This kind of gradient would look photographic, like a blue sky, a colorful sunset, human skin tones, or even a dark shadow. Such an image would contain thousands of individual colors, and the GIF would map all of those to 256 colors for the entire image.
The difference between the colors in the gradient is so extreme that instead of smooth transitions between colors, there are large bands of solid color. Areas of the image that are otherwise flat will be made up of dots of very coarse dithering. In some cases, the color may even shift from the original shade and may not match at all in areas of the image where there are no suitable colors in the palette. The degree to which this type of problem occurs will be affected by the area of the image that the gradient is intended to cover and the element against which it will be viewed (for example, a full-height background sky would be very noticeable, whereas a gradient used for a button would not).
However, one huge advantage of GIFs is that they are supported on nearly every platform, not just browsers. Users can open them on any website, software, or email platforms; even legacy software supports this format.
Why should I convert JPG to GIF?
- Transform a sequence of photos into an animated short: Use a sequence of JPGs to create and upload a short animated film to services such as Twitter or Tumblr. These can then be embedded on a blog or website. Before and after images, product rotations, and step-by-step guides are all made easy. If you have already made a video, then perhaps video to GIF is the better option.
- When sharing animation on platforms that don’t support video playback, GIFs work better in Slack, Discord, iMessage, Reddit, emails, and on many older forum websites, whereas MP4s are often prohibited or embed awkwardly. To share a GIF by converting it to a video, such as for sharing on Vimeo, share it with our online GIF to MP4 converter.
- Immediately create funny memes or reactions from things you captured with your phone.
- Works on anything. Even old phones, browsers, and email clients will play GIFs.
Why should I keep the JPG?
- Smaller file size for one picture: A JPG file for one picture is much smaller than a GIF file for that same image. JPG is meant for images, and GIF is meant for simple graphics like logos or cartoons. If you already have a large GIF, shrink it with Compress GIF.
- JPG supports a full color range (millions of colors), whereas GIF is limited to 256 colors. Photos can look banded and pixelated with lots of noise when converted to GIF, especially if the photos contain landscapes, people, or gradients.
- JPG retains the fine photo detail. GIFs tend to ‘smear’ fine photo texture because they can display only 256 colors.
- For single images, such as photos, it is easiest to upload JPEGs to sites, print them at stores, use them in photo applications, etc. If you only have one image that is stationary and you don’t plan to make an animation out of it, then just stick with a JPG. For other uses, like WebP or transparent backgrounds, convert it to a WebP or PNG.
Frequently asked questions
No. Conversion uses ffmpeg.wasm entirely in your browser. Your files never leave your device.
When converting a JPG photo to a GIF, the millions of colors in the photo are reduced to the closest of the 256 colors that a GIF can display per frame. This can result in banding and color shifting, particularly on gradient areas, in skies, and on human skin. This is not a bug with the converter, it’s a limitation of GIFs. If you need to show off color in your animation, consider using WebP or even MP4 animations.
Control the frame rate with a slider. Basic web animations usually run at 10fps. For animations that play like video, 24fps is a good value. For faster animations that are bigger files, increase the fps. For slower animations that look more like a slideshow and are smaller files, decrease the fps.
Yes — set the loop count to 1. This is the default for ‘loop’ set to 0. You can also specify an exact number of loops. This is useful for animated GIFs that you want to play a certain number of times and then stop.
If you need to be really cross-browser compatible (e.g. old email clients, Slack, etc.), then stick with GIFs. However, if you are deploying on the web, then GIFs are roughly 25-40% larger than animated WebP and support full color. In the end, GIFs are a universal fallback, but WebP is the better modern choice for most new web work.