Or try an example

First download loads a local AVIF encoder (~1 MB). Encoding stays in your browser.

Help Us Improve

—

(—)

Convert JPG to AVIF online

Convert JPG to AVIF online free. Turn JPEG photos into smaller AVIF files in your browser — adjust quality, download instantly, no upload.

What is a JPG to AVIF converter?

A JPG to AVIF converter turns JPEG photos into AVIF (AV1 Image File Format) files for smaller web delivery. People search for “jpg to avif”, “what is a .avif file”, and general “AVIF converter” terms when optimizing sites or learning the format. This free online tool loads your JPG onto a canvas, lets you set quality, and encodes a true .avif with a local WebAssembly libavif encoder — without uploading your images. It does not convert AVIF to MP4; that is a separate video workflow.

JPG to AVIF converter features

Private, browser-based JPEG to AVIF conversion.
  • JPG / JPEG upload

    Drop or select photos from cameras, exports, or downloads.

  • AVIF quality control

    Dial compression from 1–100 for web or archive-sized output.

  • Live preview

    Inspect the converted image before you download .avif.

  • WASM AVIF encoder

    Uses libavif in WebAssembly so encoding works beyond Chromium-only canvas support.

  • No server upload

    JPG to AVIF conversion stays on your device for privacy.

How to convert JPG to AVIF

Turn a JPEG photo into a downloadable AVIF in a few steps.
  1. Upload your JPG

    Drop a .jpg or .jpeg file from your device.

  2. Adjust AVIF quality

    Lower values shrink files; higher values keep more detail.

  3. Preview

    Confirm the result looks right in the preview pane.

  4. Download AVIF

    Save the .avif file. The first download loads a local WASM encoder once.

Tips for converting JPG to AVIF

Get cleaner, smaller AVIF exports.
  • Use quality 60–80 for web

    Often beats JPEG size while looking sharp on screen.

  • First encode loads the codec

    The AVIF WASM encoder (~1–2 MB) downloads once, then later exports are faster.

  • Keep a JPG fallback

    Serve JPG to clients that still lack AVIF decode if your stack requires it.

  • Need AVIF to GIF instead?

    Use AVIF to GIF Converter for still AVIF → animated GIF handoffs.

AVIF converters compared

How this free JPG to AVIF tool stacks up against common alternatives.
  • CloudConvert AVIF converter

    Ranks for “jpg to avif” and general AVIF conversion, including AVIF↔video paths. Files are processed in the cloud with free-tier limits.

  • Squoosh / WASM encoders

    Excellent cross-browser AVIF encode via WebAssembly. Heavier first load than native canvas encode.

  • Desktop ImageMagick / libavif

    Best for batch pipelines and exotic color spaces. Requires install and more setup.

  • This JPG to AVIF tool

    Browser WASM encode with libavif, quality slider, no account, no upload. Works across modern browsers without relying on native canvas AVIF support.

Great for

When you need JPEG photos as AVIF without desktop software.
  • Web performance

    Ship smaller hero and product images with AVIF where supported.

  • CDN and CMS pipelines

    Convert JPG assets before upload when your stack prefers AVIF.

  • Photo libraries

    Shrink large JPEG collections while keeping usable quality.

  • Learning what AVIF is

    Create a real .avif file while reading what the format is for.

Why use this JPG to AVIF converter

Fast, free, and private JPEG → AVIF in the browser.
  • 100% free

    No sign-up, no daily caps, no watermarks.

  • Privacy first

    Your JPG never leaves the browser tab.

  • Adjustable quality

    Balance size and detail for web or archive copies.

  • No desktop app

    Works in modern browsers with a local WebAssembly encoder — no install required.

Technical details

How this JPG to AVIF converter works in the browser.
Input
JPEG / JPG files up to 15 MB.
Conversion path
JPG → Canvas 2D decode → libavif WASM encode → .avif download.
Encoder
@jsquash/avif (Squoosh libavif), single-thread WASM served from /jsquash/avif_enc.wasm.
Output cap
Maximum 8192 px on the longest edge.

Sources & References

Authoritative references on AVIF, JPEG, and browser canvas encoding.
  • “AVIF is an image file format specification for storing images or image sequences compressed with AV1.”
    — Wikipedia — AVIF

    AVIF (AV1 Image File Format): AVIF is a modern still-image format based on the AV1 video codec. It often produces smaller files than JPEG or WebP at similar visual quality for web photos. en.wikipedia.org/wiki/AVIF

  • “JPEG is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography.”
    — Wikipedia — JPEG

    JPEG: JPG/JPEG remains the default camera and photo-export format. Converting JPG to AVIF is a common step before shipping images on performance-focused sites. en.wikipedia.org/wiki/JPEG

  • “The Canvas API provides a means for drawing graphics via JavaScript and the HTML canvas element.”
    — MDN Web Docs — Canvas API

    HTMLCanvasElement + WebAssembly: This converter draws your JPEG onto a canvas, then encodes AVIF with libavif compiled to WebAssembly (@jsquash/avif) so downloads work even when canvas.toBlob cannot produce image/avif. developer.mozilla.org/en-US/docs/Web/API/Canvas_API

  • “AOMedia Video 1 (AV1) is an open, royalty-free video coding format designed for video transmissions over the Internet.”
    — Wikipedia — AV1

    AV1 codec: AVIF stores AV1-compressed still frames. Encoding support in browsers is still catching up to decode support. en.wikipedia.org/wiki/AV1

Frequently Asked Questions

Quick answers about this tool—open a question to read more.