File Conversion
What It Does
Converts images to and from AVIF and JPEG XL — modern formats that compress far better than JPEG or PNG but that your browser can’t create (and often can’t open) on its own. Encode ordinary images into AVIF/JPEG XL, or decode AVIF/JPEG XL files back to PNG, JPEG, or WebP. Everything runs on your device.
How to Use It
- Pick the format (AVIF or JPEG XL) and a direction (Encode or Decode).
- Drop images onto the box (or click to choose). You can add up to 20.
- Adjust Quality/Effort (encode) or the Decode target (decode); toggle Lossless for perfect quality.
- Click “Convert”, then download each result or “Download all (ZIP)”.
Options Explained
| Option | Description |
|---|---|
| Format | AVIF (great all-round, wide support) or JPEG XL (excellent quality, especially lossless). |
| Direction | Encode (image → next-gen) or Decode (next-gen → PNG/JPEG/WebP). |
| Quality | 1–100 for lossy encoding. Higher = better quality, larger file. |
| Effort | 1–9 encoder effort. Higher = slower but smaller files. |
| Lossless | Perfect, mathematically-exact encoding (ignores Quality); files are larger. |
| Decode target | The raster format produced when decoding (PNG keeps transparency; JPEG is smallest). |
| Flatten / Background | Composites transparent pixels onto a solid color (required for a JPEG decode target). |
Drag & drop images here, or click to choose
Encode: PNG · JPEG · WebP · BMP · GIF · SVG (max 20, ≤ 30 MB each)
🔒 Processed entirely on your device — the codec is first-party, nothing uploaded.
About AVIF & JPEG XL — The Next-Generation Image Formats
AVIF (AV1 Image File Format) and JPEG XL are modern codecs designed to replace JPEG and PNG. Both typically produce files 30–60% smaller than an equivalent JPEG at the same visual quality, support transparency (alpha), wide color gamuts, and both lossy and lossless modes. AVIF is derived from the AV1 video codec and is now supported by every current browser, making it the safest next-gen choice for the web today. JPEG XL is exceptional at lossless compression and at re-compressing existing JPEGs without generation loss, though native browser support is still catching up — which is exactly why a decode-to-PNG/JPEG/WebP path is useful.
Because these formats can’t be produced by the browser’s built-in image engine, this tool loads a small WebAssembly codec on demand — a first-party file served from this site, downloaded once and cached, so no image data ever leaves your device. As with the other converters, re-encoding from raw pixels drops embedded metadata (EXIF/GPS/ICC), a small privacy bonus when sharing images.
Formats, Options & Limits
- Encode: convert PNG, JPEG, WebP, and other canvas-decodable images to AVIF or JPEG XL.
- Decode: convert AVIF or JPEG XL back to PNG, JPEG, or WebP for wider compatibility.
- Quality: 1–100 (AVIF default 50, JPEG XL default 75), plus a lossless mode and an effort/speed control from 1 to 9.
- Batch limits: up to 20 files per run, since these codecs are CPU-heavy.
Example
Encode a 1.8 MB photo.jpg to AVIF at quality 50 → photo.avif around 0.7 MB with no visible quality loss — roughly a 60% saving.
Frequently Asked Questions
Should I choose AVIF or JPEG XL?
AVIF is supported by every current browser, making it the safest choice for the web today. JPEG XL excels at lossless compression and at re-compressing existing JPEGs without generation loss, but native browser support is still limited.
Can browsers display these formats?
AVIF displays in all current browsers. JPEG XL support is still catching up, which is why the decode direction (back to PNG/JPEG/WebP) is useful.
Why is conversion slower than other tools?
AVIF and JPEG XL use CPU-heavy WebAssembly codecs. The effort control lets you trade encoding speed for a slightly smaller file.
Is my image uploaded to a server?
No. The codec is a cached, first-party WebAssembly file, and all conversion runs on your device — your images never leave the browser.