Apply LUT to Image
Operator: Abdulla Al Fahad. How tools are built and checked
A LUT, a lookup table, is a saved color grade. A colorist builds a look once, exports it as a small text file, and the same look can be put on any other footage or photo. The catch is that applying one to a still usually means opening a video editor or a full photo suite.
This page applies a .cube LUT directly. Load a file from your own library or pick one of the seven built-in looks, set the strength, compare against the original with a slider, and export either one picture or up to 50 as a ZIP.
A LUT is a fixed recipe that knows nothing about the picture it lands on. If you would rather derive the look from one reference photo, Match Photo Colors on this site does that instead.
Key features
- Reads 1D and 3D .cube files, domain ranges included
- Seven built-in looks, each saveable as a 33-point .cube
- Tetrahedral or trilinear interpolation
- Strength from 0 to 100 percent, with a before-and-after slider
- Batch export of up to 50 pictures as a ZIP
Reading .cube files and interpolating color
A .cube file is plain text. It declares either LUT_3D_SIZE, a cube of color samples with red changing fastest, or LUT_1D_SIZE, a per-channel curve, plus optional TITLE, DOMAIN_MIN and DOMAIN_MAX lines. Comments start with a hash. A 3D table can be up to 129 points per side and a 1D table up to 65,536 steps. A file that declares both kinds is refused, and so is any file over 40 MB.
Sizes grow fast. A 17-point 3D LUT has 4,913 rows, and the file this tool writes for one is about 130 KB. A 33-point LUT has 35,937 rows and writes to about 948 KB, and a 65-point LUT has 274,625 rows and about 7.2 MB. Any of them can be read, and the built-in looks are saved at 33 points.
Problems are reported with a line number: data before a size line, a row that is not three numbers, more rows than the declared size allows, or fewer rows than it declares, which is rejected rather than guessed at.
Pictures can be PNG, JPG, WEBP, GIF (first frame) or BMP, up to 25 MB each and 50 at a time. Exports keep the original dimensions up to 8192 pixels on the long side and can be PNG, JPG or WEBP, with a quality of 50 to 100 (default 92) for the last two. Several pictures download as one ZIP. The built-in looks are teal and orange, warm fade, cool noir, vintage film, high-contrast black and white, cross process and bleach bypass.
How it works
For a 3D LUT, each pixel's red, green and blue (0 to 1) are mapped onto the cube's grid, and the eight table entries around that position are blended. Trilinear interpolation blends all eight. Tetrahedral interpolation splits the small cube into six tetrahedra and blends only the four that surround the point, which is the usual choice in video grading. On 20,000 random pixels, the two differ by at most 2 of 255 levels on the built-in looks at 17 points and by at most 1 at 33 points, so the choice only matters when you need to match another tool exactly.
For a 1D LUT, each channel is looked up on its own curve with linear interpolation between steps, and the domain lines rescale the input range first. Strength blends the graded color with the original, so 50 percent is exactly halfway for every channel. Only the color channels change; transparency is never touched.
Common use cases
- A wedding photographer puts a warm 33-point LUT on 48 JPGs at 70 percent strength and gets the 48 files back as one ZIP, well inside the batch limit of 50.
- A video editor checks a colorist's 65-point LUT (a 7.2 MB file) on 3 still frames before applying it to the timeline.
- A video editor writes the cool noir look out as a 948 KB .cube file, then loads it in a video editor to match stills to footage.
- A shop owner exports the same product photo at strength 30, 60 and 100 to choose how far the cross process look should go.
- A 6000 x 4000 photo is exported at full size as WEBP at quality 85 for a client gallery, within the 8192 px limit.
How to use this tool
- Drop one or more pictures, or choose them with the file picker.
- Pick a built-in look or load your own .cube file. A bad file shows its line number.
- Set the strength and drag the preview slider to compare. Switch interpolation only if you need to.
- Choose a format and download the picture, or the ZIP for a batch.
Example
The built-in teal and orange look at 33 points, applied to one pixel with RGB 200, 120, 60
grid position r 25.1, g 15.1, b 7.5 of 0 to 32
surrounding entries r 25-26, g 15-16, b 7-8 (8 corners)Result for that pixel
100% strength 225, 121, 37
60% strength 215, 121, 46
tetrahedral and trilinear give the same result hereTips for best results
- Apply a LUT only to pictures that look like what it was built for. A LUT made for log footage expects flat, washed-out input, so on an ordinary JPG it crushes shadows and clips highlights.
- Judge a LUT at 100 percent first, then lower the strength. The blend is linear, so 60 percent is exactly 60 percent of the way from the original value to the graded one.
- Leave interpolation on tetrahedral. The built-in looks differ from trilinear by at most 2 levels, so switch only to reproduce another tool's output.
- In a batch every picture gets the same LUT and strength. Group photos by lighting first, since a LUT that suits daylight will not suit tungsten shots the same way.
Edge cases to watch
The page does no color-profile management of its own. The LUT is applied to the pixel values the browser hands over, and the saved file carries no embedded profile.
Combined 1D plus 3D .cube files and 3D LUTs above 129 points per side are not accepted.
A GIF contributes only its first frame, so animated GIFs lose their animation.
Common errors and how to fix them
- Line N: ... is not three numbers
- Open the .cube file in a text editor at that line. Rows must be three decimal numbers; stray text or a missing value stops the parse.
- LUT data appears before LUT_1D_SIZE or LUT_3D_SIZE
- Add the size line before the first data row, or re-export the LUT from your grading tool.
- The file declares LUT_3D_SIZE 33, which needs 35937 rows, but it contains fewer
- The file was cut short, often by a failed download or an email gateway. Get the original again.
Best practices
- Save a built-in look as a .cube and open it in a text editor once. Seeing the TITLE, the size line and the rows makes it easier to spot what is wrong in a LUT file that fails to load.
1D or 3D, and which one you have
A 1D LUT adjusts each channel with its own curve, so it can change contrast, levels and tone but cannot turn reds into oranges. A 3D LUT maps combinations of red, green and blue to new colors, which is what allows hue shifts and the teal-and-orange kind of grade. The size line tells you which you have:
- LUT_1D_SIZE 1024 means a per-channel curve with 1,024 steps
- LUT_3D_SIZE 33 means a cube with 33 x 33 x 33 = 35,937 rows
- A file with neither line is not a .cube LUT, and it is rejected with that message
Frequently asked questions
Can I save a built-in look as a LUT?
Yes. Choose the look and press Save this LUT as .cube to get a 33-point file of about 948 KB for your editor.
Why is a 65-point LUT such a big file?
A 3D LUT of size N has N x N x N rows, so 65 points means 274,625 rows, about 7.2 MB of text. The 33-point version of the same grade is about 948 KB and is usually enough for photos.
Does strength change transparency?
No. Only red, green and blue are blended with the graded values, and the alpha channel is copied through untouched.
What is the difference between tetrahedral and trilinear?
Both read the surrounding table entries. Trilinear blends eight of them and tetrahedral blends four, which follows the gray axis more faithfully; on smooth grades the results are within a level or two.