← All guides

How to Convert JPG to WebP (For Smaller Web Images)

jpgwebpimagesconversionweb

If you’re hosting images on a website, in an app, or anywhere bandwidth and storage costs matter, WebP is your friend. It produces files that are 25-35% smaller than JPG at the same visual quality. For a site serving thousands of images per day, that’s a real difference in page load speed, hosting bills, and user experience.

Here’s how to convert and what to think about.

The fastest way: convert in your browser

Use the JPG to WebP converter. Drop in your JPG files, pick a quality level, click convert.

The flow:

  1. Open the JPG to WebP tool
  2. Drag in one or many JPG files
  3. Choose quality (default is 0.85, which is the sweet spot)
  4. Click convert
  5. Download the WebP files

Conversion runs in your browser. The file never gets uploaded.

For PNG input, there’s a separate tool: PNG to WebP. Same workflow, optimized for graphics rather than photos.

Why WebP files are smaller

WebP uses more modern compression algorithms than JPG. The key wins:

1. Better predictive encoding. WebP looks at how each block of pixels relates to neighboring blocks and stores just the differences. JPG encodes each block independently, missing this efficiency.

2. More flexible block sizes. JPG uses fixed 8×8 pixel blocks. WebP can use larger blocks for areas of similar color (like a sky) and smaller blocks for detailed areas (like faces). Better fit = smaller files.

3. Better entropy coding. The bit-level encoding of WebP wastes fewer bits than JPG’s Huffman tables.

The net result: at the same visual quality, WebP files are 25-35% smaller. For collections of images, this adds up fast.

What quality should I pick?

The quality slider (typically 0.0 to 1.0, sometimes 0-100) trades off file size against visual quality:

  • 0.95: visually indistinguishable from the source JPG; ~20% smaller files
  • 0.85: still indistinguishable in most cases; ~30% smaller. The default sweet spot.
  • 0.75: very minor softening visible only on close zoom; ~40% smaller
  • 0.65: clear softening, still acceptable for thumbnails; ~50% smaller
  • 0.50: visible compression artifacts; only use when file size is critical

For web use cases, 0.80-0.85 is almost always right. The size savings are substantial and quality is preserved.

The original JPG was already lossy-compressed; re-encoding to WebP at very high quality (like 0.95) doesn’t recover what the JPG already lost. So picking 0.95 over 0.85 mostly just makes the WebP bigger without quality benefit.

When converting to WebP is worth it

For your own website — significant page load improvements. Most websites are dominated by image size; cutting images by 30% means faster pages, better Core Web Vitals scores, better SEO, lower bounce rates.

For app icons and assets — smaller download size = better app store conversion, faster install on slow networks.

For storage-heavy archives — if you’re storing thousands of images you don’t need to view often (archive of old projects, photo library backup), WebP saves storage costs.

For email newsletters — most modern email clients support WebP. Smaller files = faster open, especially on mobile.

For social media uploads where you control the destination — some platforms support WebP, most re-encode anyway. Mixed value.

When converting to WebP is NOT worth it

For sharing with random people — older email clients, older phones, some printing services, older Office apps all may not handle WebP. If the recipient isn’t a modern browser, stick with JPG.

For files going to print — printers want TIFF or high-quality JPG. WebP isn’t a print format.

For files in design workflows — many designers’ tools (older Photoshop, older Sketch, older Affinity) don’t open WebP natively. Stick with JPG or PNG until everyone’s on modern versions.

For tiny images already — if your JPG is already 30 KB, the WebP is maybe 21 KB. The savings aren’t worth the compatibility hit for tiny images.

For one-off conversions where the destination is unknown — when in doubt, stick with JPG.

Browser support in 2026

WebP support is essentially universal in browsers:

  • Chrome: full support since 2010
  • Firefox: full support since 2019
  • Safari: full support since 2020 (macOS Big Sur, iOS 14)
  • Edge: full support since 2018

So for “image on a website,” WebP just works. The compatibility issues are with non-browser environments — email clients, print pipelines, older desktop apps.

Server setup considerations

If you’re hosting WebP on your own site, two practical considerations:

1. Content-Type headers. Your web server needs to serve WebP files with Content-Type: image/webp. Most modern servers (Nginx, Apache, Cloudflare, Netlify, Cloudflare Workers) do this automatically. Static hosts that handle it: Cloudflare Pages, Netlify, Vercel.

2. Fallback for older browsers. If you care about the ~0.5% of users on browsers without WebP support, serve both WebP and JPG via the <picture> element:

<picture>
  <source srcset="hero.webp" type="image/webp">
  <img src="hero.jpg" alt="...">
</picture>

For most sites, this fallback isn’t worth the effort — WebP support is too universal to bother. Just serve WebP directly.

Batch conversion

The JPG to WebP tool handles multiple files at once. Drop in 20 JPGs, get back 20 WebPs. Useful for converting an entire directory of website images in one pass.

For very large batches (hundreds of files), browsers may slow down. Convert in chunks of ~20-50 at a time.

For automated workflows (converting on upload, processing a CMS’s image pipeline), you’d write a script with the cwebp command-line tool (free, from Google). The browser tool is for one-off batch conversion.

PNG to WebP — same idea for graphics

Photos compress well to JPG, so JPG-to-WebP is the most common conversion.

For graphics with transparency (logos, icons, illustrations), PNG is the typical source format. Convert with PNG to WebP — typically 25% smaller, transparency preserved.

WebP can be either lossy (like JPG) or lossless (like PNG). The PNG to WebP converter defaults to lossless mode to preserve crisp edges; the JPG to WebP defaults to lossy mode for efficiency.

Animated WebP

WebP supports animation, replacing animated GIFs at much smaller sizes. We don’t have a direct GIF-to-WebP converter (animated conversion is more complex), but tools like ezgif.com or command-line gif2webp handle this. Animated WebPs are typically 30-60% smaller than the equivalent GIF.

For static images converted from JPG to WebP, just static WebP is what you get.

Privacy

The JPG to WebP converter runs entirely in your browser:

  • The JPG is decoded with the browser’s built-in JPG support
  • Re-encoded as WebP in JavaScript
  • Output is built in browser memory and offered as a download

Nothing about your images touches a server. For commercial photos, design work, personal images, or anything sensitive, this matters.

TL;DR

  • JPG → WebP for ~25-35% smaller files at same visual quality → JPG to WebP
  • Quality 0.85 is the sweet spot
  • Best for: your own website, app assets, archives
  • Worse for: sharing with non-browser destinations (email, print, older Office)
  • PNG → WebP for graphics: PNG to WebP
  • Browser support is universal in 2026; fallback rarely needed
  • Browser-based conversion, no upload