Skip to content
DepthCarve

Pixel-Value ↔ Z-Height Tool

Grayscale to millimeter height converter for depth maps

Translate any grayscale pixel reading (0–255 or 0–65,535) into exact millimeter Z-elevation for your relief thickness—handy for verifying rim heights, background planes, and pocket floors.

100% Local Browser Calculator · Free

Interactive parameters & live geometry output

Quick starting presets

Inputs

Calculated shop readout

8-Bit vs 16-Bit Z-Step

23.5 µm vs 0.09 µm· high

8-bit gives 65 steps across 25% ramp (~1.56 mm wide terraces)

Sample Pixel -> Z-Height

3.95 mm

8-bit 168/255 = 16-bit 43,176/65,535

Blender Displace Strength

0.0060 m

Net shift at Midlevel 0.5: +0.95 mm

Physical Pixel Pitch

0.098 mm/px

Equivalent to 260 DPI at 200 mm width

Ready to turn a photo into this exact relief?

Preview 3D geometry free · Export true 16-bit PNG + EXR + watertight STL

Check real 16-bit pixel levels free locally, or generate a fresh true 16-bit heightmap on DepthCarve. Failed jobs never lose credits, purchased credit packs never expire, and commercial client carving rights are included.

Grayscale percentage to 8-bit, 16-bit, and Z-height on a 6.0 mm relief

Tone %8-bit value16-bit valueZ-height (6 mm relief)Typical relief feature
0% (Black)000.00 mmBackground floor / deepest cut
25%6416,3841.50 mmLow background molding or fur
50% (Mid)12832,7683.00 mmCheek base / Blender default midlevel
75%19149,1514.50 mmForeground portrait shoulders & brow
100% (White)25565,5356.00 mmHighest relief peak / untouched rim

Linear mapping from grayscale intensity to physical Z millimeters

Standard CAM and 3D modeling pipelines map normalized linear grayscale values linearly to Z elevation: Z_mm = (pixel_value / max_value) × total_relief_depth_mm. Make sure your image editor or CAM software treats your heightmap as Linear / Non-Color data rather than applying an sRGB gamma curve.

Applying an sRGB 2.2 gamma curve accidentally pushes mid-gray (0.5) down toward 0.22 linear height—flattening faces into the background and making highlights look overly pointy.

Checking background gray values before roughing

If your eyedropper reads gray value 28 instead of 0 on a plaque background in a 10 mm relief, your CNC router wastes roughing time cutting a 1.1 mm step across the entire border before even reaching the intended base plane.

Use the sample gray slider above to see how many millimeters of physical stock any pixel value represents so you can set clean black-point and white-point clipping in DepthCarve.

Forward vs inverted height conventions

CNC routers (Aspire, Carveco) and 3D software (Blender, ZBrush) treat white (65,535) as the highest peak and black (0) as the lowest floor. Fiber lasers in LightBurn 3D Sliced mode often ablate dark pixels deepest (so white stays untouched at the top rim, matching CNC polarity, unless inverted for mold cavities).

DepthCarve exports both polarities in true 16-bit PNG so you can switch between positive relief and negative mold dies immediately.

Frequently asked questions

Why does 50% gray look lower than half height in Blender?

If the image texture node is left on sRGB instead of Non-Color, Blender applies a gamma curve that shifts 0.50 down to ~0.214. Always switch heightmap textures to Non-Color.

How do I convert an 8-bit gray value to its 16-bit equivalent?

Multiply the 8-bit value (0–255) by 257 (which equals 65535 / 255). For example, 8-bit value 128 maps to 16-bit value 32,896.

Does white always mean high and black always mean deep?

In most CNC, Blender, ZBrush, and positive-relief workflows, yes: white = high Z, black = zero base. For negative stamp dies or resin molds, simply load the inverted 16-bit PNG.

How can I tell if my depth map uses full 0–65535 range?

Drop it into DepthCarve's free local PNG Bit Depth Checker to inspect min/max pixel values and unique gray levels directly in your browser.