Add a Radiance .hdr and get a KTX texture with its smaller sizes built in, for game engines and 3D apps that load KTX.
FluffyShieldProtected workspace
From
To
Loading the tool…
The tool didn't load. Reload the page, or check whether an extension or network filter blocks .
Free · No upload · No sign-up · No usage quotas
How it works
The .hdr's light is eased under white
→Smaller copies are made down to 1 pixel
→All of them are packed into one KTX
What it does
Smaller copies included
The file holds the picture and smaller copies of it, down to a single pixel, and still came out far lighter than a PNG.
Our test scene, KTX against PNG: 86.2% smaller
Keeps colors, not light
The texture holds the picture as a photo would, not the brightness numbers in the .hdr.
Limits One flat picture, not a cube of six sky faces or a stack of layers.
Will an .hdr keep its light as a KTX texture?
No. FluffyBench writes the KTX from the eased-down picture, so it suits a texture the scene shows, not one that lights it.
FluffyBench · 4 min read · Measured on a test scene
Can a KTX keep the light that an .hdr holds?
When a game engine or 3D program asks for a texture and what you have is an .hdr, often a sky or a lighting map, whether that will do depends on which of two jobs the picture has there.
The KTX format can carry several kinds of texture, including ones that store brightness as decimal numbers well above white. FluffyBench's own KTX reader opens one of those kinds. Its KTX writer, though, takes an ordinary picture, with the same 256 shades a color as a photo. So the .hdr first goes through the same fixed curve that makes FluffyBench's PNG and JPG copies, and the light above white is folded under it before the texture is written.
That suits a picture the scene simply shows, such as a painted backdrop or a sign. It doesn't suit a picture the engine uses to light the scene, which needs to know how bright the sun really is. For that job, give the engine the .hdr itself.
This writes .ktx, version 1. If your program asks for .ktx2, that is a different file.
What does the texture hold instead?
The picture at full size, plus seven smaller copies made in advance, each half the width and height of the one before; for our test scene that's 128 × 96, 64 × 48, 32 × 24, 16 × 12, 8 × 6, 4 × 3, 2 × 1, 1 × 1. They're called mipmaps, and a 3D program uses them when the textured surface is far off or small on screen.
Each size is packed in a block format called BC1, which stores every 4 by 4 square of pixels in 8 bytes, as two colors and blends between them. The Texture format setting starts on Auto, which chooses BC1 for a picture with nothing see-through. Packing moved some colors of our test scene by up to 83 levels on a 0 to 255 scale, on top of the curve. Packing can be turned off in the steps below, at several times the size.
The file also carries a short orientation note saying which way up its rows run, so a program that reads the note doesn't show the texture upside down.
Making the KTX from your .hdr
The tool above is set from HDR to KTX, with smaller copies on. Only an engine that can't read BC1 needs a setting changed.
Pick your .hdr with Choose images.
On a phone, press the gear button marked KTX; on a computer the settings are already open.
Leave Texture format on Auto. If your engine can't read BC1, choose Uncompressed 32-bit there instead.
Press Convert 1 to KTX.
Press the download arrow on the finished card to save the .ktx.
Which copy if the KTX isn't right?
You only need to show someone what the texture looks like.