Skip to content

GIF hosting by Sirv. Resize, Crop and Compress GIFs Effortlessly

By , Head of MarketingUpdated

Open this page in a new chat

Short answer

Upload your GIF to Sirv once and share or embed its URL. Add w or h to the URL to resize it, and gif.lossy (0 to 100) to make the file smaller. Browsers that support WebP get an animated WebP automatically, which is usually much smaller than the GIF. For long or large animations, use MP4 video instead.

After reading this you will know

  • How to upload and share a GIF from Sirv
  • How to resize and compress a GIF by URL
  • When a video is a better choice than a GIF
Multicolored circles - example animated GIF

Sirv can host your existing animated GIFs and optimize them for fast delivery. Upload the original GIF once, then resize it with w or h in the URL and reduce the file size with gif.lossy.

Use Sirv GIF hosting to:

  • Publish an animated GIF from a fast CDN.
  • Resize a GIF for a blog, article, email or social preview.
  • Reduce GIF file size with lossy compression.
  • Serve WebP automatically to browsers that support it.

To create a GIF from a 360 spin, see animated GIFs from spins. For social media posts, MP4 video is often more reliable than GIF.

Upload your GIFs to your Sirv account directly or via FTP / S3. If you don’t have an account yet, create your account now.

Resize a GIF simply by adding the new width or height to the URL. Add w (width) and/or h (height) to the end of the URL to immediately resize the GIF.

This GIF has been resized to 300px width:

https://demo.sirv.com/example.gif?w=300

GIF resized to 300px width

This GIF has been resized to 175px height:

https://demo.sirv.com/example.gif?h=175

GIF resized to 175px height

Crop a GIF by applying ch (crop height) or/and cw (crop width) to the URL. The crop location can be adjusted with cx and cy. Refer to the crop documentation for all options.

This GIF has been resized to 300px width and 100px height:

https://demo.sirv.com/example.gif?w=300&ch=100&cy=center

Cropped GIF to 100px height

Control the quality and file size of your GIF with lossy compression. Sirv applies 5% compression by default, to reduce the file size while maintaining good clarity.

Set the gif.lossy option to increase compression up to 100 (smallest file size) or 0 (highest quality). This example applies 80% compression:

https://demo.sirv.com/example.gif?gif.lossy=80

10% Compression

Animated GIF with 10% lossy compression

GIF: 546 KB WebP: 102 KB

40% Compression

Animated GIF with 40% lossy compression

GIF: 437 KB WebP: 102 KB

80% Compression

Animated GIF with 80% lossy compression

GIF: 384 KB WebP: 102 KB

GIFs are served as animated WebP to browsers that support it.

In these examples the WebP is 73 to 81% smaller than the GIF (measured 19 Nov 2026), and the quality is better.

gif.lossy only changes files served as GIF, so the WebP stays the same size at every setting.

See GIF format for more on GIF delivery.

When should I use a video instead of a GIF?

Section titled “When should I use a video instead of a GIF?”
  • Use video for long animations, large sizes or smooth motion. An MP4 is often a fraction of the size of the same GIF.
  • Resize GIFs to the size they show on the page. Don’t serve a huge GIF into a small slot.
  • Use gif.lossy carefully. Higher values make smaller files but can add visible artifacts.
  • Keep the original GIF in Sirv, so you can make smaller versions without editing it again.
  • Add useful alt text when you embed a GIF as an image.

Sign up with Sirv and start serving lightweight GIFs today.

Back to top