GameParticles
Images

WebP vs PNG vs JPG: What WebP Is and When to Use It

What is WebP and how does it compare? WebP vs PNG vs JPG on file size, transparency and browser support, plus AVIF vs WebP and how to convert WebP to JPG.

Updated

WebP is an image format from Google that does the jobs of both JPG and PNG in smaller files. It has a lossy mode for photos, a lossless mode for graphics, and supports transparency and animation in both. Every current browser displays it, so for images on a website WebP is usually the best default, with JPG and PNG kept for compatibility with older software.

What is WebP?

Google announced WebP in 2010. The lossy mode is built on the same technology as the VP8 video codec: each image is compressed the way a single video frame would be. Lossless compression and transparency were added shortly afterwards, followed by animation.

That gives WebP an unusual range. One format covers:

  • Lossy photos, where it competes with JPG.
  • Lossless graphics, where it competes with PNG.
  • Lossy images with a transparent background, which neither JPG nor PNG can do.
  • Animation, where it competes with GIF.

The file extension is .webp and the MIME type is image/webp.

WebP vs PNG vs JPG compared

JPGPNGWebP
CompressionLossyLosslessLossy or lossless
TransparencyNoYesYes, in both modes
AnimationNoNo (APNG extension only)Yes
Photo file sizeSmallVery largeSmallest of the three
Graphics file sizePoor quality on sharp edgesSmall to mediumSmaller than PNG
Browser supportUniversalUniversalAll current browsers
Support in other softwareUniversalUniversalGood, with gaps in older apps

How much smaller is WebP?

Google's own published comparisons put lossy WebP at 25 to 34 percent smaller than JPG at equivalent quality, and lossless WebP at about 26 percent smaller than PNG. Results vary by image, so treat those as typical figures and not guarantees.

The largest savings come from a case the averages hide. A product photo with a transparent background has to be a PNG if you are limited to the older formats, and photographic PNGs are huge. The same image as lossy WebP with transparency is often a small fraction of the size, with no visible difference.

Where WebP gains little: an already well-compressed JPG at a low quality setting, and very small icons where the file is mostly overhead.

WebP vs JPG

Choose WebP over JPG for photos on a website. The files are smaller at the same visual quality, and the artifacts at low quality tend to look like soft blur where JPG shows hard-edged blocks.

Keep JPG when the image is leaving the browser: email attachments, files for print shops, uploads to forms that list accepted types, and anything a non-technical recipient needs to open without trouble. JPG is also what cameras produce, and converting a JPG to lossy WebP is a second lossy step, so convert from the best original you have.

WebP vs PNG

Choose WebP over PNG for delivery on the web. Lossless WebP stores identical pixels in less space. If a small amount of loss is acceptable, as it usually is for illustrations and photos with transparency, lossy WebP is dramatically smaller.

Keep PNG as the working and archive format. It is supported by every editor, it is always lossless, and there is no setting to get wrong. A common pattern is to keep PNG masters and export WebP for the site. The two-way comparison of the older formats is in JPEG vs PNG.

AVIF vs WebP

AVIF is a newer format based on the AV1 video codec. Compared with WebP it usually produces smaller files at the same quality, holds up better at very low bitrates, and supports HDR and more than 8 bits per channel.

The trade-offs are encoding speed, which is noticeably slower, and software support outside browsers, which still trails WebP. In browsers, AVIF arrived in Chrome in 2020, Firefox in 2021, Safari in 2022 and Edge in early 2024, so current versions of all four display it.

A reasonable policy: AVIF where your pipeline supports it, WebP as the standard, JPG or PNG as the last fallback.

Browser support

WebP has been in Chrome since the format's early years. Edge added it in 2018, Firefox in early 2019, and Safari in version 14 in 2020. Any browser updated since then displays WebP, which covers practically all web traffic today.

If you must serve very old browsers, the picture element lets the browser choose. List an AVIF source, then a WebP source, then a plain img with a JPG. The browser takes the first type it understands, and anything that understands none of them falls back to the img.

The gaps are outside the browser. Some older desktop applications, content management systems, email clients and upload forms still reject .webp. That is the main reason people need to convert back.

How to convert to WebP

The WebP Converter turns PNG, JPG, GIF, BMP and AVIF files into WebP. Drop in one image or a batch, set the quality slider, and each file shows its new size and the saving against the original. Download files individually or all together as a ZIP. Transparency in PNG sources is kept. An animated GIF is converted as a single still frame, not as an animation.

Quality around 80 is a sound starting point for photos. Go to 90 or higher for screenshots and artwork with sharp edges, where artifacts show first. More on picking the number is in how to compress images without losing quality.

How to convert WebP to JPG

The WebP Converter only outputs WebP, so it is not the tool for the reverse trip. Use the Image Compressor instead:

  1. Drop the .webp file, or a batch of them, into the Image Compressor.
  2. Set the output format to JPEG. Choose PNG instead if the image has transparency you need to keep.
  3. Set quality to 85 to 90. The WebP has already been through one lossy step, so a higher setting avoids stacking visible artifacts.
  4. Check the before and after preview, then download the file or the ZIP.

JPG has no transparency, so transparent areas in the WebP are filled with white.

Without any extra tool, Preview on macOS opens WebP files and exports them as JPEG from the File menu, and current versions of Paint on Windows can open a WebP and save it as JPEG. To stop a browser handing you WebP in the first place, there is no dependable setting. Converting after download is the practical route.

Which format to use

  • Photos on a website: WebP, or AVIF with a WebP fallback.
  • Transparent images on a website: WebP.
  • Logos and icons: SVG first, as explained in SVG vs PNG, otherwise WebP or PNG.
  • Files to email, print or upload elsewhere: JPG for photos, PNG for graphics.
  • Master copies for editing: PNG or the original camera file.

For formats beyond these three, including GIF, HEIC and TIFF, see image file formats.

Try it

Drop a few JPG and PNG files into the WebP Converter, leave the quality at its default of 85, and read the saving shown on each card. Lower the slider until you can see a difference, then step back up.

Tools in this guide

Frequently asked questions

What is a WebP file?

WebP is an image format released by Google in 2010 for use on the web. It supports lossy and lossless compression, transparency and animation in one format, and usually produces smaller files than JPG or PNG at the same visual quality.

How do I convert WebP to JPG?

Open the WebP in an image tool that can export JPEG and save it in that format. In the Image Compressor, drop the file in, choose JPEG as the output and download. Preview on macOS and Paint on current Windows versions can also export WebP as JPG.

Is WebP better than PNG?

For web delivery, usually. Lossless WebP stores the same pixels in a smaller file, and lossy WebP with transparency can be far smaller than a PNG. PNG remains the safer choice for editing, archiving and software that does not read WebP.

Is AVIF better than WebP?

AVIF usually compresses further than WebP, especially for photos at lower quality settings, and it supports HDR and higher bit depths. WebP encodes faster and is accepted by more software. Many sites serve AVIF first with WebP or JPG as a fallback.

More images guides

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵