Skip to content

What Is Ultra HDR? How the Photo Format Works and Why It Often Looks Normal

The base JPEG, the gain map and its metadata, how iPhone HDR photos compare, and what sharing or compressing does to the file.

Get Stash

Quick answer

Ultra HDR is Google's photo format from Android 14: a normal JPEG plus a gain map, a small second image that says how much to brighten each area on an HDR screen. Apps that do not know the format simply show the normal JPEG.

What is inside
A standard SDR JPEG, a gain map stored as a second small JPEG, and XMP metadata that tells a viewer how to combine them.
Why it looks normal
The viewer, the screen or a past edit decides. Without HDR support, or after the gain map is stripped, only the base JPEG is shown.
iPhone photos
Apple says iPhone cameras have stored gain maps since 2020. Since iOS 18 they follow Adaptive HDR, a gain-map standard close to Ultra HDR.
When to use a vault
When the HDR original should be kept as it is, outside the Photos library and iCloud Photos, while plain copies go out.

Best overall: Stash

Photos shows HDR pictures for free, but the originals stay in a library that syncs with iCloud Photos and opens for anyone who can unlock the phone. Stash keeps chosen photos behind a PIN of its own, inside a working calculator. Imported photos are encrypted on the iPhone with AES-256, stay outside the Photos library and are not uploaded by iCloud Photos. Stash is free to download with no ads, so the calculator, the PIN and the encrypted vault are ready from the first launch.

What Ultra HDR is

Ultra HDR is an image format that Google introduced with Android 14. The Android 14 feature notes describe it as a way to keep "more of the information from the sensor when taking a photo," and state that the format "is fully backward compatible with JPEG images" (Android 14 features, as of 2 December 2026).

The key idea is in Google's format specification: the file "encodes a logarithmic range gain map image in a JPEG image file. Legacy readers that don't support the new format read and display the conventional low dynamic range image from the image file" (Ultra HDR Image Format). Readers that do support it combine the two and show an HDR picture on a screen that can display one.

So an Ultra HDR photo is not a new kind of file that old apps choke on. It is a .jpg that every program can open, with extra data that only some programs use.

The three parts of an Ultra HDR file

1. The base image. A standard dynamic range (SDR) JPEG, finished and ready to show. This is what an email client, an older photo viewer or a printer sees.

2. The gain map. Google's spec defines it as "a map indicating how much to brighten each pixel, in the SDR rendition, to produce the target HDR rendition." It is stored as a second JPEG inside the same file. It does not need to be full size: the spec suggests storing it at a quarter of the width and height, "such as a 480x270 gain map for a 1920x1080 primary image." That is why an Ultra HDR file is only somewhat larger than a plain JPEG.

3. The metadata. XMP fields in the hdrgm namespace describe the gain map, for example how many times brighter the HDR version may get. A directory called GContainer and the Multi-Picture Format from CIPA (the camera industry body) tell a reader where the second image starts. The spec also says that if this metadata is missing or invalid, "the gain map should be ignored and the SDR image should be displayed."

Android 15 adds a second set of metadata for the same gain map: when it encodes an Ultra HDR JPEG, it writes both the Ultra HDR fields and ISO 21496-1, the ISO standard for gain map metadata. Google advises that a reader which finds both should prefer the ISO 21496-1 version.

How an HDR screen uses the gain map

HDR is about brightness above normal white. Google's spec gives typical figures: an SDR display produces "about 400 cd/m² or less," an HDR display "typically 800 cd/m² or greater."

When a viewer opens an Ultra HDR photo on an HDR screen, it does a small calculation per pixel:

  1. It reads how much extra brightness the screen can give right now. The spec notes that this changes "based on device settings and other factors, such as ambient light conditions."
  2. It reads how much extra brightness the photo asks for. Google's example: a value of four means bright areas may be shown "up to 4x brighter."
  3. It uses the lower of the two and brightens the base image by the gain map, area by area.

Highlights such as sky, sun on water or a lamp get brighter; skin tones and shadows stay close to the base image. On a screen with less headroom, the same file is shown with a smaller boost, without clipping.

How iPhone HDR photos compare

iPhones use the same idea under a different name. In the WWDC24 session Use HDR for dynamic image experiences in your app, Apple says: "Since 2020, iPhone cameras have been capturing images with embedded gain maps." With iOS 18, Apple moved to what it calls Adaptive HDR gain maps, and states that "JPEG files also fully support Adaptive HDR," while HEIC remains the usual iPhone format.

Two points from the same session match Ultra HDR closely:

  • The base is SDR. "By default, images will be decoded to present the Standard Dynamic Range look," Apple says, so apps that know nothing about HDR still show a normal photo.
  • The file is a recipe. "The file does not contain an HDR image at all. But rather a set of ingredients. And a recipe." The base image and the map together produce the HDR look on a capable screen.

Apple also gives a sense of scale: for ordinary SDR images the headroom value is 1, and "for iPhone HDR photos, the value will be greater than 1 and up to 8 depending on the scene content."

The Camera takes HDR photos by default. Apple's iPhone User Guide says, as of 2 December 2026, that "By default, iPhone takes photos in HDR (for the rear camera and the front camera) when it's most effective," and only iPhone 11 models, iPhone SE (2nd generation) and iPhone 12 have a Smart HDR switch in Settings > Camera (Adjust HDR camera settings).

Why an Ultra HDR photo often looks normal

Because the base image is a complete SDR photo, anything that cannot or does not use the gain map shows that base, and the picture looks like any other JPEG. The usual causes:

  • The app does not support the format. Google's spec is explicit that legacy readers display the conventional image.
  • The screen is SDR. A laptop or monitor without HDR has no brightness above normal white to give.
  • The screen has little headroom at the moment. Brightness settings, power saving and bright surroundings all reduce how much boost a phone screen can add.
  • The gain map or its metadata is gone. An editor, an upload service or a converter that rewrites the JPEG may leave the second image or the XMP behind. Without valid metadata, the spec says to show the SDR image.

What keeps or drops the gain map

This table sums up the Google and Apple pages linked on this page and the free tools on this site.

What happens to the file Gain map used? What you see
Opened in an app that supports Ultra HDR, on an HDR screen Yes Brighter highlights, scaled to the screen
Opened in an app without Ultra HDR support No, ignored The base SDR JPEG
Shown on an SDR screen No The base SDR JPEG
Gain map metadata missing or invalid No, the spec says ignore it The base SDR JPEG
Saved by the image compressor or image resizer on this site No, output is drawn from pixels only A plain JPEG or WebP
Cleaned by the photo metadata tool on this site No, the XMP that describes the map is left out The base image, without EXIF or GPS

Converting in both directions

Ultra HDR to a normal JPEG. Nothing needs to be computed: the SDR image is already in the file. Any tool that saves the pixels as a new JPEG produces it. For an Android or iPhone HDR photo, the image compressor on this site does this in the browser, with no upload, and lets you choose a target size. A more detailed walk-through of HDR to SDR for each file type is in HDR to SDR photo converter.

A normal JPEG to Ultra HDR. Possible with software that generates a gain map, such as Google's open-source libultrahdr library named in the Android documentation. It cannot invent highlight detail the camera never stored: if the sky in the original is plain white, a gain map can make that white brighter, not show clouds that were never recorded.

When the Photos library is enough

For most HDR photos, it is. The built-in setup works well when:

  • You take, view and share photos mainly on recent phones that show HDR.
  • The photos are ordinary: family, travel, food, places.
  • You are the only person who knows the phone's passcode.

When you need more than the Photos library

HDR or not, a photo in the library follows the library's rules. Look further when:

  • The photo is private. Anyone who can unlock the phone can open Photos, and with iCloud Photos the same picture is on every signed-in device.
  • You share plain copies but want to keep the HDR original. Keeping the original apart from the copies you send makes it clear which file goes out.
  • The file should not go to an online converter. A tool that uploads the photo hands its pixels and metadata to someone else's server; the browser tools on this site work without an upload.

How to keep HDR originals with Stash

Stash looks and works like a calculator. A PIN you choose opens the vault, and items are encrypted on the iPhone with AES-256 before they are saved, with the key kept in the iOS Keychain.

  1. Install Stash on an iPhone or iPad with iOS 15 or later, choose a PIN and save the recovery key that Stash shows once during setup.
  2. In the vault, tap + and import the HDR photos you want to keep private. Stash copies them in.
  3. If you need a plain version to send, make it with the image compressor first and share that copy.
  4. In Photos, delete the originals, then empty Utilities > Recently Deleted so they also leave iCloud Photos.

The originals then sit behind the calculator and its PIN, outside the Photos library and outside iCloud Photos.

FAQ

Is Ultra HDR the same as an HDR photo from an iPhone?

They use the same approach, an SDR base image plus a gain map, but different names and metadata. Apple calls its version Adaptive HDR and stores it mostly in HEIC files; Ultra HDR is Google's JPEG format. Both are built so that older apps show a normal photo.

Which phones take Ultra HDR photos?

Google introduced the format with Android 14, and Android devices with supported cameras can capture it. Which models do depends on the maker; check the camera settings of your phone.

Does Ultra HDR make files much bigger?

Only somewhat. The gain map is a second JPEG that Google suggests storing at a sixteenth of the pixel count of the main image.

How do I turn an Ultra HDR photo into a normal JPEG?

Save a new JPEG from its pixels, for example with the image compressor on this site. The result has no gain map, no EXIF and no GPS data.

Why does my HDR photo look washed out after uploading it?

The service probably re-encoded the file and dropped the gain map or its metadata, or the screen you view it on is SDR. Either way, you see the base image only.

Does the gain map contain personal data?

The gain map is a brightness map of the same scene. Personal details such as the time, place and camera are in the EXIF metadata of the same file.

The Bottom Line

Ultra HDR is a normal JPEG with a gain map inside. Google built it that way on purpose: every app sees an ordinary photo, and apps and screens that support HDR use the small second image to brighten the highlights as far as the display allows. iPhones use the same recipe, which Apple calls Adaptive HDR.

That design explains most surprises. A photo that looks flat is being shown without its gain map, because of the app, the screen or a re-save that dropped it. The table above shows which actions keep the map and which leave only the base image. When you need a plain copy, save the pixels as a new JPEG; it will carry no gain map and no camera metadata. Keep the full original wherever it belongs, and give private ones a lock of their own.

·Written by the developer of Stash

Save this guide

Summary of this guide as an image: What Is Ultra HDR? How the Photo Format Works and Why It Often Looks NormalDownload this guide as an image