1. Home
  2. Image tools
  3. Image to AVIF

Image to AVIF

AVIF usually gives the smallest files of any image format browsers support, which speeds up pages and saves bandwidth. Encode your photos and graphics here with the reference libavif encoder.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use Image to AVIF

  1. Drop JPG, PNG or WebP images.
  2. Set the quality (60% is a good start for photos).
  3. Convert, compare the sizes and download.

Features

  • libavif encoder in WebAssembly
  • Quality slider
  • Transparency kept
  • Shows the size before and after

Supported formats

You can open

  • JPG
  • PNG
  • WebP
  • HEIC

You get

  • AVIF
  • ZIP

Private by design

Your files are opened and processed by your browser on this device. They are never uploaded to openWorkstand or anyone else, so the Image to AVIF is safe for contracts, IDs, photos and work documents. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • Encoding AVIF is slow: a 12-megapixel photo can take 10–30 seconds on a laptop and longer on a phone.
  • The result is a newly encoded image: camera details (EXIF) such as date, camera and location are not copied into it.
  • Animated GIF and WebP files are encoded as a still image.

Guide

Encoding your own images as AVIF for faster pages

Images are usually the heaviest part of a web page, and AVIF is currently the most efficient format browsers can display. Re-encoding a site’s JPGs as AVIF commonly removes a large share of their weight without a visible change, which helps loading speed and Core Web Vitals. This tool encodes your images with libavif, the reference AVIF library, right in the browser.

What AVIF does better

AVIF is built on AV1, a video codec designed to keep detail at low bitrates. Smooth gradients such as skies stay free of the blocky banding JPEG produces at small sizes, and fine texture survives more aggressive compression. It also supports transparency, so a PNG logo can become an AVIF without losing its see-through background, and wide color ranges, although this tool writes standard 8-bit sRGB pictures.

Choosing a quality

The slider runs from 30 to 100 percent; 60 percent is a good starting point for photographs. Look at the result at full size, especially in skin, foliage and sky. If you see smearing, go up in steps of five; if it looks identical to the original, try going down. Graphics with text need higher settings, 75 to 90 percent, because AVIF’s smoothing is most visible on hard edges. Each row reports the size before and after so you can compare quickly.

Why it takes a few seconds

AVIF encoders try many ways to split and predict each block of the image and keep the cheapest. That search is what makes the files small, and it is expensive. Here the encoder runs on one core of your processor, at a speed setting that balances time against size. Converting a batch of large photos can take a few minutes; the page stays usable while it works, and decoding AVIF later is fast for visitors.

Transparency and color

Transparent PNG and WebP images keep their alpha channel in the AVIF. Photos from phones in HEIC format are decoded first and then encoded, so you can go directly from an iPhone picture to AVIF. Metadata such as the camera model and GPS location is not written into the new file.

Deploying AVIF on a website

Serve AVIF to browsers that accept it and keep a fallback for the rest, typically with a picture element listing an AVIF source and a JPG or WebP image. Many CMSs and image CDNs can do this automatically once you upload the AVIF variants. Test pages on a slow connection to confirm the gain.

Comparing with WebP

WebP encodes faster and is supported for longer, so it remains a solid default. JPG to WebP and PNG to WebP are quick alternatives when encoding time matters. To check a whole batch’s savings with plain size limits instead, the Compress Image tool works with JPG, PNG and WebP. And if you receive AVIF files you cannot open, AVIF to JPG converts them back.

A test before converting a whole site

Pick five typical images: a portrait, a landscape with sky, a product shot on white, a screenshot with text and a logo. Encode them at 50, 60 and 70 percent and compare each against its original at full size, side by side. Note the lowest setting where you cannot tell them apart, per type of image; photos usually tolerate lower settings than screenshots. Then convert the rest of the batch with those values. This small experiment gives you better results than any rule of thumb, because the right setting depends on how much detail and noise your particular pictures contain.

Checked against the current version of the Image to AVIF on .

Troubleshooting

The file does not open

Check that it is one of the supported formats above and opens in another app. Damaged files and password-protected PDFs cannot be read until they are repaired or unlocked.

It is slow or stops on a very large file

Everything runs on your device, so speed depends on its memory. Close other tabs, use a computer rather than a phone, or split the file into smaller parts first.

The download did not start

Look for your browser’s download bar or icon. Some browsers ask once before a site may download files; allow it and click the button again.

Frequently asked questions

How long does AVIF encoding take?

From under a second for an icon to roughly 10–30 seconds for a 12-megapixel photo on a laptop, and longer on phones. The encoder runs on one processor core in your browser and searches hard for the most compact description of the picture.

Do all browsers show AVIF images now?

Current Chrome, Edge, Firefox and Safari (version 16.4 and later) all display AVIF. For visitors on older devices, serve a JPG or WebP fallback with the HTML picture element.

Should I convert logos and screenshots to AVIF?

Only at a high quality setting. Sharp text and thin lines show artifacts sooner than photos do; for such graphics lossless WebP or PNG is often the better and simpler choice.

Which AVIF quality should I use?

Around 50–65% looks close to the original for most photos while being much smaller than JPEG. Logos and screenshots with sharp edges need a higher setting, or stay with PNG or WebP lossless.

Why does encoding take a few seconds?

AVIF compresses so well because the encoder tries many ways to describe each block of the image. That search runs on your own processor, one image at a time; decoding AVIF later is fast.

Keep working with the result

After you download, choose “Save to Workstand” to keep the result in a folder on your computer, attach it to a project and create a follow-up task. It is saved by your browser, not uploaded.