GIF to WebP Converter
Save the first frame of a GIF as a still WebP in your browser.
or drop files here
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
WEBP Format
WebP image
An image format developed by Google, first released in 2010 and built on the VP8 video codec for lossy images. It also supports lossless compression, transparency and animation.
- Lossy and lossless compression
- Alpha transparency
- Animation
- Supported by current major browsers
How to convert GIF to WebP
Follow these steps to convert GIF to WEBP online.
Choose your GIF file, or several at once.
Wait while the converter turns each file into WEBP.
Download each new WEBP file. Your original file isn't changed.
What to know before converting GIF to WebP
- Only the first frame is converted, so the WebP is a still image.
- The page passes no quality setting; a browser canvas or ImageMagick encodes the WebP.
- Transparent pixels in the GIF stay transparent.
- GIF comments and other metadata are not copied.
- Several GIFs are converted in turn, each into its own download.
About GIF and WebP
What is a GIF file?
GIF is the Graphics Interchange Format, introduced by CompuServe in 1987. A GIF compresses each picture with LZW and holds at most 256 colors per frame, drawn from a palette. It can hold several pictures with delays between them, which is how a GIF animates, and it can mark one palette color as fully transparent. GIF89a added the control blocks for delays and transparency.
GIFs are everywhere short, looping clips are shared: reaction images, stickers, instructions and small animated graphics. Because the palette is limited, a photograph in a GIF often shows dithering, and a smooth gradient shows bands. Converting the file does not undo that. The picture you start from is the palette picture, and WebP simply stores it in a different way.
Programs that open GIF files
- Windows: Windows Photos opens GIF files. GIMP exports GIF as either a still picture or a multilayer animation.
- Mac: Preview opens GIF files, and GIMP exports GIF the same way.
- Linux: GIMP and ImageMagick, which reads GIF and can be scripted from the command line.
- Web and mobile: Chrome and Firefox show GIF on desktop websites; on phones, Chrome and Safari show it too.
To check the WebP you get from this page, open it in a current browser, since Chrome, Firefox and Safari all display WebP. GIMP has opened and saved WebP natively since 2.10, and Preview on macOS and Windows Photos open it as well.
GIF and WebP compared
- Extensions and media types: .gif and image/gif; .webp and image/webp.
- Compression: GIF is lossless inside a 256-color limit. WebP offers a lossless mode and a lossy one, and the lossy one borrows its compression from the VP8 video codec.
- Color: WebP is not limited to a palette.
- Transparency: GIF has 1-bit transparency, a pixel either shows or does not. WebP has an alpha channel.
- Animation: both can animate. This page does not write an animated WebP.
- Size limits: WebP stops at 16,383 pixels per side, so anything larger cannot be stored as WebP.
The page decodes the first frame of the GIF with your browser's own image decoder and encodes it as a WebP with a browser canvas or ImageMagick, passing no quality setting. Metadata is not copied, and your original GIF is untouched. The picture passes through 8-bit RGBA, so a GIF's palette colors arrive as ordinary 8-bit pixels.
Google developed WebP and released it in 2010. Its lossy mode comes from the VP8 video codec; it also has a lossless mode, transparency and animation. It is used for web images with smaller files, for images that need transparency and for short animations.
A still WebP is useful when you want a web-friendly picture from the opening frame of an animation, for a thumbnail or a poster, for example. It keeps see-through pixels and sits comfortably on a page next to ordinary photos. If the motion matters, this page is the wrong tool; try one of the methods below.
Other ways to convert GIF to WebP
- gif2webp (Google): run
gif2webp animation.gif -o animation.webpfrom the WebP tools. It converts a GIF to WebP and offers -lossy and -mixed options, where mixed picks lossy or lossless for each frame. - ImageMagick (command line): run
magick animation.gif -coalesce animation.webp. The -coalesce option fully defines the look of each frame of a GIF animation, and your ImageMagick needs WebP support, so check its format list.
Problems with GIF files
- The WebP is a single picture: that is how this page works. Use one of the command-line methods above to try for the motion.
- The first frame is not what you expected: this page converts only the first frame, so pick the frame in an editor and save it as its own picture first.
- Soft edges look jagged: GIF transparency is on or off, so a soft shadow can't be partly see-through. The WebP can't add that back.
- Colors look blotchy: the 256-color palette is the cause. GIMP also limits a GIF export to 256 colors, which alters gradients.
- Frames overlap or leave trails after an edit: frame disposal sets how later images cover earlier ones. Pick combine or replace in GIMP to match the animation.
- An old browser balks at the WebP: a browser from some years back can show still WebP yet lack animation support. Convert the first frame to PNG or JPG if a viewer will not open it.
- A comment you wrote in the GIF is gone: GIMP drops a GIF comment with characters outside seven-bit ASCII, and this page drops metadata altogether.
Frequently Asked Questions
Everything you need to know about our converter
Does GIF to WebP keep my animation?
Why is my WebP a different picture than the animation I see?
Is the transparent background kept?
What quality is the WebP saved at?
Will the WebP be smaller than the GIF?
Does converting remove the dithering in my GIF?
Are GIF comments and other data copied?
Can I use the WebP where a GIF is expected?
Is a batch of GIFs possible?
Which browsers show the WebP?
Browse All Tools
Browse by category instead of one giant mixed list.
Convert Tools
Convert image, audio, video, document, and data files directly in your browser.