Free download · heightmap
Real-world heightmap generator: export any terrain as a 16-bit PNG
Game and scene makers need real terrain, not noise. Pick any place, set the area from 1 to 300 km and export a 16-bit grayscale PNG, with a JSON file giving the lowest and highest altitudes to scale it in your engine.
- Free standard STL
- HD version: 30 credits
- Runs in your browser
How it works
Pick the place
Choose one of the 19 built-in places, search OpenStreetMap for anywhere else (the search runs only when you press “Search”), or type exact coordinates under “Fine tuning”.
Set the area
This page opens the tool in Heightmap mode. Set the area width from 1 to 300 km; the export is always square, north up, west on the left. Keep “Flat sea” on to clamp everything below 0 m to sea level, or turn it off to keep the seabed.
Export the PNG and its JSON
The 257 × 257 px 16-bit PNG and its JSON file are free, with no account. The 1025 × 1025 px HD pair is paid with credits. Files are named after the place, for example nyzora-heightmap-mont-blanc.png and .json, with -hd added for the HD pair.
Scale it in your engine
Black is the lowest point of the area and white the highest, on a linear scale. The JSON gives both elevations in meters, the ground width and the meters per pixel: everything you need for the vertical and horizontal scale.
Import settings, tool by tool
| Tool | How to import | Scale settings |
|---|---|---|
| Unreal Engine | Landscape mode → Import from File, 16-bit PNG | Z Scale = height_range_m × 100 ÷ 512; X and Y Scale = meters_per_pixel × 100 |
| Unity | Convert to 16-bit RAW, then Terrain → Import Raw, Windows byte order | Resolution 257 or 1025; Width and Length = extent_km × 1000; Height = height_range_m |
| Blender | Subdivided plane as wide as the area + Displace modifier, image set to Non-Color | Midlevel 0; Strength = height range in the plane's units |
| Cities: Skylines | Map editor → Import heightmap, 1081 × 1081 px | Area width 17 km; resize to 1081 px; the game reads white as 1,024 m |
| QGIS and other GIS | Plain raster, no georeferencing | Place it by hand with bounds_deg: north, south, west, east |
Unity terrain resolutions are a power of two plus one, which is exactly what the two exports use: 257 and 1025 pixels. ImageMagick converts the PNG in one line: magick heightmap.png -depth 16 -endian LSB gray:heightmap.raw. If north ends up south, tick “Flip Vertically” in Unity's import dialog.
Meters per pixel by area width
| Area width | 257 px export | 1025 px HD export |
|---|---|---|
| 5 km | 19.5 m | 4.9 m |
| 10 km | 39.1 m | 9.8 m |
| 17 km, a Cities: Skylines map | 66.4 m | 16.6 m |
| 50 km | 195 m | 48.8 m |
| 100 km | 391 m | 97.7 m |
| 300 km | 1,172 m | 293 m |
Below roughly 25–30 m per pixel, extra pixels are interpolated rather than measured: across most of the world the source data (SRTM, EU-DEM) is not finer than that, although parts of the United States have data around 10 m. The JSON's data_meters_per_pixel gives the resolution of the elevation tiles that were read; the original survey can be coarser.
Why 16 bits matter
On the default Mont Blanc area (14 km wide), the elevation range is 3,844 m. An 8-bit image would cut it into 256 levels of 15 m each, which turns slopes into terraces. A 16-bit PNG has 65,536 levels: about 6 cm per level here.
Many editors silently drop to 8 bits when you resize or re-save. In GIMP, check Image → Precision → 16-bit integer before exporting; in Photoshop, Image → Mode → 16 Bits/Channel. Terraces in your engine mean an 8-bit conversion happened somewhere.
What the JSON file contains
- elevation_min_m and elevation_max_m: the altitudes of black (0) and white (65535); height_range_m is the difference.
- extent_km and meters_per_pixel: the ground width of the square and the spacing of pixel centers.
- center and bounds_deg: latitude and longitude of the center and of the four edges.
- sea_flattened: whether everything below 0 m was set to sea level.
- data and attribution: tile source, zoom level and the credit line to keep with the data.
Cities: Skylines, step by step
The original game expects a 1081 × 1081 px map covering 17.28 km, with black at 0 m and white at 1,024 m. Set the area to 17 km, the closest step, export the HD PNG and scale it to 1081 px in an editor that keeps 16 bits.
Because this PNG spreads the area's lowest-to-highest range over the full gray scale, a gentle region would come out 1,024 m tall in the game. To keep true heights, lower the white output level to height_range_m ÷ 1,024: about 36% for Lyon's 364 m range over 15 km. Cities: Skylines II uses 4096 px maps; upscaling a 1025 px export adds pixels, not detail.
Limits worth knowing
- Square areas only, from 1 to 300 km wide, centered between 84° south and 84° north.
- Peaks are slightly smoothed by the source data: Mount Everest reads 8,730 m, not 8,849 m.
- The PNG is not a GeoTIFF: it carries no projection or coordinates; only the JSON does.
- The seabed, when “Flat sea” is off, comes from much coarser ocean data.
- The search and the elevation tiles need an internet connection.
What's free, what's paid
- Preview
- Free
- HD version
- 30 credits
- Basic version
- Free standard STL
The basic version is computed and downloaded in your browser, with no account. The paid version needs an account; its price is on the button before you click, and nothing is charged without that click.
Props for your terrain, with AI
A heightmap gives you the ground. The rocks, cabins and props that sit on it can be generated as 3D models from a photo or a sentence. The Nyzora studio uses AI to build a full 3D model from a photo or a sentence: 190 free credits at sign-up, with a quote before every charge.
Frequently asked questions
- Is black sea level?
- Only if the area reaches the sea with “Flat sea” on. Otherwise black is the lowest point of the area, whatever its altitude: 942 m on the default Mont Blanc map. Read elevation_min_m in the JSON to be sure.
- How do I turn gray values back into meters?
- Elevation = elevation_min_m + value ÷ 65535 × height_range_m. On the default Mont Blanc map, a pixel at 32768 sits at about 2,864 m.
- Can I get more than 1025 pixels?
- Not from a single export. For more detail, export a smaller area: 1025 px over 5 km gives a pixel every 4.9 m, although below about 25 m per pixel most regions only offer interpolated data.
- Can I use the heightmap in a commercial game?
- The elevations are open data from several public sources, listed in the attribution line of the JSON. Keep that credit in your game and check each source's terms on the Terrain Tiles page of the AWS Open Data registry for your own case.
- Can I 3D print this terrain too?
- Yes: switch the tool back to 3D relief (STL), or open the topographic map generator, which builds a watertight STL with a base from the same data.
- What's free, and what do I pay for?
- Free standard STL, no account needed. HD version: 30 credits, with an account, after a free preview.
- Where does the elevation data come from?
- From public elevation data that your browser downloads for the area you pick; searching for a place uses a geocoding service. The model itself is built on your device.
It all starts in the Nyzora studio
Create a 3D model from a photo or a sentence in the Nyzora studio, then finish it with these tools. 190 free credits at sign-up, with a quote before every charge.