Convert PCD Point Clouds to glTF (GLB Recommended for Now)
Right now, the .gltf this page makes from a PCD is missing its binary buffer, so viewers cannot load the points. Use our PCD to GLB converter instead: it writes the same glTF 2.0 data as one self-contained file, with your points and, when the PCD has it, their RGB color.
Download Started!
How would you rate your experience with MiConvert?
What happens when a PCD becomes glTF
PCD is the native file of the Point Cloud Library. It opens with a short text header that lists the fields (usually x, y, z and often rgb) and the point count. A DATA line then says whether the body is ASCII, binary or binary_compressed. Lidar drivers, depth cameras and ROS pipelines write PCD constantly, but most 3D software, game engines and web viewers outside that world will not import it. glTF is the format those tools share, which is why people want their scans in it.
Your file is converted on our servers by a Python point-cloud reader. It accepts PCD version 0.7 in ASCII or binary form and takes the point positions and RGB color. When a cloud has more than 1,000,000 points, it keeps a uniform random sample of 1,000,000. The points are then passed to trimesh, which writes them as a glTF point primitive. Coordinates pass through as plain numbers, and glTF reads them as meters, which matches the usual PCL and ROS convention. No surface is reconstructed: you get a cloud of points back, not a mesh.
The .gltf this page currently produces from a PCD is not usable. trimesh stores the point data in a separate file named gltf_buffer_0.bin, and our packaging step does not include it. You download a lone .gltf that refers to a buffer you never receive, and viewers report a missing or unloadable buffer. In a batch, the buffers of different files also overwrite each other. Until we fix this, do not rely on this page for a working .gltf.
The practical route is our PCD to GLB converter. GLB is the binary container of glTF 2.0, with the buffer built in, and from a PCD it keeps your points and their colors. Large coordinates, such as projected map positions above 100,000, are moved into the node transform, so the cloud still sits at its original location. One thing needs fixing after import. PCD data is Z-up and is written into Y-up glTF without an axis swap, so the cloud appears tipped 90 degrees onto its side.
This matters most to robotics, mapping and computer-vision people who want to share a capture in a web viewer, drop it into a game engine, or hand it to someone who has never installed PCL.
Getting a usable glTF-family file from a PCD
- Open the PCD header in a text editor and read the DATA line. ASCII and binary files are read. Files marked binary_compressed are refused, so re-save them first, for example with the pcl_convert_pcd_ascii_binary tool that ships with PCL or by exporting again from CloudCompare.
- If the cloud holds more than 1,000,000 points and you care which ones survive, thin it yourself with a voxel-grid filter. Otherwise a random million is kept, and the page does not tell you that this happened.
- Go to the PCD to GLB converter and upload the file there instead of on this page. Guests can send files of up to 50 MB, up to 10 per batch, and each file is converted separately.
- Download the .glb. In your viewer or engine, rotate the cloud 90 degrees about the X axis so it stands upright.
- If a tool insists on the separate .gltf plus .bin layout, unpack the GLB on your own machine with the open-source gltf-transform command-line tool, using gltf-transform copy scan.glb scan.gltf.
What the converter does with your points
- Reads PCD v0.7 headers with ASCII or binary data, including the x, y, z and rgb fields written by PCL and ROS tools
- Carries per-point RGB color into GLB output
- Keeps georeferenced offsets: coordinates above 100,000 are held in the GLB node transform rather than baked into the points
- Caps clouds at 1,000,000 points with a uniform random sample, so dense scans still go through
- Writes points as points, with no guessed surface and no invented faces
- Upload limits per file are 50 MB as a guest, 100 MB with a free account, 200 MB on Plus and 1 GB on Pro
Video Tutorial
Detailed guide on how to convert PCD files to GLTF quickly, for free, and without losing original quality. Perfect if you need to process file formats, reduce size, or upload files to systems that onl
PCD to glTF questions
Why does my converted .gltf fail to open or show nothing?
The binary buffer that holds the points is missing from the download. The .gltf refers to gltf_buffer_0.bin, and our packager currently leaves that file out. This is a known fault on our side for point-cloud sources, not a problem with your PCD. Convert to GLB instead, which keeps everything in one file.
How do I end up with a .gltf and .bin pair?
Convert to GLB with our PCD to GLB converter, then split the GLB on your computer. The open-source gltf-transform tool does this with gltf-transform copy file.glb file.gltf, and it writes the .bin next to the .gltf.
Will the PCD turn into a mesh?
No. The output is a point primitive: each PCD point becomes a colored vertex, and no faces are created. If you need a surface, reconstruct it first in MeshLab or CloudCompare, for example with Poisson reconstruction, and export a mesh format from there.
Why is my scan lying on its side in the GLB?
PCD clouds are normally Z-up, and our converter writes those numbers into glTF, which is Y-up, without swapping the axes. Rotate the model 90 degrees about the X axis after import. We will remove this step from the page once the axis handling is fixed.
My PCD was refused. What should I check?
Look at the DATA line first. binary_compressed PCD is not read, so re-save the file as binary or ASCII and upload it again. The reader is built for version 0.7 headers. If a re-saved file still fails, export it again from the program that created it.
What happens to a cloud with tens of millions of points?
It still converts if it fits your plan's file size limit, but only a uniform random sample of 1,000,000 points is kept. No notice appears on the page when this happens. Downsample beforehand if you want control over which points remain.
I wanted to turn a PCD file into a JPG. Is this the right page?
Probably not. Kodak Photo CD images also use the .pcd extension, but they are photographs, not point clouds, and this converter only reads Point Cloud Library files. An image viewer with Photo CD support, such as XnView, or ImageMagick can export those to JPG.
What happens to my file after conversion?
The PCD travels over HTTPS to our server and is deleted as soon as the conversion finishes. The result stays available for about 4 hours behind a long random link and is then removed automatically. Anyone you share that link with can download the file until it expires.