Skip to content
← All Guides
🔒 No Upload Required ✅ Free Forever 🌐 Browser-Based
Tutorial

How to Convert JPG to AVIF: Step-by-Step Tutorial

By Bill Crawford  ·  March 2026  ·  6 min read  ·  Last updated March 8, 2026

Connect on LinkedIn →

🚀 Ready to follow along? Open the JPG to AVIF converter now.

Open Tool →

What This Tutorial Covers

This tutorial walks you through converting JPG images to AVIF format using the browser-based tool on this site. No software installation required. You will learn how to add files, use the quality slider, understand the per-file status system, use batch ZIP download, and deploy your AVIF files on the web.

For background on why you might want AVIF and when to use it, see the companion JPG to AVIF Complete Guide.

What You Need

Important: AVIF encoding via the HTML5 Canvas API requires a browser with AV1 codec support. Chrome and Edge provide the most reliable encoding. Safari's canvas AVIF encoding may vary by version.

Step 1: Open the Converter

Navigate to dataconversioncenter.com/image-tools/jpg-to-avif/ in Chrome, Edge, or Firefox. If your browser does not support AVIF encoding, a yellow warning banner will appear at the top of the tool. The page loads JSZip from CDN for ZIP download functionality — no other external libraries are required since JPG decoding is handled natively by the browser.

Step 2: Add Your JPG Files

You have two ways to add files:

As soon as files are added, the tool generates thumbnail previews. You will see an Input Files grid with a card per file showing the filename, file size, and a Ready status badge. Thumbnails are generated using the browser's native JPG decoder — no external library needed.

Note: Files with an extension other than .jpg or .jpeg are automatically rejected with an inline error message and are not added to the conversion queue.

Step 3: Set Your Quality Level

The quality slider in the options bar controls the AVIF compression level:

The quality value is displayed in real time next to the slider as you drag it.

Step 4: Choose Download Mode

Before converting, decide how you want to download your AVIF files:

For batches of more than 5 files, the ZIP option is strongly recommended to avoid multiple browser download dialogs.

Step 5: Click "Convert to AVIF"

Click the blue Convert to AVIF button. The button label changes to "Converting…" and is disabled while conversion runs.

For each file in sequence:

  1. The status badge changes from Ready to Converting…
  2. The browser creates an HTML Canvas element and draws the JPG image onto it at full resolution.
  3. The Canvas API's toBlob('image/avif', quality) method encodes the canvas pixel data as AVIF using the browser's built-in AV1 encoder.
  4. The resulting AVIF blob is stored in memory.
  5. The status changes to Converted and an output card appears.

The progress bar tracks overall progress — "Converted X of N". Files are processed two at a time for throughput efficiency.

Step 6: Review the Results

After conversion completes, a summary banner appears: "✓ All N files converted successfully" or "Completed: X succeeded, Y failed."

An Output Files grid displays cards for each successfully converted AVIF, showing:

Any files that failed to convert are marked with a red Error badge. The most common cause is a browser that does not support AVIF encoding via the Canvas API — switch to Chrome 85+ or Edge 85+ for guaranteed results.

Step 7: Download Your AVIFs

Individual download

Click the ⬇ Download AVIF button on any output card to save that file. The filename is the same as the input with .avif extension.

Download all files

Click Download All AVIFs to trigger sequential individual downloads for all converted files. Depending on your browser settings, you may be prompted to confirm multiple downloads.

Download as ZIP

If you checked "Download as ZIP" before converting, the Download ZIP button downloads a single archive containing all AVIF files. The ZIP is named dataconversioncenter_jpg_to_avif_YYYYMMDDHHMM.zip.

Step 8: Deploy on the Web (Optional)

To serve AVIF on your website while maintaining JPG compatibility for older browsers, use the HTML <picture> element:

<picture>
  <source srcset="photo.avif" type="image/avif">
  <img src="photo.jpg" alt="Description" width="800" height="600">
</picture>

Browsers that support AVIF will request photo.avif; all others will fall back to photo.jpg. Always specify width and height attributes to prevent layout shift (a Core Web Vitals issue).

Troubleshooting

📷 Start converting your JPGs to AVIF right now — free and private.

Open JPG to AVIF Converter →
Related Guides
JPG to AVIF: Complete Guide → JPG to PNG Guide → AVIF to JPG Guide →