Convert JPG to AVIF

Free, private jpg to avif converter that runs in your browser with no file upload.

100% browser-based — files never leave your device
AVIF encoding runs via WebAssembly and takes a few seconds per photo for high compression.

Drop files here, click to browse, or paste from clipboard

Accepted: JPG / JPEG · Max 40 MB per file

    How to convert jpg to avif

    1. Drop or choose one or more JPG photos (or paste an image from your clipboard).
    2. Set your AVIF quality slider (65%–75% balances tiny file size with crisp detail) and optional max size.
    3. Click Convert AVIF to encode each image locally with the WebAssembly AVIF encoder.
    4. Compare file size savings and download individual AVIF files or a ZIP archive.

    Why convert JPG to AVIF?

    AVIF uses AV1 intra-frame coding to pack photographic detail into substantially fewer bytes than traditional JPEG. Smooth skies, skin tones, and subtle shadows hold together without the harsh blocking or mosquito noise common in heavily compressed JPEGs.

    For web developers and publishers, serving AVIF can shrink image payloads significantly compared to JPG while maintaining clean visual quality. Modern Chrome, Firefox, Safari, and Edge all support AVIF natively, making it practical inside `<picture>` elements with a JPG or WebP fallback.

    Because browser Canvas support for *encoding* AVIF varies widely across operating systems and browser versions, this tool uses the `@jsquash/avif` WebAssembly encoder directly. That guarantees consistent AVIF output even on browsers that can decode AVIF but cannot export it via `canvas.toBlob`.

    AVIF encoding is computationally heavier than JPG or WebP, so large multi-megapixel photos can take several seconds each on CPU. Resizing oversized 4000px camera photos to web display widths like 1600px makes encoding much faster and saves even more bytes.

    Frequently asked questions

    Why does JPG to AVIF take longer than JPG to WebP?

    AV1 compression inspects far more prediction modes than WebP or JPEG, and encoding runs in WebAssembly on your CPU. Capping large images to 1600px–2000px speeds it up considerably.

    What quality setting works best for AVIF?

    AVIF quality numbers are not on the exact same visual scale as JPEG; 65% to 75% usually delivers crisp photos with major byte savings.

    Will AVIF files open everywhere?

    All major modern browsers open AVIF, as do Windows 11, macOS Ventura+, and iOS 16+. Older desktop apps may still require JPG.

    Are photos uploaded to encode AVIF?

    No. The `@jsquash/avif` WebAssembly encoder runs locally inside your browser.