AVIF to Clean JPGLinear-light #ffffff matte · MozJPEG Q90 4:4:4 (straight-edge.avif)

AVIF to JPG Converter with Linear Matte Blending

Flatten transparent or opaque AVIF graphics onto a custom hex background in linear light and encode crisp MozJPEG files locally.

Drop an AVIF or JPEG XL image to convert instantly

Still or animated · up to 25 MB / 36 MP · stays on your device

Background Fill:
Processing Details· Automatic transparency & color accuracy
Verified Sample · CC0-1.0Sample file: straight-edge.avif (539 B)

Verified Sample Result & Instant Demo

Try Sample File in 1 Click

When flattening 8x8 transparent straight-edge.avif onto #ffffff at MozJPEG quality 90, what output dimensions and byte footprint are produced?

JPEG Width
8px
JPEG Height
8px
Matte Color
#ffffffhex
MozJPEG Quality
90q
Encoded JPEG Size
362B
Cryptographic SHA-256 & Engine Provenance
Sample Input File
straight-edge.avif · 539 bytes · CC0-1.0
Browser Codec Engine
@jsquash/jpeg 1.6.0
Input SHA-256 Digest
a039b26cae70db41f8d470bc17f1bc0750d87dcf0b7082d9ef4308ce6c1ea77c
Engine Artifact SHA-256
24d4177f1c4963e2058b107189249651c61fdef125570e79b1dfb63c8bb49326
Reference Verification
MozJPEG WASM 4:4:4 1.6.0
Schema & Preset ID
avif.aviftopngtool.avif-to-jpg.v1 · avif-to-jpg-matte · proj-white-matte-q90-jpg

Linear-Light Matte Compositing and Chroma Subsampling for AVIF to JPEG

Eliminating Gamma-Darkened Seams When Flattening Transparency

Baseline baseline JFIF/JPEG bitstreams do not carry an alpha channel. Whenever a product cutout, sticker, or UI screenshot stored as RGBA AVIF is exported to JPG, transparent and semi-transparent pixels must be blended over a solid background color. Performing alpha interpolation directly on gamma-encoded sRGB bytes darkens mid-opacity transitions because sRGB follows a non-linear 2.4 power curve rather than physical photon intensity.

This workflow converts both foreground straight-alpha RGB and your chosen hex backdrop (#ffffff white by default) into linear light via an exact IEC 61966-2-1 lookup table, blends C_lin = C_fg * alpha + C_matte * (1 - alpha), and re-encodes sRGB bytes prior to MozJPEG compression. At quality 90 and above, chroma subsampling automatically switches from 4:2:0 to full-resolution 4:4:4 so saturated red or teal typography edges remain razor-sharp.

  • Supports any 3-digit or 6-digit hex matte color alongside an A/B toggle between linear-light and direct sRGB blending.
  • Automatic 4:4:4 YCbCr chroma retention at quality >= 90 prevents colored blockiness on synthetic edges.
  • Outputs clean baseline/progressive JFIF segments with SOI (0xFFD8) and EOI (0xFFD9) markers free of private EXIF leaks.

Common Questions & Answers

Why do transparent AVIF logos turn black when converted to JPG in basic tools?

Unassociated zero-alpha pixels canonically store RGB=(0,0,0). Dropping the alpha plane without compositing exposes raw black bytes; our compositor blends onto white (#ffffff) or any custom hex matte first.

When should I choose 4:4:4 quality 90+ over lower JPEG settings?

Use quality 90 or higher whenever your AVIF contains UI text, badges, or saturated vector edges so MozJPEG disables 2x2 chroma subsampling.

100% Private In-Browser Processing

Verified local execution

  • Zero Cloud Uploads

    Your files stay on this device and are never sent to any remote server.

  • Instant Local Speed

    Runs directly on your device up to 25 MB with no upload queue.

  • No Account Needed

    Open a file, inspect your preview, and download immediately without signing up.

View Security Architecture
Execution Sandbox
Dedicated Web Worker
Post-Init Network
Locked (0 Egress)
Max File Budget
25 MB
Cross-Origin Isolation
Single-Thread WASM

After local WebAssembly initialization, Worker network APIs (fetch, XMLHttpRequest, WebSocket) are locked to prevent outbound data egress.