Convert HDR to AVIF

Drag and drop files here or click to select.
Max file size 100mb.
Uploading progress:

HDR vs AVIF Format Comparison

Aspect HDR (Source Format) AVIF (Target Format)
Format Overview
HDR
Radiance RGBE High Dynamic Range

The Radiance HDR format was created in 1985 by Greg Ward at Lawrence Berkeley National Laboratory for physically accurate lighting simulation. It stores 32-bit floating-point data per channel using a compact RGBE (Red, Green, Blue, Exponent) encoding that captures an enormous luminance range from deep shadows to blazing highlights. HDR files are foundational in 3D rendering, VFX compositing, and image-based lighting (IBL) workflows where realistic light transport is essential.

Lossless Standard
AVIF
AV1 Image File Format

AVIF is a modern image format introduced in 2019, based on the royalty-free AV1 video codec developed by the Alliance for Open Media. It delivers exceptional compression efficiency, achieving 30-50% smaller files than JPEG at equivalent visual quality. AVIF supports 8-bit, 10-bit, and 12-bit color depths, HDR content via PQ and HLG transfer functions, alpha transparency, and wide color gamut (BT.2020). It is rapidly gaining browser support and is the preferred next-generation web image format.

Lossy Modern
Technical Specifications
Color Depth: 32-bit float per channel (96-bit RGB via RGBE)
Compression: Run-length encoding (RLE) on RGBE data
Transparency: Not supported
Animation: Not supported
Extensions: .hdr, .pic
Color Depth: 8-bit, 10-bit, 12-bit per channel
Compression: AV1 intra-frame (lossy and lossless modes)
Transparency: Full alpha channel support
Animation: Supported (AVIF sequences)
Extensions: .avif
Image Features
  • Dynamic Range: Captures extreme luminance ratios (10^76:1 theoretical)
  • Transparency: Not supported
  • Metadata: Minimal (resolution, exposure, software info)
  • Color Space: Linear RGB with floating-point precision
  • HDR: Native — designed specifically for HDR content
  • Tone Mapping: Required for display on standard monitors
  • Dynamic Range: SDR and HDR via PQ/HLG transfer functions
  • Transparency: Full alpha channel with smooth blending
  • Metadata: EXIF, XMP, ICC profiles supported
  • Color Space: sRGB, Display P3, BT.2020 wide gamut
  • HDR: Supported with 10/12-bit depth and PQ curves
  • Chroma Subsampling: 4:4:4, 4:2:2, 4:2:0, monochrome
Processing & Tools

HDR file handling with ImageMagick and Python:

# View HDR image info
magick identify scene.hdr

# Tone map HDR to standard range
magick scene.hdr -evaluate Log 10000 \
  tonemapped.png

# Python with imageio
import imageio
hdr = imageio.imread('scene.hdr', format='HDR-FI')

AVIF encoding with modern tools:

# Convert to AVIF with quality control
magick input.png -quality 50 output.avif

# Encode AVIF with avifenc
avifenc --min 20 --max 30 input.png output.avif

# Python with Pillow + pillow-heif
from pillow_heif import register_heif_opener
register_heif_opener()
img.save('output.avif', format='AVIF', quality=50)
Advantages
  • Captures full physical luminance range of real-world scenes
  • 32-bit floating-point precision prevents banding in gradients
  • Essential for image-based lighting (IBL) in 3D rendering
  • Compact RGBE encoding keeps file sizes manageable
  • Industry standard in VFX and scientific visualization
  • Allows post-capture exposure adjustment without clipping
  • Best compression efficiency of any current image format
  • 30-50% smaller than JPEG at equivalent visual quality
  • Supports HDR, wide color gamut, and 12-bit depth
  • Alpha transparency with excellent compression
  • Royalty-free (Alliance for Open Media)
  • Growing browser support (Chrome, Firefox, Safari, Edge)
  • Both lossy and lossless compression modes
Disadvantages
  • Cannot be displayed directly on standard monitors without tone mapping
  • Large file sizes compared to standard image formats
  • No transparency or alpha channel support
  • Limited software support outside professional 3D/VFX tools
  • Not suitable for web use or general image sharing
  • Slow encoding speed compared to JPEG (CPU-intensive AV1 codec)
  • Not yet universally supported (older browsers/devices)
  • Complex encoder with many tuning parameters
  • Decoding can be slower than JPEG on low-power devices
  • Limited support in legacy image editing software
Common Uses
  • Environment maps for 3D rendering and IBL lighting
  • HDR photography source files for tone mapping
  • VFX compositing with physically accurate light values
  • Scientific imaging requiring full luminance range
  • Game development skyboxes and light probes
  • Next-generation web images replacing JPEG/WebP
  • Mobile app assets with high compression
  • HDR photo delivery for HDR-capable displays
  • Social media and messaging platforms
  • E-commerce product photography
  • Streaming service thumbnails and UI assets
Best For
  • 3D artists needing physically accurate lighting data
  • Photographers creating HDR bracketed exposures
  • VFX studios requiring full dynamic range compositing
  • Game developers building IBL and reflection probes
  • Web developers seeking maximum compression with quality
  • Sharing tone-mapped HDR content on modern platforms
  • Replacing JPEG for bandwidth-sensitive applications
  • Delivering HDR content to compatible displays
  • Progressive web apps requiring small image payloads
Version History
Introduced: 1985 (Greg Ward, LBNL)
Current Version: Radiance RGBE (stable since 1991)
Status: Mature, widely adopted in 3D/VFX
Evolution: RGBE (1985) → Radiance Software (1991) → OpenEXR alternative (2003)
Introduced: 2019 (Alliance for Open Media)
Current Version: AVIF 1.0 (based on AV1)
Status: Active development, rapidly growing adoption
Evolution: AV1 codec (2018) → AVIF spec (2019) → Browser support (2020+)
Software Support
Image Editors: Photoshop (via plugin), GIMP, Luminance HDR
Web Browsers: Not natively viewable in browsers
OS Preview: Limited — requires HDR-capable viewers
3D Software: Blender, 3ds Max, Maya, Unity, Unreal Engine
CLI Tools: ImageMagick, Radiance tools, Pillow, imageio
Image Editors: GIMP 2.10+, Photoshop (limited), Paint.NET
Web Browsers: Chrome 85+, Firefox 93+, Safari 16+, Edge 121+
OS Preview: Windows 11, macOS Ventura+, Linux (via libraries)
Mobile: Android 12+, iOS 16+
CLI Tools: libavif, avifenc/avifdec, ImageMagick, Pillow

Why Convert HDR to AVIF?

Converting HDR to AVIF bridges the gap between professional high dynamic range imaging and modern web delivery. Radiance HDR files store the full physical luminance range of a scene using 32-bit floating-point precision, making them indispensable for 3D rendering and VFX — but completely unusable on the web or in standard image viewers. AVIF, built on the AV1 codec, offers the most advanced compression available today while optionally preserving HDR information through PQ and HLG transfer functions, making it the ideal target format for sharing tone-mapped HDR content.

The conversion process applies tone mapping to compress the vast dynamic range of the HDR file into a displayable range. This transformation intelligently maps the floating-point luminance values to 8-bit or 10-bit output, preserving shadow detail and highlight information that would be lost with simple clipping. AVIF's superior compression then encodes this tone-mapped result at a fraction of the file size that JPEG or PNG would require, making it practical to share HDR-originated content across bandwidth-constrained channels like websites and mobile apps.

AVIF's support for 10-bit and 12-bit color depth makes it particularly well-suited as a target for HDR content. While the full 32-bit floating-point range of the HDR source must be reduced, AVIF's extended bit depth preserves more tonal gradations than 8-bit formats, reducing banding artifacts in smooth gradients like skies and studio lighting. For HDR display delivery, AVIF can encode PQ (Perceptual Quantizer) transfer functions, allowing HDR-capable monitors to reconstruct a portion of the original dynamic range.

File size reduction is dramatic: a 10 MB HDR environment map can become a 200-400 KB AVIF at high visual quality. This makes AVIF the practical choice for web portfolios of HDR photography, thumbnail previews of 3D lighting setups, and any workflow where HDR source material needs to reach a broad audience. The format's royalty-free licensing and growing browser support ensure long-term viability for this conversion path.

Key Benefits of Converting HDR to AVIF:

  • Extreme Compression: 30-50% smaller than JPEG for equivalent quality, turning large HDR files into web-ready assets
  • HDR Preservation: 10/12-bit depth and PQ transfer functions retain more dynamic range than 8-bit formats
  • Web Compatible: Supported in Chrome, Firefox, Safari, and Edge for direct browser display
  • Tone Mapping: Automatic conversion from 32-bit floating-point to displayable range
  • Wide Color Gamut: AVIF supports BT.2020 and Display P3, preserving color accuracy from HDR sources
  • Alpha Transparency: Add transparent regions not available in the original HDR format
  • Future-Proof: Royalty-free AV1 codec backed by Google, Apple, Netflix, and Mozilla

Practical Examples

Example 1: Sharing an HDR Environment Map as a Web Preview

Scenario: A 3D artist has created an HDR environment map for a client and needs to share a preview on their portfolio website without requiring specialized HDR viewers.

Source: studio_lighting.hdr (12.4 MB, 4096x2048px, 32-bit RGBE)
Conversion: HDR → AVIF (tone mapped, quality 50)
Result: studio_lighting.avif (285 KB, 4096x2048px, 10-bit)

Workflow:
1. Upload HDR environment map
2. Automatic tone mapping compresses 32-bit range to viewable 10-bit
3. AVIF encoding at quality 50 achieves 97% size reduction
✓ Preview loads instantly on portfolio website
✓ Client views on any modern browser without plugins
✓ Original HDR preserved for actual 3D rendering work

Example 2: HDR Photography Portfolio for Web Gallery

Scenario: A photographer has HDR bracketed images merged into Radiance HDR format and needs to create web-optimized versions for an online gallery that look stunning on both SDR and HDR displays.

Source: sunset_landscape.hdr (8.7 MB, 6000x4000px, 32-bit float)
Conversion: HDR → AVIF (tone mapped, quality 60)
Result: sunset_landscape.avif (410 KB, 6000x4000px, 10-bit)

Benefits:
✓ 95% file size reduction while maintaining visual impact
✓ AVIF preserves smooth gradient transitions in sky
✓ 10-bit depth eliminates banding in subtle tonal ranges
✓ HDR-capable displays show enhanced dynamic range via PQ
✓ Fast loading on mobile connections (under 500 KB)

Example 3: Game Development Light Probe Thumbnails

Scenario: A game studio has a library of hundreds of HDR light probes and needs to generate small preview thumbnails for an internal asset management system accessed through a web browser.

Source: outdoor_park_probe.hdr (5.2 MB, 2048x1024px, RGBE)
Conversion: HDR → AVIF (tone mapped, quality 40)
Result: outdoor_park_probe.avif (48 KB, 512x256px, 8-bit)

Asset management workflow:
✓ Batch convert hundreds of HDR probes to AVIF thumbnails
✓ Average 99% size reduction per probe preview
✓ Internal web tool loads asset library in seconds
✓ Artists quickly identify correct light probe visually
✓ Original HDR files remain untouched for engine import

Frequently Asked Questions (FAQ)

Q: What is tone mapping and why is it needed for HDR to AVIF conversion?

A: Tone mapping is the process of compressing the enormous luminance range stored in an HDR file (which can represent brightness values from near-zero to millions) down to a range that standard displays can show. HDR files store 32-bit floating-point values per channel, while AVIF typically outputs 8-bit or 10-bit. Without tone mapping, highlights would clip to pure white and shadows would crush to black. The tone mapping algorithm intelligently redistributes tonal values so that detail is preserved across the entire brightness range.

Q: Does the AVIF output preserve the full dynamic range of the HDR source?

A: No — the full 32-bit floating-point range cannot be preserved in AVIF's 8-bit or 10-bit container. However, AVIF with 10-bit depth and PQ (Perceptual Quantizer) transfer functions can encode a significantly wider range than standard 8-bit formats. The conversion applies intelligent tone mapping that preserves the most visually important information. For workflows requiring the full HDR range, keep the original .hdr file and use the AVIF as a display-ready preview.

Q: How much smaller is the AVIF compared to the original HDR file?

A: The size reduction is typically 90-99%. A 10 MB HDR file commonly becomes 200-500 KB as AVIF at good visual quality. This dramatic reduction comes from two factors: the bit depth reduction (32-bit float to 8/10-bit integer) and AVIF's highly efficient AV1 compression. Even compared to JPEG at similar quality, AVIF is 30-50% smaller, making it the most efficient choice for web delivery of HDR-originated content.

Q: Can I convert the AVIF back to HDR format?

A: No — the conversion is one-directional. The tone mapping process irreversibly compresses the dynamic range, and the bit depth reduction from 32-bit float to 8/10-bit integer permanently discards luminance precision. The AVIF contains a tone-mapped representation, not the original scene-referred data. Always keep your original HDR files if you need the full dynamic range for 3D rendering, IBL lighting, or future re-processing.

Q: Which browsers support AVIF images?

A: As of 2026, AVIF is supported in Chrome 85+, Firefox 93+, Safari 16+ (macOS Ventura and iOS 16), and Edge 121+. This covers approximately 92-95% of global web traffic. For the remaining browsers, you can use the HTML <picture> element to provide a JPEG or WebP fallback. Android 12+ and iOS 16+ also support AVIF natively in their image libraries.

Q: Should I use AVIF or WebP for converted HDR content?

A: AVIF is the better choice for HDR-originated content. It offers 20-30% better compression than WebP, supports 10-bit and 12-bit color depth (WebP is limited to 8-bit), and can encode HDR metadata with PQ transfer functions. WebP has slightly broader browser compatibility and faster encoding, but for content originating from HDR sources where preserving tonal quality matters, AVIF's advantages are significant.

Q: What quality setting should I use for HDR to AVIF conversion?

A: For HDR content, quality 40-60 typically provides an excellent balance between file size and visual quality. HDR scenes often contain smooth gradients (skies, studio lighting) where AVIF excels even at lower quality settings. Quality 50 is a good starting point — the AV1 codec is efficient enough that artifacts are minimal. For critical work like portfolio images, use quality 65-75. For thumbnails and previews, quality 30-40 is usually sufficient.

Q: Can I batch convert multiple HDR files to AVIF at once?

A: Yes — our converter supports uploading multiple HDR files simultaneously. Each file is tone-mapped and encoded to AVIF independently, and you can download the results as they complete. For very large batches (hundreds of files), processing may take longer because AVIF encoding is computationally intensive compared to JPEG. The AV1 codec prioritizes compression quality over encoding speed.