Heightmap generator

Free heightmap generator with a 3D preview

Generate a fractal landscape, erode it, terrace it, sculpt it by hand, and see the result as a lit 3D terrain while you work. Then export a 16-bit grayscale PNG, a Unity RAW or a mesh for your game engine, Blender or another terrain tool.

Free, no account, nothing uploaded. Needs a WebGPU browser: Chrome, Edge, or Safari 26+.

Spirelight's Terrain Editor on a 2048×2048 mountain heightmap after Rain erosion, with the shape sliders and a top-view heightmap thumbnail

The basics

What a heightmap is, and why 16-bit matters

A heightmap is a grayscale image where each pixel's brightness is the ground's height at that point: black is the lowest point, white the highest. Game engines, Blender and terrain tools all use them to store and swap terrain.

Bit depth decides how many height steps you get. An ordinary 8-bit image has only 256 levels, so a gentle slope turns into visible terraces once it's stretched over a big terrain. A 16-bit image has 65,536 levels, which is smooth enough for almost any landscape. That's why Spirelight exports 16-bit PNGs only.

Step by step

Make a heightmap in five steps

  1. Open the editor and select the terrain. The starter scene already has a mountain range. To start fresh, pick Terrain from the Create palette. Double-click the terrain (or choose Edit terrain… in the inspector) to open the full-screen Terrain Editor.
  2. Set the resolution. Under Size & files, pick 256, 512, 1024 or 2048. Choose it first: higher resolutions hold finer ridges and gullies, and changing it later resamples the shape.
  3. Generate a base shape. In Generate, roll fresh fractal landscapes until one has the layout you want. Use it as is, or blend it into what you have with add, higher or lower. The four terrain styles (mountains, rolling hills, mesas & canyons, dunes) give different starting characters.
  4. Shape it. The Shape tools work on the whole terrain and preview live as you drag: rain erosion and slump for weathered gullies and scree, terraces for stepped slopes, plateaus for mesas, island edges to drop the borders into the sea, sea floor, sharpen, smooth and invert. Then paint details with the raise, lower, smooth, flatten and roughen brushes ([ and ] change the brush size).
  5. Export. Under Size & files, click Export 16-bit PNG. You get a square, single-channel 16-bit grayscale PNG at the resolution you chose.

Because the preview is the same path tracer that renders finished pictures, you'll see how the shape catches a low sun, holds snow on its ridges or meets water. Problems like a flat-topped peak or an ugly seam show up before you take the file into another program.

Using the file

Into Unity, Unreal, Godot or Blender

For a quick hand-off, use the 16-bit PNG. For a game engine, File › Export for game engine writes the sizes and formats each engine expects, so you don't have to convert anything yourself.

ProgramWhat it wantsWhat Spirelight gives you
Unity (Terrain)16-bit RAW at a power of two plus one (513, 1025, 2049)A 16-bit little-endian RAW at 513, 1025 or 2049, with the terrain size for the Import Raw dialog
Unreal Engine (Landscape)16-bit grayscale PNG, ideally at a recommended size such as 1009 or 2017A 16-bit PNG at 1009 or 2017, with the X, Y and Z scale worked out
Godot (Terrain3D or a mesh)EXR or R16 for Terrain3D (its PNG loader is 8-bit); any glTF meshA 16-bit .r16 heightmap, or a glTF (.glb) mesh in metres
BlenderA mesh, or an image for a Displace modifierA .glb or OBJ mesh, or the 16-bit PNG
Gaea, World Machine, World Creator16-bit PNG or RAW importThe 16-bit PNG, for more erosion or texture masks there

Free: the 16-bit PNG and RAW, a normal map, and meshes up to 512 × 512 vertices. The one-click Unity, Unreal and Godot preset packs, splat masks and 1024-vertex meshes are planned for Pro. Step-by-step import settings for each engine are in Terrain for Unity, Unreal and Godot.

Blender

A heightmap into Blender in a minute

  1. Add a Plane, then a Subdivision Surface modifier set to Simple with 6–8 levels (or subdivide in Edit Mode).
  2. Add a Displace modifier, click New texture, open your PNG, and set its color space to Non-Color.
  3. Set the Displace Strength to taste (start at about 0.3 for a 2 m plane) and the Midlevel to 0.

Spirelight is for making and judging the shape quickly, with a real sky, water and materials. Blender is the place to scatter trees, add characters or animate a fly-through.

A Spirelight mountain terrain rendered at sunset over water, the kind of shape you can export as a 16-bit heightmap

Compared

Other free heightmap generators

Different tools for different jobs. If you need real-world terrain, use one of the first two.

ToolBest forOutput
Unreal Heightmap (manticorp)Real places, from elevation data16/32-bit PNG, EXR
Tangram HeightmapperReal places, quick grayscale viewsScreenshot-style PNG
GullywashPainting terrain with GPU erosion16-bit PNG
Gaea CommunityDeep node-based erosion (Windows)Up to 1024×1024, non-commercial
SpirelightFractal terrain + sculpting, judged under a real sky in 3D, then rendered16-bit PNG up to 2048, Unity RAW, .r16, glTF/OBJ mesh; renders up to 4K

Want a real mountain? Download a 16-bit PNG from a real-world tool, import it in Spirelight's Terrain Editor (Import image…), and render it under any sky.

Questions

Heightmap questions

Is the heightmap generator free?

Yes. Generating, sculpting and exporting heightmaps is free, with no account. Free exports are for personal use; shipping them in a commercial game or product needs Pro's commercial-use licence. See the licence terms.

What's the largest heightmap I can export?

2048 × 2048 pixels as a 16-bit PNG, or 2049 × 2049 as a Unity RAW. For larger terrains in an engine, you can scale it up there; the shape keeps its smoothness because of the 16-bit depth.

Can I export a mesh instead?

Yes. File › Export for game engine saves the terrain as a glTF (.glb) or OBJ mesh with UVs and normals, up to 512 × 512 vertices free. FBX and STL aren't offered; Blender can convert a .glb to either.

Can I import a heightmap I already have?

Yes. In the Terrain Editor, choose Import image…. 16-bit PNGs keep full precision; 8-bit images and JPEGs work too. Non-square images are cropped to a centered square.

Does it make splat maps or texture masks?

Yes, as part of the game-engine export: an RGBA splat map and four grayscale masks from slope, height, water level and ridges. Splat masks are planned for Pro. For masks driven by a full erosion simulation (flow, wear, deposits), Gaea goes further.

Can I make a tileable heightmap?

Not automatically. Generated terrains don't wrap at the edges. If you need tiles that join seamlessly, a node-based tool like Gaea or World Machine handles that better.

Your first heightmap is a minute away.

Open the editor, double-click the mountains, press Generate.