WebP vs PNG vs JPG: which image format should you use?
Compare format trade-offs for photos, screenshots, transparency, and web performance.
Convert between JPG, PNG, WebP & AVIF — free, private, in-browser
Drop images here or click to browse (up to 10)
JPEG, PNG, WebP, AVIF up to 50MB each
Drop up to 10 images at once, paste from clipboard, or click to browse. Krunkit detects each format automatically.
Select your target format from the settings panel. Adjust quality with the slider.
Download converted files individually, or grab all results as a single ZIP.
Best for photos with complex colors and gradients. No transparency support. Widely compatible with all devices and browsers. Often smaller than PNG for photo-like images, but results vary by source file.
Best for logos, screenshots, and images requiring transparency (alpha channel). Lossless compression preserves every pixel. Larger file sizes than JPEG for photos.
Google's modern format. Often smaller than JPEG at comparable visual quality. Supports transparency like PNG. Ideal for web use. Supported by all modern browsers since 2020.
A newer efficient format with excellent HDR and wide color gamut support. It can produce smaller files for many images, but encoding speed and browser support vary. Supported by Chrome 85+, Firefox 93+, Safari 16+.
Image conversion is a two-step process: first the source file is decoded into raw pixel data (an uncompressed bitmap), then that pixel data is re-encoded into the target format. Krunkit performs both steps entirely in your browser using WebAssembly-compiled codecs. The decoded image exists only in memory as an HTML Canvas ImageData object — an array of RGBA values for every pixel. This intermediate representation is format-agnostic, which is why you can convert between any supported format pair.
Each image format makes different trade-offs between file size, quality, features, and compatibility. JPEG excels at compressing photographs using DCT-based lossy compression, achieving small files but sacrificing transparency support. PNG preserves every pixel losslessly and supports alpha transparency, often at the cost of larger files. WebP combines lossy and lossless modes with transparency and can be smaller than JPEG for many web images. AVIF pushes compression efficiency further with AV1-based encoding, supporting HDR and wide color gamut at the cost of slower encoding speed.
When converting from a format that supports transparency (PNG, WebP, AVIF) to one that doesn't (JPEG), the alpha channel must be resolved. Krunkit automatically detects transparent pixels in your source image and prompts you to choose a background color — white, black, or a custom value. This color fills the transparent areas before encoding. Converting in the other direction (JPEG to PNG) doesn't add transparency; the image becomes a fully opaque PNG that can then be edited in a graphics tool to add transparent regions.
Converting between two lossy formats (e.g., JPEG to WebP) involves re-encoding, which introduces a small amount of additional quality loss called generation loss. Each lossy encode-decode cycle degrades the image slightly, similar to photocopying a photocopy. To minimize this, use the highest quality setting when converting between lossy formats. Converting lossy-to-lossless (JPEG to PNG) preserves the current state perfectly but cannot restore quality already lost. For critical work, always keep your highest-quality original and convert from that source.
Converting from a lossless format (PNG) to a lossy one (JPEG, WebP, AVIF) will involve some quality tradeoff, which you control with the quality slider. Converting between two lossless formats or keeping the same format with quality 100 is lossless.
JPEG doesn't support transparency. Krunkit detects transparent images and lets you choose a background color (white, black, or custom) to flatten the alpha channel before converting.
For many web images, yes. WebP can produce smaller files than JPEG at similar visual quality and also supports transparency. All modern browsers have supported WebP since 2020. Use JPEG when maximum compatibility with older software matters.
AVIF is newer and can be more efficient than WebP for many images, but it can encode more slowly and has slightly less browser support. For maximum compression experiments, try AVIF. For broad compatibility including older browsers, use WebP.
Yes! Drop up to 10 images at once, or paste from your clipboard. All files are converted with the same output format and quality settings. Download individually or as a single ZIP.
Compare format trade-offs for photos, screenshots, transparency, and web performance.
Understand when newer formats are worth the compatibility and encoding trade-offs.