What is inside an Ultra HDR file
Google's Ultra HDR format keeps a standard-range image and a logarithmic gain map together in one JPEG. Three pieces do the work, and it helps to know which is which when a file misbehaves.
- The primary image is a standard SDR JPEG. Its XMP block carries a directory of the items in the file and a marker declaring the gain-map version.
- The gain map is a second JPEG appended to the first, 8-bit and single channel. The specification recommends a quarter of each dimension of the primary, and it must have the same orientation.
- The Multi-Picture Format index is a small table, defined by a camera-industry standard, that tells a reader where the extra image starts and how long it is.
The gain map carries its own XMP metadata too, holding the numbers a reader needs: the log2 of the minimum and maximum boost, a gamma, offsets for the SDR and HDR sides, and the range of display brightness the map was made for.
How a viewer rebuilds the bright version
A viewer takes an SDR pixel and the matching gain-map value, turns the map value into a boost in stops, scales it by how much brighter the current display can go than SDR white, and multiplies. The specification expresses this as a weight. The boost is interpolated in the log domain between the minimum and maximum, then applied as two raised to that boost times the weight. At weight zero you get the SDR image exactly, and at full weight you get the whole boost. A display with partial headroom lands somewhere between, which is how one file adapts to many screens.
Why an Ultra HDR file still opens in old software
The designers picked backward compatibility over elegance. A brand-new HDR container would show up broken or washed out in every program that had never heard of it, and anyone who has watched a mail client choke on an attachment type will see the problem. A JPEG with an extra payload degrades gracefully instead. Android Developers states that older software ignores the extra data and shows the SDR image. The second image lives in the multi-picture structure and in XMP that those readers never look at, and if a supporting reader finds the metadata invalid, it falls back to the SDR image as well.
Gain maps are also being standardized more widely. ISO 21496-1:2025, titled Gain map metadata for image conversion, covers how a gain map and its metadata are specified and applied. Version 1.1 of Google's specification changed nothing in the file format but notes that a JPEG can carry both the original and the ISO metadata. The area is still moving, so expect differences between devices and apps.
Why your HDR photo looks flat
- The display can't go brighter. With no headroom above SDR white the weight is zero, and you see the SDR image.
- The app ignores the gain map. Plenty of programs read only the primary JPEG.
- The file lost it in transit. Chat apps, social networks and editors often re-encode a JPEG, and that drops the attached image.
- The scene had little to boost. A flat, evenly lit photo has small gain values, so there's not much to see.
Android's documentation says Ultra HDR arrived in Android 14, is shown at full intensity on Android 14 or later with an HDR-capable screen, and that other devices display the SDR version.
Going from Ultra HDR to SDR, and why the reverse doesn't work
Ultra HDR to ordinary SDR is easy because the base image already is SDR. Drop the second image and you have a normal JPEG, which is what happens when a tool redraws the pixels and saves again. The other direction isn't a conversion at all. A gain map has to describe brightness the camera really captured, and a standard SDR JPEG doesn't contain that. A tool that adds a map to such a file is inventing highlights.
Open your own file and see the numbers
The Ultra HDR inspector opens a JPEG in your browser, reports whether a gain map is present, lists its numbers and previews the effect squeezed into SDR range. It makes no network requests and doesn't claim to show true HDR. If you want to see what else a photo file carries besides a gain map, the photo metadata viewer lists the EXIF and XMP markers, and if the picture is simply underexposed, brightening a dark photo is a different problem with a different fix.
How much bigger does the file get?
The gain map adds a second JPEG, but because it's single-channel and usually smaller in pixels than the main image, it adds far less than a second full photo would. The exact increase depends on the file and the encoder. If size matters for the web, PNG versus WebP is worth a look as well.
Questions people ask
What is an Ultra HDR image?
It's a JPEG with an attached gain map and metadata, which lets capable software and displays show brighter highlights than a normal JPEG can. Everything else about the file is a standard SDR photo.
How can an Ultra HDR file open in older software?
The main image is a normal SDR JPEG. Programs that don't know the format read that image and ignore the appended gain map and its metadata, so the photo simply looks standard.
Why does my HDR photo look ordinary?
Usually the display or the app lacks support, the file was re-encoded somewhere and lost its gain map, or the scene had little extra brightness to show. Any one of the three is enough.
Can I save an Ultra HDR photo as a standard JPG?
Yes. Save the standard image without the gain map, for example by redrawing it on a canvas and re-encoding it. You lose the HDR effect and keep the picture.
Can an ordinary photo be made into Ultra HDR?
No, not from the JPEG alone. The brightness information was discarded when the photo was saved, so any gain map added afterward would be a guess.
Does an Ultra HDR file get much bigger?
It grows by the size of the gain map. That map is single channel and typically smaller in pixels than the main image, so the increase is well under a second full photo.
Sources