Cookie Consent by Free Privacy Policy Generator

How to create an HDR EXR image

Updated 21 October 2026 · 3 min read

An EXR file is one of the best sources you can have for an HDR photo. It stores the full range of light of the image, far beyond what a normal photo keeps, and HDRJPG turns it into files every browser can show. This guide shows how to create one, whether your photo is already HDR or not.

Why 32 bits

A normal photo stores each color channel in 8 bits: 256 levels, from black to the brightest white the file can hold. Anything brighter than that white is lost. 16-bit images have finer steps, but the same ceiling.

An HDR image needs room above that white: for a light bulb, a neon sign or the sun, which on an HDR screen should shine brighter than a white page. 32-bit images store each channel as a floating point number, with no ceiling, so they keep that extra light. EXR is the file format made for them.

If you are already working in HDR

Many modern cameras and editing workflows produce HDR images. If yours is already HDR, make sure it is in 32-bit RGB and save it in EXR format. That is all.

If your photo is not HDR, you can expand its dynamic range while you edit it. That opens up new creative possibilities. Here is how.

Convert a normal image to HDR

Programs like Adobe Photoshop and Affinity Photo support HDR, and can turn a normal image into an HDR one. If you like retouching, you will enjoy this.

You need a screen that can show HDR, or you will not see the results. All recent Apple computers have HDR displays, and HDR photos look especially spectacular on Apple's XDR displays, which reach 1600 nits. On Windows, make sure your monitor supports HDR and that HDR is turned on in the display settings.

With Adobe Photoshop

First, enable HDR:

Photoshop's Settings menu, Technology Previews
Menu Settings > Technology Previews
The Precise color management for HDR display option in Photoshop
Option Precise color management for HDR display

Then change the image to 32 bits per channel:

Photoshop's Image, Mode, 32 Bits/Channel menu
Menu Image > Mode > 32 Bits/Channel

Now you have the extended dynamic range of HDR to work with. For example, you can raise the exposure of the highlights with a filter from Filter > Camera Raw Filter:

Camera Raw Filter in Photoshop with the histogram extending into the HDR range
The histogram now extends beyond the normal range, into the HDR range

When your HDR image is ready, save it in EXR format.

With Affinity Photo

First, convert your photo to 32 bits per channel and RGB:

Affinity Photo's Document, Convert Format / ICC Profile menu
Menu Document > Convert Format / ICC Profile
The RGB/32 (HDR) color format option in Affinity Photo
Option Color Format > RGB/32 (HDR)

Turn on HDR display in the 32-bit Preview panel, if it is not on yet:

Affinity Photo's Window, 32-bit Preview menu
Menu Window > 32-bit Preview
The Enable EDR option in Affinity Photo's 32-bit Preview panel
Option Enable EDR

You are now working in HDR. One of the many ways to extend the dynamic range of your image is a Shadows / Highlights adjustment layer:

Affinity Photo's Layer, New Adjustment Layer, Shadows / Highlights menu
Menu Layer > New Adjustment Layer > Shadows / Highlights
The Shadows / Highlights adjustment with the highlights raised into the HDR range
Raise the highlights so they extend into the HDR range

When your HDR image is ready, save it in EXR format.

Ideas for using HDR

The HDR effect works best where you use it on purpose: raise the exposure in specific parts of the image to make neon lights glow brighter, to make sunlight dazzle, or to make a rim light set a silhouette apart. The examples page has more ideas, each photo with a slider between its standard and HDR versions.

Put your EXR on the web

No browser displays EXR files, so the last step is converting it. Upload your EXR at hdrjpg.com/try, or send it through the HDRJPG API, and you get the same photo as a gain map JPEG, an HDR AVIF and an HDR MP4, each one still HDR. No single one of those formats shows HDR in every browser. Published together, with HDRJPG's recommended embedding, they show your photo in HDR in almost every browser on any HDR screen, and as a normal photo everywhere else. The formats guide explains why.

See it with your own photo

Convert an iPhone, Android or EXR photo for free, or let the API do it for every photo on your site: the first 300 conversions every month are free.

More guides

HDR image formats, explained
Gain map JPEG, Ultra HDR, ISO 21496-1, HEIC, AVIF, JPEG XL, HDR video and EXR: what each one is, which browsers show it in HDR, and why the web needs several of them at once.
How to keep the HDR from an iPhone photo on the web
iPhone photos are HDR, but a HEIC file does not show in most browsers and a plain JPEG export loses the HDR. How to turn an iPhone photo into HDR files that almost every browser shows in HDR.
How to publish HDR photos on your website
A practical guide to putting HDR photos on a web page: why one file is not enough, the multi-format set and HTML that reach almost every browser, what breaks the HDR on the way, and how to check the result.
Why your HDR photos look flat after uploading
Two reasons an HDR photo looks flat on a web page: the browser cannot show that format in HDR, or an upload step re-encoded the file. How to spot each one and how to publish so it stays HDR.