Transparency studioStraight RGBA8 PNG export · canonical RGB=0 at α=0 (straight-edge.avif)

AVIF to PNG Converter

Decode still AVIF images into lossless 8-bit straight-alpha RGBA PNGs inside an isolated browser WebAssembly Worker with zero server uploads.

Drop an AVIF or JPEG XL image to convert instantly

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

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

Does straight-edge.avif export to an 8x8 RGBA PNG preserving all eight distinct auxiliary alpha steps (0..255) without darkening red edge RGB?

PNG Width
8px
PNG Height
8px
Decoded Alpha Span
0..255u8
Zero-Alpha Pixels
8px
Encoded PNG Size
332B
Cryptographic SHA-256 & Engine Provenance
Sample Input File
straight-edge.avif · 539 bytes · CC0-1.0
Browser Codec Engine
@jsquash/avif 2.1.1
Input SHA-256 Digest
a039b26cae70db41f8d470bc17f1bc0750d87dcf0b7082d9ef4308ce6c1ea77c
Engine Artifact SHA-256
5c35dde23dfd862088a49a6b8a9fe81f9f9a1a46aaa27de7efd7baa7611c4b47
Reference Verification
Pillow AVIF Codec 12.3.0
Schema & Preset ID
avif.aviftopngtool.home.v1 · avif-to-png-rgba · proj-straight-rgba-png

Preserving Straight-Alpha RGBA Fidelity During AVIF to PNG Conversion

Why Auxiliary AV1 Alpha Planes Corrupt Under Naive Canvas Pipelines

ISO BMFF AVIF stills store transparency inside a separate monochromatic AV1 auxiliary item linked via an auxl item reference rather than interleaving alpha samples into the primary color plane. When browser tools route AVIF bitstreams through a 2D HTMLCanvasElement, the compositor converts unassociated pixels into premultiplied RGBA8 in 8-bit integer precision and then divides back out on PNG serialization. That lossy roundtrip crushes faint drop-shadow gradients and introduces visible color shifts along anti-aliased UI icons.

Our Dedicated Worker bypasses browser 2D canvas quantization entirely by decoding the primary color item and auxiliary alpha item directly through libavif WebAssembly (@jsquash/avif/decode) into canonical straight-alpha RGBA8 memory. If an input container explicitly declares premultiplied association through an ISO iref prem box, the pipeline unpremultiplies color channels exactly once before PNG encoding.

  • Canonicalizes RGB bytes to (0, 0, 0) wherever alpha equals zero to maximize PNG DEFLATE compression and eliminate hidden color bleed.
  • Validates dimensions and working-set memory before allocation, enforcing a strict 36-megapixel and 25 MB local safety envelope.
  • Locks Worker outbound network APIs (fetch, XMLHttpRequest, WebSocket) immediately after WASM instantiation.

Common Questions & Answers

Does converting AVIF to PNG lose transparency on semi-opaque borders?

No. The Worker decodes the auxiliary AV1 alpha plane directly into straight-alpha 8-bit RGBA and writes a PNG color-type 6 chunk without browser canvas premultiplication.

What happens if I drop an iPhone HEIC photo onto this AVIF converter?

Bounded ISOBMFF brand and item-codec sniffing detects HEVC-coded containers immediately and provides a zero-data handoff link to our dedicated HEIC tool.

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.