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.
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.
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.
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.
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.
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.
MoreJPEG
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
Output Format: AVIF
Technical Specifications
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