Skip to main content

What is the WebP file format?

You may have noticed an online image format appearing in your browser lately, especially if you have a blog or like to save images you find online. It’s called WebP, a format that’s been around for a while but is now starting to be adopted more broadly by websites around the world. If you’re curious, we’ve got the answers. Our FAQ covers how it works and what you should know about using it!

What is the WebP file format?

WebP is an image format designed by Google in 2010, created specifically for online images on websites and targeted at web developers. WebP was built to be a lighter, speedier file format that could help save precious space on servers and make it easier to support high-quality images without causing loading issues in busy browsers. It has a number of advantages including the use of predictive code to create image files and offers both lossless (focused on preserving detail) and lossy (focused on saving space with smaller file sizes) compression support.

Using Google Photos album.
Image used with permission by copyright holder

What is predictive coding?

This is a very effective method of creating or converting images. It uses an algorithm that analyzes pixels and predicts what nearby pixels should be like — their colors and other important information. That prediction is based on an analysis of many different web images and how they are likely to behave. It’s a little like the dynamic upscaling DLSS and AMD’s FSR that we’ve seen from the major graphics card manufacturers.

Recommended Videos

The advantage of using predictive coding for images is that pixel information only needs to be included if it does not meet the prediction. With fairly accurate predictive modeling, this can save a significant amount of space on image files.

What browsers support WebP?

WebP is supported by most major browsers. Currently, it works with Chrome, Safari, Firefox, Edge, and Opera, along with a wide variety of extensions and tools. As the popularity of WebP has started to grow in recent years, more support continues to be added.

Getty images on Google.
Google

What advantages does WebP have over formats like PNG or JPEG?

  • Lossless images using WebP save space. They are about 26% smaller than PNGs while still allowing for transparency. That means that websites, especially those with lots of images, can load faster for users and may even improve search engine rankings.
  • Likewise, lossy images also save space with WebP. WebP lossy images are between 25% to 34% smaller than similar JPEG images. They can also perform better than JPEGs when it comes to scaling images down without serious sacrifices in appearance.
  • Google has made the full source code available for WebP and included tools to make using the format particularly easy for developers.
  • WebP can also be used to create animated images the same way that GIFs can, with even greater potential for better compression than static images.

Are there any disadvantages to using WebP?

  • WebP is made for online images. That means it’s not really compatible with photo apps or other photography software. Photographers will generally want to use higher-quality lossless formats that they know will work with their preferred platforms.
  • While many popular browsers support WebP, others do not. Browsers like Tor or Internet Explorer struggle to support these images.
  • While WebP may be able to help make animated files smaller than GIFs, some have complained that decoding the animated image takes much longer than decoding a GIF.
  • Some online development tools don’t yet support WebP. The most notable example is WordPress. Those working with software like this can’t rely on WebP images at this time, although hopefully, support will continue to increase.

What software can open WebP files?

There are plenty of options to open WebP files. The browsers we mentioned, like Chrome, Firefox, Safari, and Edge, will natively open WebP files for you, so you can always work with them in a browser. Online image editing tools, like ImageMagick or Pixlr, can also handle them. Adobe Photoshop and Paintshop Pro can deal with WebP, too.

Saving a WebP file in Pixlr.
Image used with permission by copyright holder

Can I convert WebP files?

Yes, easily. The editing tools we mentioned above, like Photoshop, ImageMagick, and many others, will give you an option to convert your WebP files into something like JPEG or PNG. Look for the Save As option when you are ready to convert, and you should see options to change the format before you save the image. This trick also works on native apps like Preview on MacOS and Paint on Windows. For developers, Google has a precompiled cwebp conversion tool that can be added to applications.

Are WebP files safe to use?

WebP files are as safe as JPEGs and other image formats. Links to image files can still lead you to malware, and image files may be implanted with viruses. Only download WebP images from a trusted source and you should be fine.

Topics
Tyler Lacoma
Former Digital Trends Contributor
If it can be streamed, voice-activated, made better with an app, or beaten by mashing buttons, Tyler's into it. When he's not…
At basically $105, the Ryzen 5 7600X is the best gaming CPU to buy right now
The Ryzen 5 7600X sitting among thermal paste and RAM.

I don't usually get my hopes up for Black Friday CPU deals, but I found one that's just too good to pass up. Right now, you can get the Ryzen 5 7600X -- still one of the best processors for value-focused gaming -- for basically $105. No, that's not the actual price listed on Newegg where you'll find the deal, but there's a lot going on with this sale.

For starters, the CPU itself is marked down by 24%, bringing the $299 list price down to $225. Not a great deal for a last-gen chip. However, you can save an additional $30 by using the promo code BFEDY2A33, and more importantly, you'll get a free Kingston NV3 1TB hard drive with the order. That's a PCIe 4.0 SSD that normally costs $90.

Read more
This Asus laptop with Copilot+ is $350 off at Best Buy
Asus Vivobook S 15 CoPilot+ front view showing display and keyboard.

You can do quite a bit of gaming on the go these days, thanks to all the handheld consoles and gaming laptops that are on the market. Regarding the latter, we’re always on the lookout for top discounts on the gaming gear we all want to own, which leads us to this wonderful discovery:

For a limited time, when you purchase the Asus Vivobook S 15 with Copilot+ at Best Buy, you’ll pay $550. At full price, this model sells for $900. We tested this PC earlier this year, and our reviewer said the following: “The Asus Vivobook S15 is the best large-display Copilot+ laptop so far in an old-school form factor.”

Read more
This gorgeous Mac mini hub exacerbates the power button placement problem
M4 Mac mini with Satechi hub on a desk.

Satechi, known for its high-quality tech accessories, is updating its Mac mini hub for the new M4 model. Like previous hubs, it allows Mac mini owners to expand their storage and ports while preserving airflow, wireless signal, and performance. It looks awesome, but this time, the design highlights the problematic nature of the new Mac mini's placement of its power button.

With previous Mac mini models, the power button was at the back, making it easily accessible even when it was in a Satechi hub. The new button placement on the bottom of the PC, however, may prove even more annoying for anyone who wants to buy this accessory.

Read more