Back to Home 100% Free

Pic to HDR Converter

Convert PNG, JPG, and other formats to Radiance HDR (RGBE) high dynamic range images offline.

Drag & Drop Your Images Here

Supports PNG, JPG, WEBP, GIF, BMP, SVG, TIFF (Max 20MB per file)

Transformation Settings

Width (px)
Height (px)

Used to blend transparent dynamic range layers into an opaque background.

Understanding the Radiance HDR File Format

The Radiance HDR (RGBE) format, originally developed by Greg Ward for the Radiance rendering system, is one of the most widely adopted formats for storing high dynamic range images. Unlike standard dynamic range (SDR) formats that restrict color values to 8 bits per channel (0 to 255), HDR encodes color values as floating-point numbers. A standard Radiance HDR file contains:

  • Text Header: Starts with #?RADIANCE or #?RGBE and contains metadata such as the pixel color format identifier (e.g., FORMAT=32-bit_rle_rgbe) and exposure commands.
  • Resolution String: Defines the rendering orientation and dimensions, typically formatted as -Y height +X width.
  • RGBE Pixel Stream: Encodes Red, Green, Blue, and a shared Exponent component in 4 bytes per pixel, preserving fine details in both dark shadows and bright highlights.

RLE Scanline Compression in RGBE Files

To maintain a compact footprint, Radiance HDR implements a dedicated run-length encoding (RLE) scheme on a scanline-by-scanline basis:

  • Each compressed scanline starts with a 4-byte marker: [2, 2, (width >> 8) & 255, width & 255].
  • The four color channels (Red, Green, Blue, Exponent) are separated and compressed individually rather than interleaved.
  • Runs of identical bytes are packed using a count byte ($>128$), while unique byte sequences are written directly with their length. This structure reduces files sizes significantly while ensuring lossless decoding.

SDR to HDR Conversion: Exposure & Gamma

When converting standard dynamic range pictures (PNG/JPG) to HDR, sRGB colors are normalized to floating-point values. An exposure multiplier slider allows you to scale the luminance values of the output, simulating HDR capture. Applying gamma correction ensures that colors scale non-linearly, keeping shadows clear and highlights from blowing out.

Actionable HDR Integration & Best Practices Checklist

1. Keep Aspect Ratio Locked for Resizing

Lock the aspect ratio when scaling textures to preserve the correct shape of assets inside game engines or rendering environments.

2. Choose Color Space Wisely

Use Linear sRGB color space mapping to reverse gamma curves before encoding, which is optimal for physical lighting systems.

3. Blend Alpha Channels

Since Radiance HDR does not support alpha transparency, use the background picker to blend transparent PNG borders into a solid backdrop.

4. Secure Client-Side Execution

All data processing is performed directly on your local device. No images are uploaded to any external server.

HDR Specifications

MIME Type

image/vnd.radiance

Format Type

Radiance HDR (RGBE format).

Color Palette

32-bit High Dynamic Range (R, G, B channels with shared Exponent).

Compression Method

Adaptive scanline run-length encoding (RLE).

Why HDR?

Radiance HDR is standard in 3D computer graphics pipelines, physically-based rendering (PBR) workflows, game engines like Unreal Engine and Unity, and environment lighting setups (reflection and skybox domes).

Frequently Asked Questions

What is a Radiance HDR image file?

Radiance HDR (also known as RGBE) is an image format that represents high dynamic range lighting values. It uses 4 bytes per pixel, where three bytes represent the color mantissas (Red, Green, Blue) and the fourth byte serves as a shared exponent.

How does the RGBE format pack pixels?

It encodes a pixel's RGB float value by finding the maximum channel component, calculating its exponent, scaling the Red, Green, and Blue values into integer bytes, and storing the exponent value offset by 128 in the fourth byte.

Why use Linear sRGB color space mapping?

Linear sRGB mapping removes gamma correction from standard dynamic range inputs. This translates colors into linear luminance values, which are required for physically-based shaders and game engines to evaluate lighting accurately.

How does scanline RLE compression operate?

RLE compression encodes rows of pixels. Rather than interleaving RGBE bytes, it compresses each channel component (R, G, B, E) separately for the entire width of the row, converting repetitive color sequences into tiny runs to shrink file sizes.

Is the HDR converter safe?

Yes. All file encoding is executed locally in your browser sandbox using HTML5 Canvas. No image data is transmitted to external servers, providing 100% security.

Can I load transparent images?

Yes. If your image contains alpha transparency, it will be blended with your chosen background color picker (defaulting to white) before mapping into high dynamic range RGBE space.

Mascot assistant is ready!