XYZ to GLB Converter: Scans Kept as Points | MiConvert

XYZ to GLB Converter: Point Clouds for Web Viewers

Turn a plain-text XYZ scan into a binary GLB that holds the same cloud as points, ready for Three.js, Babylon.js or Blender. Expect the cloud to arrive rotated 90 degrees about X, and note that clouds above 1,000,000 points are thinned.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
XYZ → GLB

Why put an XYZ scan into GLB

XYZ files are easy to produce and easy to parse. But a few million lines of text are slow to download, and almost no web viewer accepts them. GLB, the single-file binary form of glTF, loads natively in browser engines and many online viewers. That makes it the practical container for showing a scan on a website, or for sending it to someone who does not have CloudCompare.

The conversion runs on our servers, using a dedicated point-cloud reader that accepts values separated by spaces, commas or semicolons. It does not build a surface: every point you keep becomes a vertex of a point set in the GLB. Projected survey grids often have coordinates above 100,000. In that case the vertices are stored relative to an offset kept in the node transform, so the cloud still sits at its real position. Above 1,000,000 points, a uniform random subset of 1,000,000 is kept.

Positions come across as the numbers in your file, and glTF treats them as meters. Point colors are kept when the reader loads them; a bare three-column XYZ has none, so its points arrive uncolored. You get no faces, materials or textures, and the GLB is not Draco or meshopt compressed. The data uses Z as up while glTF uses Y, so the cloud appears tipped onto its back until you rotate it.

Typical users are surveyors and scanning hobbyists who want a quick preview to share, developers loading scans into Three.js or Babylon.js, and anyone who needs to look at a cloud without installing desktop software. If you were looking for OBJ to GLB or FBX to GLB, those pages handle scans that are already meshes. A binary FBX keeps its embedded textures. An OBJ keeps its materials only when you put it in one ZIP with its .mtl and texture files and use ZIP to GLB; uploaded alone, it converts without them.

Converting an XYZ cloud to GLB

  1. Open the file in a text editor and confirm that the first three values on each row are x, y and z.
  2. If the cloud has more than 1,000,000 points and you care which ones stay, subsample or crop it in CloudCompare first. Otherwise we pick a random subset without telling you.
  3. Upload the .xyz here. Guests can send files up to 50 MB, up to 10 at once, and no account is required.
  4. Download the single .glb file once the job completes.
  5. In your viewer, rotate the model -90 degrees about X (in Three.js, set rotation.x to -Math.PI / 2) and give the points a visible size.
  6. Check the scale against a known distance, since units were carried over as plain numbers.

What the GLB output contains

  • One binary .glb that holds the cloud as points, with no surface interpolated between them.
  • Point colors carried into the GLB when the reader loads them from the source; a plain x, y, z file has none.
  • Offsets for large survey coordinates kept in the node transform, so positions stay true while vertex values stay small.
  • A ceiling of 1,000,000 points, applied by uniform random sampling.
  • A reader for rows separated by spaces, commas or semicolons.
  • A check that refuses to deliver a GLB with no geometry in it.

Video Tutorial

Are you struggling with how to convert your XYZ file to GLB format? Don't worry, in this video I will reveal a super convenient tool to help you change your file extension completely for free without

XYZ to GLB questions

Why is my point cloud lying on its back?

Scanner data uses Z as up and glTF uses Y, and the coordinates are written without swapping axes. Rotate the model -90 degrees about X. In Blender, select it and type R, X, -90; if it flips upside down, use 90 instead.

Why does my viewer show a blank scene?

Some viewers only draw triangles, and others draw each point as a single pixel. Try Blender, or a Three.js scene with a points material and a larger point size. Also check the camera: a cloud with real-world coordinates keeps its offset and can sit far from the origin.

Can I get a solid mesh GLB instead of points?

Not from this page. For terrain, convert XYZ to STL, which builds a closed grid surface, then convert STL to GLB. For object scans, reconstruct a mesh in MeshLab or CloudCompare and export it as OBJ. Use OBJ to GLB for a plain OBJ. If the OBJ has an MTL file or textures, put them all in one ZIP and use ZIP to GLB.

Are all of my points kept?

Clouds of up to 1,000,000 points are kept in full. Above that, a random 1,000,000 are kept, and the page does not tell you this happened. If the selection matters, thin the cloud yourself first.

Is the GLB compressed?

No, it is written without Draco or meshopt compression. If file size matters for the web, run it through a glTF optimization tool such as gltf-transform afterwards.

Can it convert XYZ coordinates to latitude and longitude?

The converter never changes coordinate systems. If your viewer or map needs geographic coordinates, reproject the points in QGIS or with PROJ first. Otherwise, large projected values are kept as they are through the node offset.

How long are my files kept?

The uploaded XYZ is removed as soon as conversion ends. The GLB stays available for roughly 4 hours, then our cleanup deletes it. During that window, anyone with the download link can use it. File names are recorded in our logs.