Convert JPG to AVIF

Photos 67% to 94% smaller than the JPG in our tests, encoded on your device.

Convert JPG photos to AVIF in your browser for much smaller files. It is free, needs no account and adds no watermark, and your files are not uploaded: everything runs in your browser on your device. The first run downloads the AVIF encoder (about 3.5 MB) and the WebAssembly engine that runs it to your browser, and after that the tool works offline.

Drop JPG files hereor click to choose files. Batches welcome.

    Working…

    Done

    Free, no ads. Support StayPut

    Your files are processed on this device and never sent to a server. Reload the page to clear everything from memory.

    AVIF is the image format built on the AV1 video codec, and it is a lot smaller than JPG. In our tests on two 12-megapixel photos at the default quality 60, the AVIF files were 67% to 94% smaller than the JPG, depending on the photo and on which encoder ran.

    The first run downloads the AVIF encoder (about 3.5 MB) and your browser keeps it afterwards. Chrome has no AVIF encoder for web pages, so a WebAssembly one does the work in your tab; browsers that can write AVIF themselves (Safari’s engine does) use their own and skip the download. A large photo took about 3 to 5 seconds on a recent Mac and can take far longer on a phone. The quality scale is not JPG’s: an AVIF at 60 usually looks like a JPG at a much higher number, so judge by eye, not by the number. EXIF data, including location, is not kept.

    Related converters

    How it works

    1. Drop your JPG files onto the page, or tap to pick them. Batches are fine, but each AVIF takes a while to encode.
    2. Pick a quality from 1 to 100 (60 is a good start), tick "Faster encode" to trade a little size for speed, or downscale the image.
    3. Download each AVIF, or all of them as one zip.

    In your browser, not on a server

    Stayput first reads the opening bytes of each file, where every image format writes its signature, so it knows what the file really is whatever it is called. Your browser decodes JPG, PNG, WebP, GIF, BMP, AVIF and SVG itself; TIFF goes through UTIF.js, HEIC through the libheif WebAssembly decoder, and JPEG XL (or AVIF, in a browser without native support) through the Squoosh decoders, all served from this site and cached. The browser re-encodes JPG, PNG and WebP; PDF, ICO, GIF, BMP and TIFF files are written by small encoders in the page. Nothing here needs a server.

    Compared with upload-based tools: Online converters upload your image, convert it on their machine, keep it for hours and cap you at a few files a day. This does the same conversion on your device, for as many files as your device’s memory can hold, with no upload to wait for.

    Verify it yourself. Give the page a short while after your first run to save itself for offline use, then turn off Wi-Fi or switch to airplane mode and run the tool again. Or open your browser's developer tools (F12, or Cmd-Option-I on a Mac), pick the Network tab, and watch it while you convert. The panel above does the same count for you.

    Questions

    How much smaller is AVIF than JPG?

    In our tests on two 12-megapixel photos at the default quality 60, the AVIF files were 67% to 94% smaller than the JPG, depending on the photo and on which encoder ran. The saving depends on the picture and on how well the original JPG was compressed, so try the quality slider and look at the result. Blurred backgrounds shrink the most; sharp, detailed photos the least.

    Will every app open the AVIF?

    Not every program does. The files this page writes opened in Chrome, in Safari’s engine and in the image tools built into macOS, and the page’s own AVIF to JPG and AVIF to PNG converters read them back. We have not tested Windows apps, Microsoft Office or photo editors, and older software may refuse AVIF. If a program will not open it, convert it back with AVIF to JPG on this site.

    Why does it take so long?

    AVIF is expensive to compress: the encoder tries many ways to describe each block of the picture. Where you see “Faster encode (lower effort)”, tick it to make the encode noticeably quicker for a slightly larger file, or downscale the image first. You can cancel an encode at any point.

    Is the EXIF data kept?

    No. The AVIF holds only the picture, so camera details and location are removed.

    More image tools

    Other conversions

    Guides