Free PLY test files and sample generator

The Stanford polygon mesh format (ASCII), common in 3D scanning and point clouds. Generate valid .ply sample files for viewers, converters and CAD tools.

Generate a .ply file →

What is a .ply file?

PLY: Polygon File Format. PLY was designed for 3D scanning and point clouds, with a self-describing header that declares exactly which properties each element carries. That flexibility means readers must parse the header rather than assume a layout.

Why generate a test PLY file?

What you can put inside a .ply file

You get 2 content options for PLY, so the file holds something meaningful rather than random padding: Solid mesh, Point cloud. For PLY these are alternatives, so choose the one that matches what you need to test.

How a .ply file is identified

A .ply file has no signature at the start. A text format has no identifying leading bytes, so the extension and the reported media type are the only claims about it until a parser actually reads it, which is why validating uploads by extension alone is unsafe.

How the size lands on the exact byte

The format allows comments, so the padding is comment lines, legal, inert, and visible if you open the file.

Negative testing with broken PLY files

Which failure to reach for, and what to assert for each, is covered in how to make a corrupted file for testing. For upload limits and type checks see testing file upload validation, and for this format's encodings, UTF-16 and BOM test files.

Sample PLY content

ply
format ascii 1.0
element vertex 3
property float x
property float y
property float z
element face 1
property list uchar int vertex_index
end_header
0.00 0.00 0.00
1.00 2.00 3.00
2.00 4.00 6.00
3 0 1 2

This shows the shape of the file. Your download is generated fresh at the size you choose, so the values will differ.

How to open and verify the file

Open in MeshLab, CloudCompare, Blender or Windows 3D Viewer.

Media type model/ply · extension .ply · category 3D

Generate a .ply file → · questions about sizes, privacy or cost are answered on the site FAQ.

Frequently asked questions about PLY files

What identifies a .ply file?

Nothing at the start of the file does. A text format has no identifying leading bytes, so the extension and the reported media type are the only claims about it until a parser actually reads it, which is why validating uploads by extension alone is unsafe.

How can a .ply file be an exact number of bytes?

The format allows comments, so the padding is comment lines, legal, inert, and visible if you open the file.

What can go inside the PLY file?

There are 2 content options for .ply: Solid mesh, Point cloud. For PLY these are alternatives, so pick the one matching what you need to test.

Can I download several broken PLY files at once?

Yes, select more than one File Condition and you get one ZIP containing a .ply per condition, each named after its condition.

Can the PLY file use UTF-16 or a byte-order mark?

Yes. .ply is a text format, so it can be generated as UTF-8, UTF-8 with a byte-order mark, UTF-16 LE or UTF-16 BE. The body is shortened before re-encoding so the finished file still lands on the exact size you asked for. Note that a UTF-16 file always has an even byte count.

How do I open or verify the PLY file?

Open in MeshLab, CloudCompare, Blender or Windows 3D Viewer.

Related 3D formats

OBJ · STL · glTF

Browse all file formats →