WebP and AVIF are reasonable originals on the web. They are a poor attachment when the next system only understands JPEG: a legacy CMS, a mail client that shows a broken icon, or an application portal whose accept list is .jpg / .png. Convert at the moment you need compatibility. Keep the modern file if you are only publishing on a site that already serves it.
LocalPix does not encode WebP or AVIF in this MVP, and it does not turn JPG back into those formats. The tools are one way: WebP to JPG and AVIF to JPG, using the browser’s decoder and a local canvas JPEG.
Convert when
- The CMS or form rejected the upload and named the type (not the pixel size).
- A recipient on desktop mail cannot open the image, and sending a screenshot of it would be larger and worse.
- You exported AVIF or WebP from a design tool and the print or email step wants JPEG.
Stay on WebP or AVIF when
- You are optimizing a page you control and the audience’s browsers already decode it.
- You need animation. These tools are for stills. An animated WebP is the wrong input.
- You need transparency. JPEG has no alpha. A transparent WebP becomes a flat image once it is JPEG. For a cutout, use Remove background and keep the PNG (product photo guide).
Steps
- Open WebP to JPG for a
.webpfile, or AVIF to JPG for a.aviffile. They are not the same decoder. A phone HEIC is HEIC to JPG. - Drop the still. Convert to JPG stays disabled until a file is chosen. Press Convert to JPG. There is no quality slider and no decoder download. The JPEG is quality 0.92 at the same pixel size. Optional proof: Verify local.
- If AVIF fails, this browser has no AVIF decoder. The file was not uploaded. Try current Chrome, Edge, or Firefox on a desktop. A WebP the browser cannot decode stops the same way, on the page.
- Download
converted.jpg. If that JPG is over a KB cap, open Compress to KB, replace the default 100 with the cap (10 to 5000), and press Compress. The file iscompressed.jpg. See 100 / 200 / 500 KB.
Pitfalls
- Decode support differs. WebP is widely decoded. AVIF still fails in some older browsers. The failure is local and visible.
- A second generation. WebP/AVIF → JPEG is lossy. Do not convert again unless the format is the reason the file was rejected.
- HEIC is not WebP. iPhone camera files use HEIC to JPG.
How it works
WebP to JPG and AVIF to JPG are one-way compatibility encodes. They do not ship a decoder. The browser opens the file, the page draws that bitmap onto a canvas at the original pixel size, and canvas.toBlob writes a JPEG at quality 0.92. There is no slider and no target-KB box on either page. The download is a blob: URL. The still is not posted to LocalPix. There is no encoder back to WebP or AVIF in this release, so a site you control that already serves the modern file should keep serving it.
The two formats fail differently, which is the whole point of having two tools. WebP decode is widespread in current browsers. AVIF is an AV1 still in a HEIF-family container, and a browser that opens WebP can still lack an AVIF decoder. The AVIF page then stops with an error. The file stays on disk. Try current Chrome, Edge, or Firefox on a desktop. A failed decode is not uploaded somewhere else to be finished. Animated WebP or AVIF contributes a single frame. The motion is gone, which is why an animated sticker is the wrong input if you needed the animation. Transparency is gone too. A transparent WebP becomes a flat JPEG. For a cutout you meant to keep, use Remove background and keep the PNG.
Quality 0.92 is not a size target. The JPG is often larger than the WebP or AVIF, because those formats were already the small file and this encode does not shrink the pixel grid. That growth is acceptable when the CMS or the inbox rejected the type. It is a bad trade when you were only trying to make a page faster. If the rejection was a kilobyte cap rather than a type, run the JPG through Compress to KB. That search is a separate ten-probe quality loop, still local, still JPEG only. Doing the 0.92 convert twice does not help. Each generation is lossy. iPhone HEIC is not either of these formats. It has its own decoder.
Limits
- WebP → JPG and AVIF → JPG only. There is no JPG → WebP or JPG → AVIF encoder here.
- Quality is fixed at 0.92. Pixel dimensions do not change. A named KB cap is Compress to KB, from 10 to 5000.
- Animation becomes one frame. Alpha becomes a flat JPEG.
- AVIF decode depends on the browser. The failure stays on the page.
- No account. Convert does not download ormbg and does not use the removal quota.
FAQ
Does the image leave the device?
No. Decode and JPEG encode stay in the tab. No photo upload to LocalPix.
Can I convert JPG to WebP or AVIF here?
No. Only WebP → JPG and AVIF → JPG are in this MVP.
AVIF failed immediately. Was it uploaded?
No. If the browser cannot decode AVIF you get an error on AVIF to JPG. The file was not sent away to be decoded.
Will converting to JPG make my own site faster?
No. WebP and AVIF are often the smaller files. Convert when a CMS, a form, or an inbox rejected the type. Keep the modern file on a site that already serves it.
Why are WebP and AVIF different tools?
The decoders are independent. A browser can open WebP and still fail AVIF, because AVIF is an AV1 still in a HEIF-family container. The page does not ship either decoder.
The JPG is larger than the file the CMS rejected.
Expected at quality 0.92 with the same pixel size. Attach it if the type was the rejection. If the rejection was a size cap, run Compress to KB on that JPG once.
Sources
- RFC 9649, The WebP Image Format — the file a legacy CMS often refuses.
- AVIF specification — AV1 stills in a HEIF-family container. A WebP-capable browser can still fail it.
- WebP on Can I use — why WebP decode usually succeeds in a current browser.
- AVIF on Can I use — why the AVIF page can error while the WebP page, in the same browser, does not.
- HTMLCanvasElement.toBlob() on MDN — the JPEG encode at quality 0.92.
Related
WebP to JPG · AVIF to JPG · Compress to KB · Attachment KB caps · Verify local