Point Cloud Viewer
Operator: Abdulla Al Fahad. How tools are built and checked
A LiDAR or photogrammetry cloud is often tens of millions of points in a file the size of a film, and most tools that open it want to be installed first. The question you usually have is simpler: is the data where I expect it, how big is it, and what do the heights look like?
This page opens LAS, LAZ, PLY and plain XYZ text, keeps a representative three million points when a cloud is bigger, and draws them in a 3D view that stays responsive while you turn it.
Key features
- LAS 1.2, 1.3 and 1.4 with point formats 0 to 10 (a 1.4 header's 64-bit point count is used when it is set), and LAZ through the laz-perf decoder served from this site
- PLY (ASCII and both binary byte orders) and delimited text with or without a header row; red, green, blue, intensity and class columns are picked up when present
- Colour by RGB, intensity, height (2nd to 98th percentile) or ASPRS class with a legend that lists the classes found and their counts
- Top, front and side views, point size from 1 to 8 pixels, and a two-click distance tool that reports the straight-line, horizontal and height difference
- Export of a thinned cloud as binary PLY or CSV, with coordinates written as doubles and the original offsets restored
- Bounding box of the points drawn next to the one the file header claims, with a warning when they disagree
How large clouds are shown
A LAS file stores each coordinate as a 32-bit integer plus a scale and an offset in the header, so the real position is integer × scale + offset. Survey data carries large offsets: a UTM easting near 500,000 m cannot be held in a 32-bit float without losing resolution, because floats near that value are spaced 0.03125 m apart, and a northing near 4,000,000 m is spaced 0.25 m apart.
This page therefore subtracts the box centre in double precision first, draws relative positions, and adds the centre back for measurements and exports.
Large clouds are sampled instead of read in full. For LAS and binary PLY the reader jumps to every nth record, where n is the point count divided by three million, rounded up; for text it counts lines first. Uniform stride sampling keeps the cloud's shape and density pattern, but it can skip a thin feature such as a single wire, and the measurement tool only knows the points that were kept.
LAZ is LAS compressed in chunks by LASzip. The LASzip chunk table would allow seeking, but laz-perf is used here to decode the points in order, which is why a LAZ file is limited to 40 million points and 250 MB, and it keeps only every nth record as it goes. The decoder is the Apache-2.0 laz-perf library compiled to WebAssembly; its 214 KB module and licence are served from this site's own folder, so nothing is fetched from a third-party host.
How it works
A worker parses the file into typed arrays and sends them back; the view then draws them as round points with one draw call, and a click finds the nearest point by projecting every kept point to the screen and taking the closest within 14 pixels, preferring the nearer one.
Colours are computed on the page from the arrays, so switching between height, intensity and class does not re-read the file.
When this helps
- A drone survey saved as a 380 MB LAS with 11 million points is opened to check coverage before the site visit ends. The top view shows an empty strip along one edge, and the extent line shows the flight covered 240 m by 150 m instead of the planned 300 m.
- A national LiDAR tile arrives as a LAZ 1.4 file in point format 6. The header's 64-bit count is read, the points are decompressed and thinned, and colouring by class shows ground (2), vegetation (3 to 5) and buildings (6), so a tile that is all class 1 can be recognised as unclassified before anyone orders more of them.
- A terrestrial scan arrives as a 90 MB CSV of x, y, z, intensity. The page reads the 4-column layout as intensity, colours it grey, and a 500,000-point PLY export is small enough to mail to a colleague.
Opening a file
- Drop a .las, .laz, .ply, .xyz, .csv or .txt file.
- Check the point counts and the ranges of X, Y and Z against what you expect from the survey.
- Pick a colour mode and a point size, and use the Top view to look for gaps in coverage.
- Tick Measure and click two points to read a distance, or choose how many points to keep and download the thinned PLY or CSV.
Example
A hand-built LAS 1.2 file, point format 2 (RGB), 10 points from (500000, 4000000, 100) to (500013.5, 4000004.5, 118)
Open the file; colour by RGBCounts, extent and export values
10 points in the file, 10 drawn; extent 13.5 × 4.5 × 18; centre (500006.75, 4000002.25, 109)
The first point is stored as (-6.75, -2.25, -9) relative to that centre and exported as 500000, 4000000, 100
A header that claims 9,000,000 points would be drawn at every 3rd point (3,000,000 kept)Limits
The distance tool measures between drawn points, not between surfaces, and on a thinned cloud the nearest drawn point can be several decimetres from the feature you meant.
Coordinates are shown in the file's own units and coordinate system. The page does not reproject, and a LAS in feet shows distances in feet.
A header's bounding box is often stale after a cloud was edited, which is why the numbers shown are computed from the points and the header's box appears only as a warning.
Text files that mix delimiters or leave blank cells are rejected with the line number rather than guessed at.
- Use the Top view, point size 1 and intensity colouring to look for flight-line seams: overlapping strips often show as bands of different brightness, because intensity is not calibrated between passes.
- Switch to class colouring first on an airborne file: if everything is class 1 (Unclassified) the ground filter was never run, which tells you more than the picture does.
Common errors and how to fix them
- "The file holds … points. LAZ is decompressed one point after another, so files over 40,000,000 points are refused"
- Thin the file with a LAS tool first, or split it by tile; decompressing more than that in a browser tab risks running out of memory.
- "The header says … points but the file only holds …; the file looks cut off"
- The download or copy was interrupted. The points that are present are still drawn, but fetch the file again.
- "The vertex element must come first in the PLY file"
- Re-save the cloud so the vertex element precedes faces or other elements, or convert it to LAS.
- "LAS point format 12 is not defined"
- Formats 0 to 10 exist in LAS 1.0 to 1.4. A larger number usually means the file is not a LAS or is damaged.
Best practices
- Compare the point count in the file with the Drawn row before trusting a measurement: when they differ, the distance tool only knows the kept points, and a thin feature you care about may have been skipped.
Height and intensity colours
Height colours run a viridis-style ramp from the 2nd to the 98th percentile of Z, so a few noise points far above or below the scene do not flatten the colours of everything else. Intensity is the return strength recorded by the sensor, scaled by the largest value in the file and drawn from dark to light grey; it is not calibrated, so it compares points within one file only.
Class and RGB colours
Class colours follow the ASPRS standard numbering: 2 ground, 3 to 5 low, medium and high vegetation, 6 building, 7 low noise, 9 water, 10 rail, 11 road surface, 17 bridge deck and 18 high noise. RGB uses the 16-bit values from point formats 2, 3, 5, 7, 8 and 10, shifted down to 8 bits when any value is above 255, and is ignored when every colour is zero.
Frequently asked questions
How large a LAS or LAZ file can it open?
Up to 600 MB for LAS, and for LAZ up to 250 MB and 40 million points. A LAS is read by jumping to every nth record, so a big file costs only the sampled records, while a LAZ must be decompressed point by point, which is the reason for the lower limit.
Why does a LAZ file take longer to open than a LAS of the same cloud?
A LAS needs only the records that are drawn, but laz-perf decodes a LAZ file's points in order from the start and discards all but every nth, so the time grows with the full point count. Decompressing happens in a worker with a Cancel button, and a file that declares more than 40 million points is refused before decoding begins.
Why does the page draw fewer points than the file holds?
Above three million points the page keeps every nth point so the view stays smooth, and says so in the Drawn row. The file's full point count is still reported, and exports are thinned from the drawn set, so an export can never contain more points than the view.