JPG to AVIF Converter

Turn a JPG photo into an AVIF image, in your browser.

or drop files here

JP

JPG Format

JPEG image

A lossy raster image format defined by the Joint Photographic Experts Group (ISO/IEC 10918-1), designed for photographs. .jpg and .jpeg are the same format.

  • Lossy compression
  • No alpha transparency
  • 8 bits per color channel
  • Supported everywhere
AV

AVIF Format

AV1 Image File Format

An image format from the Alliance for Open Media that stores AV1-compressed images in the HEIF container. It supports lossy and lossless compression, HDR and transparency.

  • Lossy and lossless compression
  • Alpha transparency
  • HDR and wide color gamut
  • Royalty-free

How to convert JPG to AVIF

Follow these steps to convert JPG to AVIF online.

    1

    Choose your JPG file, or several at once.

    2

    Wait while the converter turns each file into AVIF.

    3

    Download each new AVIF file. Your original file isn't changed.

What to know before converting JPG to AVIF

  • The AVIF is a second lossy pass over the JPG's pixels.
  • If the browser's canvas can write AVIF, it does; otherwise ImageMagick in the page writes it.
  • The AVIF has 8 bits per channel, however the format allows more.
  • EXIF data, ICC profiles and XMP are not copied.
  • AVIF encoding is slow: one image can take several seconds on your device.

About JPG files

What is a JPG file?

A JPG holds a picture squeezed by the method the Joint Photographic Experts Group began developing in 1986. The standard text exists as ITU-T Recommendation T.81 (1992) and as international standard ISO/IEC 10918-1 (1994). Baseline compression is lossy. Pixels are handled in 8x8 blocks, a discrete cosine transform turns each block into coefficients, and Huffman codes store them.

JPG is everywhere because cameras and scanners write it natively and browsers draw it without help. US patent protection ended in October 2006. Both .jpg and .jpeg name this one format, served as image/jpeg.

Programs that open JPG files

  • Windows, Mac and Linux: ImageMagick reads JPG on the command line, and GIMP imports the picture if you want to touch it up first.
  • Web: Chrome and Firefox draw JPG in a tab.
  • Mobile: Safari shows JPG on iPhone and iPad.

JPG and AVIF compared

  • Extensions: .jpg or .jpeg (image/jpeg) against .avif (image/avif).
  • Compression: JPEG applies a block-based discrete cosine transform followed by Huffman coding. AVIF packs AV1-compressed images into the HEIF container and offers lossy and lossless modes.
  • Transparency: JPEG has no alpha channel. AVIF does.
  • Color depth: 8 bits for each JPEG channel; AVIF goes up to 12 for HDR and wide gamut, though this page writes 8.
  • Quality scale: editors tend to offer 0 to 100, but a given number does not mean the same quality everywhere. This page has no quality control of its own.
  • Layers: JPEG cannot store layers.
  • Metadata: Exif, XMP and an ICC profile all fit in an AVIF file; this page writes none of them.
  • Origins: the Alliance for Open Media started in 2015 with a goal of royalty-free media formats, and AV1 appeared in 2018.
  • Large pictures: Baseline-profile AVIF items top out at 8,192 x 4,352 pixels; bigger pictures are tiled as a grid.
  • Licensing: AVIF is royalty-free.
  • Speed: AVIF images are slow to decode, and encoding one can take several seconds. JPEG is quick both ways.
  • Progressive display: a progressive JPG shows a rough picture early, while an AVIF does not render progressively.
  • Support: every browser shows JPEG. AVIF displays in current Chrome, Firefox, Safari and Edge, and Android decodes it from version 12. Older browsers may not show AVIF, so keep a JPEG, PNG or WebP copy for visitors whose browser cannot open AVIF. Windows needs two Microsoft add-ons to preview .avif files: the HEIF Image Extension plus the AV1 Video Extension.

For the conversion, your browser decodes the JPG into pixels. If the browser's canvas can encode AVIF, the page asks it for the AVIF. If it cannot, it returns a PNG, and an ImageMagick build running inside the page writes the AVIF from that. Either way the picture keeps its pixel size and loses its metadata, and the AVIF has 8 bits per channel. Nothing leaves your device, because both the decoding and the encoding happen in the browser tab and the original JPG is left as it was. The download uses the JPG's name with an .avif ending.

Other ways to convert JPG to AVIF

  • GIMP (any desktop): use File > Export As, enter a filename that ends in .avif, press Export and accept the AVIF settings.
  • ImageMagick (command line): run magick photo.jpg photo.avif. ImageMagick's format table marks AVIF as readable and writable.
  • libavif's avifenc (command line): run avifenc -q 75 photo.jpg photo.avif. The avifenc tool must be built with at least one AV1 codec enabled, because none is on by default.

Problems with JPG files

  • Banding or blocks in smooth areas: heavy JPG compression leaves 8x8 block edges, and an AVIF made from the file keeps them. Pick the least compressed copy as the source.
  • No transparency: a JPG cannot hold see-through pixels, so the AVIF will not have any either. Transparent pixels do not survive saving as JPEG in the first place.
  • Layers are gone: a JPG is one flat picture, so keep the layered project file.
  • An older device rejects the file: some older photo frames refuse progressive JPG, and saving it again without progressive mode gets around that.
  • Quality numbers disagree: equal numbers in different editors give unequal results, so compare by eye.
  • "Image decode failed.": the JPG could not be opened by your browser's decoder. Download the JPG again and retry.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert JPG to AVIF?

Can the AVIF be smaller than the JPG?

Does converting JPG to AVIF lose quality?

Which browsers show AVIF?

Why won't Windows open my AVIF?

Can I open an AVIF in GIMP?

Does the AVIF keep my photo's EXIF data?

Why did the conversion take so long?

Does this AVIF have 10-bit color?

Can I use the AVIF where a JPG is required?