Convert XYZ Point Clouds to STL Terrain Models
Upload a plain-text XYZ point cloud of terrain and download an STL surface closed with side walls and a flat base, which slicers can open directly. It only works on height-field data, where each X,Y spot has a single height: scans of objects or buildings are refused, and the STL keeps your file's units.
Download Started!
How would you rate your experience with MiConvert?
Printing a photo instead?
Turn a picture into a lithophane or relief STL that glows when light shines through it. It is built in your browser, and the photo is never uploaded. Lithophane maker →
What happens when an XYZ cloud becomes an STL
An XYZ file is the bare minimum of a point cloud: one point per line, given as X, Y and Z, sometimes followed by intensity or color columns. LiDAR processing, photogrammetry and survey software export it because almost anything can read it. A slicer cannot use it, though. STL describes triangles, and loose points have no surface to print.
Our point-cloud script runs on our servers. It reads rows separated by spaces, commas or semicolons, then tests whether the cloud is a height field, such as a terrain or aerial survey. If it is, the points are resampled onto a regular grid at roughly twice their spacing, capped at 400,000 grid nodes. Walls down to a flat base close the surface, and the result is saved as STL. Clouds over one million points are first reduced to a random sample of one million.
Expect a smoothed version of the ground, not your raw points. Detail smaller than a grid cell disappears. Color and intensity are dropped, because STL stores neither, and no unit conversion takes place. Coordinate values above 100,000, which are typical of UTM or state-plane surveys, are shifted toward the origin. The page does not report any of these adjustments, so inspect the result in your slicer.
Clouds that are not height fields are refused with an explanation instead of being forced into a mesh. That covers object scans, rooms, building facades, and aerial LiDAR that still mixes tree canopy with ground returns. No Poisson or ball-pivoting reconstruction is available here. For those clouds, build the mesh in MeshLab or CloudCompare and export STL from there, or convert to PLY or OBJ on MiConvert to keep the points.
How to turn an XYZ terrain file into an STL
- Reduce the cloud to ground points. If it came from aerial LiDAR or photogrammetry, filter out vegetation and buildings in CloudCompare, LAStools or your GIS before exporting XYZ.
- Clean the text. X, Y and Z must be the first three numbers on every line, and every line needs the same number of columns. Remove placeholders such as an underscore or replace them with numbers, and delete any header lines.
- Upload the .xyz file. Files up to 50 MB convert without an account, and up to 100 MB with a free one.
- Download the STL. The link expires after about 4 hours.
- In the slicer, scale the model to the print size you want. The numbers keep your survey units, so an area 2,000 meters wide opens as 2,000 mm wide. Many slicers also let you scale Z on its own to exaggerate relief.
Terrain-to-STL capabilities
- Height-field test before meshing, with a refusal message for clouds that cannot become a terrain surface
- Regular grid surface at about twice the point spacing, up to 400,000 nodes
- Side walls and a flat base generated around the terrain, so it comes out as one closed block
- Survey-scale coordinates above 100,000 re-centered near the origin
- Clouds above one million points sampled down to one million instead of rejected
- Space-, comma- or semicolon-separated rows read without reformatting
Video Tutorial
An A-Z video guide on how to use MiConvert to change XYZ format to STL. This is the safest method to convert data without needing to download any applications to your device. 🔗 Format conversion too
XYZ to STL questions
Why was my point cloud refused for STL?
STL output from a cloud only works when the points form a height field: one surface seen from above, with a single height at each X,Y position. Object and building scans, overhangs, and layered data such as canopy over ground are refused. If it is terrain, filter it to ground points. Otherwise, reconstruct a mesh in MeshLab or CloudCompare. To keep the points as they are, convert to PLY, OBJ or GLB instead.
What does 'No numeric point rows found' mean?
The reader found no lines made only of numbers. Usually the file holds just a header, or its lines begin with text such as point labels. It may also be a different format that shares the .xyz extension, like a chemistry file listing element symbols and atom positions. Export plain X Y Z rows and try again.
What about 'the number of columns changed' or 'could not convert string to float'?
The first is a raw parser message. It means one line has more or fewer values than the lines above it, often because of a stray trailing column or two lines joined together. The row number in the message shows where. The second means a cell holds text, such as an underscore placeholder. Depending on how the failure is reported, it may instead appear as "Could not read this 3D file". Make every row the same width and purely numeric, or export only the X, Y and Z columns.
Will the STL be the right size in my slicer?
Only if your coordinates are already in millimeters. Apart from re-centering, the STL holds the same numbers as your file, and slicers read STL units as millimeters. Terrain in meters therefore needs scaling down, and you set the final footprint and vertical exaggeration in the slicer.
Is the STL ready to print?
It is a closed shape with walls and a base, but the converter does not repair or check meshes, so review it in your slicer before printing. Features smaller than the grid cell are smoothed away.
Will a very large cloud be converted?
Usually, with less detail. Clouds above one million points are randomly reduced to one million, and the surface grid never exceeds 400,000 nodes. The page does not tell you when this happens. The file must fit your plan's size limit (50 MB as a guest, 100 MB with a free account, 200 MB on Plus, 1 GB on Pro), and each conversion step has a 600-second time limit. For a sharper model of a big area, crop to the region you want to print before exporting.
I searched for the XYZ calibration cube STL. Is that here?
No. The XYZ cube is a test print for checking a printer's dimensions on each axis, and it is already shared as an STL on model sites. It has nothing to do with XYZ point-cloud files and needs no conversion.
What happens to my file after conversion?
The XYZ file you upload is removed once its conversion ends, whether it succeeded or not. The STL is kept for roughly 4 hours so you can download it, then it is deleted automatically. Transfers use HTTPS, and the download address is a random token that is not listed anywhere. The link works more than once, so keep it private. We do log file names and basic job details, and accounts keep a history entry for each conversion.