Why Websites Use WebP, and Why You Convert It
WebP is an image format created by Google for the web. At a similar visual quality, a WebP file is usually noticeably smaller than a JPG, and Google's own tests report savings of roughly a quarter to a third. Smaller images make pages load faster, so many sites and content networks serve WebP or AVIF to browsers that support them. When you save such an image, you often end up with a .webp or .avif file, even if the website showed it as a normal picture.
The problem is what happens next. Some desktop programs, print services, upload forms, video editors and older phones do not open WebP or AVIF, or they ignore its transparency. Converting the file to JPG or PNG solves this, and this page does it inside your browser without sending the image anywhere.
JPG, PNG, WebP, ICO, SVG and Base64 Compared
| Format | Compression | Transparency | Best for |
|---|---|---|---|
| JPG | Lossy, quality adjustable | No (a background color is used) | Photos, thumbnails and uploads that must work everywhere. |
| PNG | Lossless | Yes | Logos, cutouts, screenshots and graphics with sharp edges. |
| WebP | Lossy or lossless | Yes | Small images for your own website. |
| ICO | PNG images inside an ICO file | Yes | Website and desktop icons (favicon). |
| SVG (wrapper) | Embeds a PNG picture | Yes | Places that accept only the SVG file type. It is not a vector. |
| Base64 text | Text version of an image (about 33% larger) | Depends on the type inside | Tiny icons placed directly in HTML or CSS. |
Does Converting Change the Quality?
It depends on the direction. A lossy WebP that you save as PNG does not lose more detail, because PNG is lossless, but PNG cannot bring back detail that the WebP already discarded. The PNG will usually be larger than the original. Converting to JPG compresses the picture again, so a very low quality setting will show blocks and blurry edges, especially around text. For photos, a quality of 85 to 92 is a good balance, and for text or logos PNG is the safer choice.
Each time you save a lossy format again, a little more quality is lost. Keep your original file, convert from it, and avoid converting the same JPG back and forth.
Resizing: Cover, Contain and Stretch
When the new size has a different shape from your picture, you have to decide what happens at the edges. The tool offers three choices:
- Cover fills the whole frame and crops whatever sticks out. It is the best choice for thumbnails and social posts.
- Contain shows the whole picture and adds margins. The margins are transparent in PNG and WebP, and use your background color in JPG.
- Stretch forces the picture to the new size and distorts it. Use it only when you need an exact size and do not mind the distortion.
The size presets match common needs: 1280 x 720 for a YouTube thumbnail, 1080 x 1080 for a square post, and 1080 x 1920 for Reels and Shorts. After resizing a thumbnail, check how it looks in the feed with the YouTube Thumbnail & Title Preview Tool, and check where the app buttons cover a vertical video with the Reels, Shorts & TikTok Safe Zone Checker. Making an image larger than the original cannot add detail, so the tool warns you when you do that.
Transparency and the JPG Background
JPG cannot store transparency. If your WebP or PNG has a see-through background and you save it as JPG, those areas need a color. Many converters fill them with black, which is often not what you want. Here you choose the color first: white, dark, warm sand, or any color from the picker. If you need to keep the transparency, choose PNG or WebP instead.
Making a Favicon (.ico)
A favicon is the small icon in a browser tab. The ICO option builds a real .ico file with four sizes inside it: 16, 32, 48 and 64 pixels, so the browser or the system can pick the one it needs. Each size is stored as a PNG inside the ICO container, which current browsers and Windows support. Start from a square image of at least 256 x 256 pixels with a simple shape, because details disappear at 16 pixels. If your logo is not square, choose Contain so that it is not cropped. If your site is on a blogging platform, check where it asks for the icon, and whether it prefers a PNG file.
Base64 Data URIs: When to Use Them
A Base64 data URI turns an image into a long piece of text that you can paste straight into HTML, CSS or an email template, with no separate file. It is handy for very small images such as icons, because it saves one request. For larger pictures it is a poor choice: the text is about a third bigger than the file, it cannot be cached on its own, and it makes your page code heavy. The tool gives you three ready snippets: the plain data URI, an <img> tag and a CSS background-image line.
Batch Conversion and ZIP
Select up to 30 images at once, or drop them together. The same settings are applied to every file, and you can preview any of them from the list. Press Download all as ZIP to convert them one after another and get a single ZIP file with the results. Because everything happens in your browser, the limit is the memory of your device, so convert very large photos in smaller groups. Files that cannot be read, for example HEIC photos, are skipped and listed in the message.
Privacy and Metadata
The images are opened and redrawn on an HTML5 canvas in your own browser, and nothing is uploaded to a server. Because the picture is redrawn, camera metadata such as EXIF, which can include the location where a photo was taken, is normally not copied to the new file. If privacy is the main goal, use the EXIF Metadata Viewer & Photo GPS Stripper, which shows you what a photo contains before you remove it. To check the colors or the text contrast of a converted image, use the Image Color Palette & Contrast Extractor.
Troubleshooting
- The image does not open. The browser may not support that type, for example HEIC, or the file may be damaged. Try another browser or convert it on your phone first.
- I chose WebP and got PNG. Some browsers cannot save WebP. The tool tells you, and names the file correctly.
- The output is smaller than expected. Check the size setting and the fit. Cover crops, and the preset sizes can be smaller than your original.
- A very large photo was scaled down. Browsers limit the size of a canvas, so the tool keeps the result under about 16 megapixels and says so.
- Colors look different. Check that the color grade is set to Original colors.
How We Verify This Tool
We test the conversions with images that have a known pattern: a four-color image to check rotation and flipping, a wide image to check cover and contain, and a transparent PNG to check the background color. The ICO file is opened again with an independent image library to confirm that it contains four valid icons, and the ZIP file is checked with a standard ZIP reader. Browsers differ in what they can save, so the tool reads the real type of the file it created and names it accordingly.
Frequently Asked Questions
How do I convert a WebP image to JPG?
Drop the WebP file into the tool, choose JPG as the output format, pick a background color for any transparent areas, and press Download. For several files, select them together and use Download all as ZIP.
Does converting WebP to PNG improve the quality?
No. PNG is lossless, so converting does not lose any more detail and it keeps transparency, but it cannot bring back detail that a lossy WebP already removed. The PNG file is usually larger than the WebP.
Can I convert many images at once?
Yes. Select up to 30 images together. The same settings are applied to all of them, and you can download the results as one ZIP file. Everything happens in your browser, so very large batches depend on your device memory.
How do I make a favicon (.ico) from an image?
Choose ICO as the output format. The tool creates a real .ico file that contains 16, 32, 48 and 64 pixel versions of your image. Start from a square image of at least 256 pixels and use the contain fit if you do not want it cropped.
Is the SVG output a real vector image?
No. The SVG option wraps your picture inside an SVG file, so it is still made of pixels. It is useful when a system only accepts the SVG file type. Turning a photo into true vector shapes needs a tracing tool.
Are my images uploaded to a server?
No. Your images are read and converted in your browser using HTML5 Canvas. Nothing is uploaded.
Why did I get a PNG when I chose WebP?
Some browsers, including some versions of Safari, cannot save images as WebP. When that happens the tool saves a PNG instead and tells you, so the file name and type always match.
More free tools: see all utilities on the Decoded Buyer hub. This tool is free and does not collect your images. Only convert images you have the right to use.