JPEG to AVIF Converter: Lossless In-Browser Re-Encode

Wrap a JPEG into an AVIF file in your browser using the AV1 codec in lossless mode. No new compression on top of the source, no uploads, files stay on your device.

Browser Native
Privacy First
Free Tool

Convert Now

Drag & drop your file here

or

How It Works

AVIF is a still image wrapped in the AV1 video codec, published by the Alliance for Open Media as a royalty-free answer to HEIC. People who already shipped JPEGs reach for it for two reasons: AV1's intra-frame compression beats JPEG at the same visual quality, and every current browser engine (Chrome, Firefox, Safari 16+) decodes it without a plugin or license fee. This page does one specific job: it takes an existing JPEG and re-writes its pixels into an AVIF file without adding a second round of lossy compression. Mechanically, the browser decodes the JPEG through its native image pipeline (createImageBitmap), draws it to an OffscreenCanvas, and reads back the raw RGBA pixels. Those pixels go straight into @jsquash/avif, a WebAssembly build of libavif, encoding at effort 6 with lossless turned on. Lossless here means relative to the decoded bitmap: every pixel the JPEG renders to is preserved bit for bit in the AVIF. No new quantization, no extra blocking, no chroma smearing layered on top of what the JPEG already had. That design has a consequence worth stating up front: because your JPEG was already compressed lossily, a lossless AVIF re-encode bakes in the existing JPEG artifacts and usually will not shrink the file. On photographs a lossless AVIF often lands near the JPEG's size or above it. The dramatic AVIF size wins you read about come from lossy encoding at a target quality, which this tool deliberately does not do. Use this when you need the image inside an AVIF without degrading it further; use a lossy AVIF or WebP encoder when a smaller download is the actual goal. Nothing leaves the tab. The decode, the WASM encode, and the download all run on your machine, and the image is dropped from memory when you close the page.

Related Conversion Tools

Discover more powerful converters that might be useful for your workflow

JPEG to JXL Converter: Lossless Re-Encode in Browser

Convert JPEG to JPEG XL (.jxl) locally in your browser. Lossless re-encode of the decoded pixels, no uploads, no server, no sign-up.

.jpg.jpeg
Try Now

JPEG to PNG Converter: Lossless Copy, Browser-Side

Convert JPEG to PNG locally, no uploads. Get a lossless working copy for tools that demand PNG. Honest about why it won't add quality and why it's bigger.

.jpg.jpeg
Try Now

JPEG to WebP Converter: Shrink Photos for the Web

Convert JPEG photos to WebP right in your browser to cut page weight. Lossy re-encode, no uploads, files never leave your device. Free and offline.

.jpg.jpeg
Try Now

PNG to AVIF Converter - Lossless, Keeps Transparency

Convert PNG to lossless AVIF in your browser. AV1 intra coding shrinks the file while keeping every pixel and full transparency. No uploads, runs locally.

WebP to JPEG Converter: Fast, Private, In-Browser

Convert WebP to JPEG free in your browser. Files never leave your device, transparency flattens to white, and the JPEG opens in apps that reject WebP.

.webp
Try Now

PNG to PDF: Merge Multiple Images Into One File

Combine many PNG images into one multi-page PDF in your browser. Drag to reorder pages, keep pixels sharp, nothing uploaded. No account, no watermark.

Convert toAVIF

Key Features

  • No file uploads required - works offline
  • 100% privacy focused - client-side processing
  • Browser powered - no software installation
  • Fast processing - WebAssembly technology
  • Free forever - no premium accounts

Supported File Formats

.jpg .jpeg

Output Format: AVIF

Technical Specifications

input Format JPEG / JPG (Joint Photographic Experts Group, baseline and progressive)
output Format AVIF (AV1 Image File Format)
compression Type Lossless AV1 intra-frame encoding via @jsquash/avif (libavif WASM) at effort level 6
quality Retention Lossless relative to the decoded JPEG bitmap; no additional compression loss introduced
color Space Support 8-bit sRGB, inherited from the source JPEG (no HDR or alpha, since JPEG carries neither)
max Resolution Limited only by your device's available memory
processing Time Instant, runs in your browser; larger photos take longer due to lossless AV1 encoding

Key Benefits

  • No extra quality loss: the AVIF is a pixel-faithful copy of your JPEG's decoded output
  • Decode and lossless AV1 encode run entirely in your browser via WebAssembly, with no uploads
  • Puts your image in a royalty-free AV1 container that current browsers decode without plugins
  • Preserves the source exactly, useful for archiving or feeding AVIF-only pipelines
  • Free, no account, no watermark, and no per-file limit tied to a subscription
  • Works offline once loaded, and the image is cleared from memory when you close the tab

Common Use Cases

  • Producing an AVIF that matches the source JPEG pixel for pixel
  • Checking whether a browser, CMS, or build pipeline correctly ingests AVIF input
  • Archiving photos in an open, royalty-free AV1-based container
  • Generating reference images for AVIF decode or codec comparison work
  • Handing AVIF files to tooling that requires that format without re-degrading them
  • Keeping a faithful AVIF beside the JPEG for progressive-enhancement experiments

Pro Tips

  • If you mainly want a lighter web file, use a lossy AVIF or WebP encoder instead; this lossless path usually won't shrink photos
  • Keep the original JPEG as a fallback for older Edge builds and desktop viewers that can't open AVIF
  • Expect bigger output and longer encode times on high-resolution photos, since lossless AV1 works harder than JPEG
  • Confirm your target browsers (especially pre-2024 Edge) decode AVIF before shipping converted images
  • Convert one image at a time and let each finish to keep memory stable on large files

Frequently Asked Questions

Usually not. This tool encodes in lossless mode, preserving your JPEG's decoded pixels exactly instead of recompressing them, so on typical photos the AVIF comes out around the same size as the JPEG or larger. AVIF's reputation for tiny files comes from lossy encoding at a chosen quality target. This page avoids that on purpose so it never stacks a second round of compression on an already-lossy JPEG. If a smaller download is your goal, reach for a lossy AVIF or WebP encoder instead.
No. The encoder reproduces every pixel the JPEG decodes to without discarding additional detail. Whatever blocking or ringing your JPEG already had is carried over faithfully, but the AVIF step introduces none of its own. The result is a pixel-identical copy of what your JPEG renders, just in an AV1 container.
When you need the image in an AVIF container without degrading it further: archiving a master, feeding a build pipeline or CMS that expects AVIF input, or producing a reference file for codec testing. If the only point is a lighter web asset, lossy AVIF or WebP will serve you far better, since lossless on a photo gives you the size penalty without a smaller-file payoff.
Chrome (since v85, 2020), Firefox (since v93, 2021), and Safari 16 and later all decode AVIF natively. Microsoft Edge only added native AVIF support in early 2024, so older Edge builds need a fallback. Many desktop viewers and older OS image previews still can't open AVIF at all, so keep the original JPEG around if your audience is broad.
No. The JPEG is read into memory, decoded, and re-encoded to AVIF entirely through WebAssembly inside your browser tab. No network request carries the file anywhere, which also means it works offline once the page has loaded.
It processes one file per run to keep memory predictable, since lossless AV1 encoding is CPU and RAM heavy. Run them back to back; each is independent. Expect larger or higher-resolution images to take noticeably longer, because lossless AV1 does far more work per pixel than JPEG decoding ever did.
No, and the format isn't the limit here, the source is. AVIF supports an alpha channel and HDR, but a JPEG has neither, so the output is an opaque, standard-range 8-bit sRGB AVIF. You only get alpha or HDR when the original image already contains them, for example a PNG with transparency or an HDR capture.
For the smallest file at a given quality, lossy AVIF generally edges out WebP on photographs. For widest compatibility and faster encoding, WebP is the safer pick. Since this page does lossless AVIF specifically, choose it for fidelity inside an AV1 container, and choose a lossy WebP or AVIF tool when cutting file size is what you're after.