Guide · Convert

When to turn WebP or AVIF into JPG

A file that looks fine in Chrome can be rejected by Outlook, an old CMS, or a form that only lists JPEG. Re-encode the still locally — LocalPix does not upload it.

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

Stay on WebP or AVIF when

Steps

  1. Open WebP to JPG for a .webp file, or AVIF to JPG for a .avif file. They are not the same decoder. A phone HEIC is HEIC to JPG.
  2. 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.
  3. 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.
  4. 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 is compressed.jpg. See 100 / 200 / 500 KB.

Pitfalls

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

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

Related

WebP to JPG · AVIF to JPG · Compress to KB · Attachment KB caps · Verify local

Related guides