How to Convert PNG to WebP — Lossless WebP Is the Natural Fit

Quick answer — how to convert PNG to WebP: Use the free browser converter — no upload, no software. Choose Lossless mode for logos, icons, screenshots, and anything with text (pixel-perfect output, ~26% smaller than PNG). Choose Lossy Q82 for photos that were saved as PNG (up to 80% smaller, no visible difference). Transparency is preserved in both modes. If you're using the command line, the commands are in Method 2 below. Need JPEG instead? Use our PNG to JPEG converter — same workflow, free, no upload. JPEG is the right choice for email, print, and social sharing.

PNG and WebP share something JPG doesn't: both support lossless compression and a proper alpha channel for transparency. That's what makes PNG-to-WebP different from JPG-to-WebP — you actually have a choice between two modes, and that choice matters. Pick the wrong one and you either waste file size or degrade quality for no reason.

This guide covers how transparency is handled, when lossy WebP beats lossless even for PNG sources, cwebp CLI commands with the right flags, and how to verify your transparency came through correctly after converting.

Convert PNG to WebP — Free, No Upload

Converts in your browser. Transparency is preserved automatically. Batch mode for multiple files.

The Key Difference: PNG is Lossless, JPG is Not

When people convert JPG to WebP, the source file already has compression artifacts baked in — it is already lossy. Converting to WebP just swaps one lossy codec for a more efficient one.

PNG is different. PNG uses lossless DEFLATE compression — every pixel is stored exactly as it was encoded, with zero quality loss. That means when you convert a PNG to WebP, you have a real decision to make:

  • Lossless WebP: Preserves every pixel exactly, like PNG. Average file size is 26% smaller than PNG for the same image. Zero quality loss. The natural direct replacement for PNG.
  • Lossy WebP: Compresses more aggressively using the VP8 codec. Files are much smaller than lossless WebP, but some pixel data is discarded. Appropriate when the PNG contains photographic content where perfect pixel accuracy is not needed.

The choice depends on what is in the PNG, not just the fact that it is a PNG file. A PNG of a logo needs lossless. A PNG of a photograph (which was saved as PNG to avoid JPG artifacts) can use lossy WebP at quality 82–85 and look identical to the source.

Transparency: WebP Handles Alpha Channel Perfectly

One of the most important reasons people use PNG is its support for transparency — the alpha channel. Logos on transparent backgrounds, product cutouts, icons, UI elements with see-through areas: all of these rely on the alpha channel.

WebP supports alpha channel in both lossless and lossy modes:

  • Lossless WebP with alpha: The alpha channel is stored perfectly — every transparent and semi-transparent pixel is pixel-accurate. Identical to PNG's alpha channel behavior.
  • Lossy WebP with alpha: The RGB color channels are compressed with lossy encoding, but the alpha channel itself is compressed losslessly. This is WebP's unique hybrid mode — you get smaller file sizes while the transparency edges remain crisp and exact.

In practice, lossy WebP with alpha is excellent for product photos on transparent backgrounds (e-commerce cutouts) or complex illustrations with transparency. The alpha edges are perfect; the color compression is imperceptible at quality 82+. If your product photo still has a background, use our free AI background remover to create a clean transparent PNG first — no upload, runs entirely in-browser.

What about IE and old Safari? Internet Explorer does not support WebP at all. If you need transparency and still support IE, keep PNG. For all modern browsers (Chrome, Firefox, Edge, Safari 14+), WebP alpha works perfectly.

Quality and Mode Decision Guide

Logo / Icon / UI

Use lossless WebP. Flat colors and text show compression artifacts clearly. Pixel-perfect output required. 20–30% smaller than source PNG.

Screenshot / Mockup

Use lossless WebP. Text readability and UI sharpness must be exact. Lossy mode makes text look blurry at 100% zoom.

Photo saved as PNG

Use lossy WebP Q82–85. The PNG was just an inefficient container for photographic data. Lossy WebP will be 60–80% smaller with no visible difference.

Product cutout (transparent)

Use lossy WebP with alpha. RGB channel compressed; alpha channel stays lossless. Smaller file, perfect edges.

Illustration / Artwork

Depends on complexity. Flat-color illustrations need lossless. Complex painted illustrations with gradients can use lossy Q85–90.

Method 1: Convertlo — Free Browser Tool, Transparency Safe

1
Convertlo — Browser-Based, Preserves Alpha, Batch Ready
Recommended
  1. Open convertlo.pro/png-to-webp.html in your browser.
  2. Drag and drop your PNG files — or click Browse Files. Transparent PNGs are fully supported.
  3. Select your output mode: Lossy (with quality slider) or Lossless (pixel-perfect).
  4. Click Convert to WebP. The conversion runs entirely in your browser — your files are never uploaded.
  5. Download your WebP files. Transparent areas are preserved in the output.

Transparency check: After downloading, open the WebP in Chrome or Firefox and place it over a colored background. If the transparent areas show the background color through, the alpha channel was preserved correctly.

Method 2: cWebP CLI — Lossless and Lossy Commands

2
cWebP — Google's Official CLI, Full Alpha Support
Command Line
  1. Install cwebp: brew install webp (macOS) or sudo apt install webp (Linux).
  2. For lossless conversion (logos, icons, screenshots): use the -lossless flag.
  3. For lossy conversion of photographic PNGs: use -q 82 or your desired quality.
  4. For batch conversion: use the bash for loop below.
# Lossless PNG to WebP (preserves every pixel, ~26% smaller)
cwebp -lossless input.png -o output.webp

# Lossy PNG to WebP (photographic PNGs — much smaller file)
cwebp -q 82 input.png -o output.webp

# Lossy with lossless alpha (product cutouts — small file, perfect edges)
cwebp -q 82 -alpha_q 100 input.png -o output.webp

# Batch lossless: all PNGs in current folder
for f in *.png; do
  cwebp -lossless "$f" -o "${f%.png}.webp"
done

# Batch lossy for photographic PNGs
for f in *.png; do
  cwebp -q 82 "$f" -o "${f%.png}.webp"
done

The -alpha_q flag (0–100) controls alpha channel compression quality separately from the main image. At -alpha_q 100 the alpha is losslessly compressed. Lowering it compresses the alpha channel more aggressively — useful for semi-transparent shadows where perfect accuracy is not needed.

One more flag worth knowing: -exact. By default, cwebp modifies the RGB values of fully-transparent pixels (alpha=0) during lossy encoding — it doesn't matter visually, but it can break round-trip fidelity if you convert back to PNG later. Adding -exact tells cwebp to preserve the RGB data under transparent pixels exactly: cwebp -q 82 -exact input.png -o output.webp. Most people don't need it, but if you're building a pipeline that converts back and forth, it's the right habit.

Understanding -alpha_q: Fine-Tuning Transparency Compression

When you run cwebp -q 82, that quality number controls the RGB colour channels only. The alpha channel — the transparency layer — is compressed independently, controlled by a separate flag: -alpha_q.

Most developers never need to change it. The default is -alpha_q 100 (lossless alpha), which is the right choice for logos and product cutouts. But for images with soft shadows, gradients, or decorative blur, lowering -alpha_q can shave another 5–20% off the file with no visible difference. Here is everything you need to know to choose the right value.

What alpha_q Actually Controls

  • -alpha_q 100 — Alpha channel is stored losslessly. Every transparency value (0–255) is preserved exactly. This is the default for -q mode if you omit the flag.
  • -alpha_q 0 — Alpha channel is discarded entirely. All pixels become fully opaque. Use only when you intentionally want to flatten transparency.
  • -alpha_q 1–99 — Lossy alpha at that quality level. Semi-transparent pixels lose some precision — a pixel encoded at alpha=200 might decode at alpha=197 or alpha=203. The effect is invisible for soft gradients but can produce fringing on hard edges.

Recommended Values by Use Case

Use Case alpha_q Full Command Why
Logo, icon (hard edges) 100 -q 85 -alpha_q 100 Any imprecision on sharp edges creates visible fringing on coloured backgrounds
Product cutout (soft edges, hair, fur) 90–100 -q 82 -alpha_q 90 Near-lossless keeps fine edge detail; slight size saving vs 100
Semi-transparent UI element 80–90 -q 82 -alpha_q 85 Moderate gradient — high accuracy still needed to avoid visible banding
Soft shadow or glow 60–80 -q 82 -alpha_q 70 Gradual fade tolerates lossy compression well — imperceptible at 70
Decorative background vignette 40–60 -q 80 -alpha_q 50 Large smooth gradient compresses heavily; difference invisible to most viewers
Animated WebP (APNG replacement) 90–100 -q 80 -alpha_q 90 Alpha artifacts accumulate over frames; keep accuracy high

alpha_q in Lossless Mode

When you use the -lossless flag, -alpha_q is ignored entirely. In lossless mode the whole image — RGB and alpha — is stored pixel-perfectly. -alpha_q only applies in lossy mode.

The combination cwebp -q 82 -alpha_q 100 is called lossy RGB + lossless alpha (sometimes written α* = 100 in encoder docs). It is the recommended setting for product photography on transparent backgrounds: the colour channels use lossy compression to shrink the file, while the alpha channel stays exact so edges stay clean at any zoom level.

# Logo / icon — lossless RGB + lossless alpha (pixel-perfect)
cwebp -lossless input.png -o logo.webp

# Product cutout — lossy RGB + lossless alpha (best for e-commerce)
cwebp -q 82 -alpha_q 100 product.png -o product.webp

# Soft shadow / glow — lossy RGB + lossy alpha (smaller file, imperceptible)
cwebp -q 82 -alpha_q 70 shadow-overlay.png -o shadow.webp

# Discard alpha entirely (intentional flattening, e.g. for og:image)
cwebp -q 85 -alpha_q 0 hero.png -o hero-opaque.webp

# Batch: product images with lossless alpha
for f in products/*.png; do
  cwebp -q 82 -alpha_q 100 "$f" -o "${f%.png}.webp"
done

Finding the Right alpha_q for Your Image

There is no universally optimal value — the right alpha_q depends on the variation in your specific alpha channel:

  • Binary alpha (pixels are either fully transparent or fully opaque — logos, flat icons): always use -alpha_q 100. Even slight lossy imprecision on hard binary edges creates a visible 1–2 pixel fringe when the image is placed on a contrasting background.
  • Linear gradient alpha (soft drop shadow, fog, vignette): anything from -alpha_q 40 upward is usually invisible. Start at 60 and decrease only if file size is a priority. Inspect the output in a browser on a dark background before publishing.
  • Complex alpha (hair masking, motion blur, semi-transparent smoke): use -alpha_q 80 or higher. Fine detail in complex alpha channels compresses unpredictably at lower values — artefacts appear as faint halos or smearing.

To find the threshold for a specific image: run cwebp at -alpha_q 50, view the output on both a white and a black background, and halve or double based on what you see. Three iterations is usually enough to land at the optimal value.

3
Squoosh by Google — Side-by-Side Quality Preview
Free Web App
  1. Go to squoosh.app.
  2. Drop your PNG onto the interface.
  3. In the right panel, select WebP from the codec dropdown.
  4. Toggle between Lossy and Lossless mode using the checkbox.
  5. For transparency, Squoosh renders the preview over a checkered background — zoom in to inspect alpha edges closely.
  6. Drag the split divider to compare original PNG (left) vs WebP (right) at pixel level.
  7. Click Download when satisfied.

Squoosh is ideal for testing lossless vs lossy decisions before running bulk conversions. It does not support batch processing — for multiple files, use Convertlo or cwebp.

PNG vs Lossless WebP vs Lossy WebP — Size Comparison

Image TypePNG SizeLossless WebPLossy WebP Q82
Logo (flat color, transparent)45 KB32 KB (−29%)28 KB (artifacts on edges)
Screenshot (UI, text)320 KB238 KB (−26%)180 KB (blurry text)
Product photo (transparent BG)850 KB620 KB (−27%)180 KB (−79%)
Photograph saved as PNG2.1 MB1.5 MB (−28%)420 KB (−80%)
Icon set (16–64px, sharp)8 KB6 KB (−25%)5 KB (visible artifacts)

The table makes the decision clear: for flat graphics and text, lossless WebP is the winner — it saves ~26% with zero quality loss. For photographic content that was saved as PNG, lossy WebP is dramatically better — 70–80% smaller with no perceptible difference.

When to Keep PNG Instead of Converting to WebP

WebP is not always the right choice. Keep PNG in these situations:

  • Open Graph images and email: Many email clients and social media crawlers do not support WebP for og:image tags. The Facebook link previewer, many email clients, and Discord unfurls may fail with WebP. Use PNG or JPG for these.
  • Download assets: If users download the file to edit in design tools, PNG has vastly wider software support. Affinity Photo, Sketch, Figma, Canva — all read PNG natively. WebP support varies.
  • Print workflows: If the PNG is destined for print (even via a web download), PNG is safer. Many print workflows and desktop publishing tools do not handle WebP.
  • Legacy CMS compatibility: Some CMS platforms (older WordPress versions, certain DAMs) do not handle WebP in their media libraries.

PNG to JPEG vs PNG to WebP — Which Should You Convert To?

If you searched "png to jpeg converter" and landed here, the short answer is: WebP for web pages, JPEG for email/print/social. Both are much smaller than PNG — the right choice depends purely on where the image is going, not which is "better."

DestinationBest ChoiceWhy
Web page (Chrome, Firefox, Edge, Safari 14+)WebP25–35% smaller than JPEG, full browser support since 2020
Email newsletter or attachmentJPEGMost email clients (Gmail, Outlook, Apple Mail) don't render WebP
Facebook, Discord, WhatsApp link previewJPEGOG image crawlers and social preview renderers skip WebP
Print — PDF, Canva, Illustrator, InDesignJPEGPrint workflows and design tools have near-universal JPEG support
WordPress (older installs / plugins)JPEGLegacy CMS versions may not handle WebP in media library
Mobile web app (iOS Safari / Chrome Android)WebPFully supported on all modern mobile browsers

Need PNG to JPEG? Free Browser Converter

No upload, no account. Set quality level, batch convert, download results instantly.

Convert Your PNG Files to WebP Now

Free, no upload, transparency preserved. Choose lossless mode for logos and icons, lossy for photos.

How to Check That Transparency Was Actually Preserved

After converting, don't assume the alpha channel came through — check it. Converters that don't handle alpha correctly will silently flatten transparency to white or black, and you won't notice until the image is on a coloured background in production.

Fastest check: Drag the WebP file directly into a Chrome or Firefox tab. The browser renders it over a white background — if your logo or cutout has no visible white box around it, the transparency is intact.

More reliable check: Open browser DevTools (F12), click the Elements tab, select the <img> element, and in the Styles panel add background: #000 to the body. Transparent areas will show the black background through them. If you see solid colours where there should be transparency, the alpha channel was lost.

In your codebase: Drop the WebP over a coloured <div>:

<div style="background:#f00;padding:20px;display:inline-block">
  <img src="output.webp" alt="transparency test">
</div>

If the red shows through the transparent areas, you're good. If you see a white or black rectangle, re-convert using lossless mode or check that your converter supports alpha.

Common failure: Some online converters silently strip alpha when converting to lossy WebP. Convertlo, Squoosh, and cwebp with -alpha_q 100 all preserve alpha correctly. If transparency is breaking, the converter is the problem — not WebP.

Frequently Asked Questions

Does converting PNG to WebP preserve transparency?
Yes. WebP fully supports an alpha channel, just like PNG. Both lossless WebP and lossy WebP with alpha preserve transparent areas. In lossless mode the alpha is pixel-perfect; in lossy mode with alpha the transparency edges are still preserved but the RGB channel is compressed, which is usually fine for web use. Convertlo, cwebp, and Squoosh all handle alpha correctly.
Should I use lossless or lossy WebP for PNG images?
It depends on the PNG content. If the PNG is a logo, icon, screenshot, or UI element with text — use lossless WebP. The pixel data must be exact. If the PNG is a photograph that was saved as PNG to avoid JPG artifacts — use lossy WebP at quality 82–85. You will get much smaller files with imperceptible quality loss. For PNGs with transparency that contain photographic content (product photos on transparent backgrounds), lossy WebP with alpha channel is the best option.
How much smaller is WebP compared to PNG?
Lossless WebP is on average 26% smaller than PNG for the same image, according to Google's benchmarks. For photographic PNGs converted to lossy WebP, the savings are much larger — often 60–80% smaller than the source PNG. A 2 MB photographic PNG might become 400 KB as lossy WebP at quality 82, because PNG was using lossless compression on content that compresses much better with lossy algorithms.
Will converting a PNG logo to WebP affect its sharpness?
Only if you use lossy mode. Lossy WebP introduces subtle compression artifacts that are visible on flat-color graphics and text. For logos and icons, always use lossless WebP — the output is pixel-perfect and the file is still 20–30% smaller than the source PNG. If you are unsure, use Squoosh's split-screen preview to compare at 100% zoom before committing.
Can I convert PNG to WebP on iPhone or Android?
Yes. Convertlo's PNG to WebP converter runs entirely in your browser — it works on Safari for iPhone and Chrome for Android with no app install required. The conversion uses WebAssembly, which all modern mobile browsers support. Just open the converter page, tap to select your PNG file, and download the WebP result directly to your device.
What is -alpha_q in cwebp and what value should I use?
-alpha_q (0–100) controls the compression quality of the alpha (transparency) channel independently from the RGB colour channels. The default is 100, which stores alpha losslessly — every transparency value is preserved exactly. For logos and product cutouts with hard edges, always keep it at 100; any lower value introduces fringing on sharp transparent boundaries. For soft shadows, glows, and decorative gradients, values of 60–80 are typically imperceptible while saving additional file size. At 0 the alpha channel is discarded entirely and all pixels become opaque. The flag only applies in lossy mode (-q) — in lossless mode (-lossless) it is ignored and the full alpha is always preserved.
What is the difference between lossy WebP with -alpha_q 100 and lossless WebP?
Lossy WebP with -alpha_q 100 (e.g. cwebp -q 82 -alpha_q 100) compresses the RGB colour channels with lossy encoding while keeping the alpha channel pixel-perfect. Lossless WebP (cwebp -lossless) preserves both the RGB and alpha channels exactly. For product photos on transparent backgrounds, lossy + lossless alpha is usually the better choice — the RGB lossy compression is invisible at 80–85 quality, and the file is 50–70% smaller than full lossless. For logos, icons, and text-heavy graphics where the RGB must also be pixel-perfect, use full lossless.
How do I convert PNG to WebP without losing quality?
Use lossless WebP mode — it produces a pixel-perfect copy of the PNG at roughly 26% smaller file size, with zero quality loss. In Convertlo, select the Lossless toggle before converting. With cwebp: cwebp -lossless input.png -o output.webp. The output is bit-for-bit identical to the source PNG's pixel data. Lossy mode will make the file smaller but does introduce compression; if that is not acceptable, lossless is the only correct choice.
Does PNG to WebP conversion work on Mac, Windows, and Linux?
Yes — Convertlo's browser-based converter works on any operating system in any modern browser (Chrome, Firefox, Safari, Edge). For command-line use, cwebp is available via brew install webp on Mac, sudo apt install webp on Linux, and as a standalone binary on Windows. Squoosh.app is another browser-based option that works cross-platform with a drag-and-compare interface.
Should I convert PNG to JPEG or PNG to WebP?
Use WebP when the image goes on a web page — all modern browsers support it and files are 25–35% smaller than JPEG at the same quality. Use JPEG when the image goes into an email newsletter, a social media post (og:image), a print workflow, or a design tool like Canva, Illustrator, or InDesign. If compatibility with the widest range of tools and clients matters more than file size, JPEG is the safer choice. For web-only use, WebP is better in every measurable way. Start your PNG to JPEG conversion here.
What is the best free PNG to JPEG converter online?
Convertlo's free PNG to JPEG converter runs entirely in your browser — no upload, no account, no file size limit. You can set the JPEG quality level, batch convert multiple PNG files at once, and download the results instantly. It works on Chrome, Firefox, Safari, and mobile browsers. Other browser-based options: Squoosh (single file, by Google, with side-by-side preview) and ILoveIMG (requires uploading files to their servers).