Krunkit

Image Converter

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

How It Works

Drop Your Images

Drop up to 10 images at once, paste from clipboard, or click to browse. Krunkit detects each format automatically.

Choose Output Format

Select your target format from the settings panel. Adjust quality with the slider.

Download Converted Files

Download converted files individually, or grab all results as a single ZIP.

Which Format Should You Use?

JPEG (.jpg)

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.

PNG (.png)

Best for logos, screenshots, and images requiring transparency (alpha channel). Lossless compression preserves every pixel. Larger file sizes than JPEG for photos.

WebP (.webp)

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.

AVIF (.avif)

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+.

How Image Conversion Works

The Decode-Encode Pipeline

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.

Understanding Format Trade-offs

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.

Handling Transparency During Conversion

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.

Quality and Generation Loss

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.

Frequently Asked Questions

Does converting images reduce quality?

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.

What happens when I convert a PNG with transparency to JPEG?

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.

Is WebP better than JPEG?

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.

Should I use AVIF or WebP?

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.

Can I convert multiple images at once?

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.

Related image optimization guides