Skip to content
LidarKit

Convert XYZ, PTS or CSV to LAS in your browser

Drop a text point cloud and get LAS 1.4 or LAZ back. You see what every column was read as, and can change it, before anything is written. Nothing is uploaded.

  • Delimiter detected
  • Every column editable
  • LAS 1.4 or LAZ
  • No upload

Drop your XYZ, PTS, TXT or CSV file here

or choose a file

Any delimiter, with or without a header · add its .prj to keep the coordinate system · any size

No file to hand? — 150 × 150 m of central Brussels, airborne LiDAR, 2014, x y z r g b, 79,049 lines (2.73 MB).

No upload. Processing runs in a Web Worker on your device — this app has no server component and no upload endpoint. How it works

What the converter does

Press Try the sample above to see the column table and the result on a real XYZ file before you use your own.

  • TEXT → LAS 1.4

    Text in, LAS or LAZ out

    Point format 7 when the file has colour, 6 when it doesn't. Intensity, classification, returns and GPS time come along when there are columns for them.

  • COLUMNS · READ AS

    Every column, and what it was read as

    Each column shows its range, its role and whether that came from the header or a guess. Change a role and the conversion follows.

  • PRECISION · FROM THE DIGITS

    Precision from the file's own digits

    Two decimals are stored at 0.01 and three or more at 0.001. Longitude and latitude get 1e-7°, about a centimetre.

  • RANGES · ONTO 16 BITS

    Colour and intensity, scaled with care

    8-bit colour is lifted to 16 bits and 0–1 colour scaled up. Integer intensity is kept as it is, and Leica PTS intensity is shifted onto the LAS range.

  • LINES SKIPPED · 2

    Bad lines are counted

    A line with a missing value, or something that isn't a number, is skipped. You get the count and the first line numbers, so you can find them.

  • CRS · FROM A .PRJ

    A coordinate system from the .prj

    Text files have nowhere to keep one. Drop the .prj that came with the file and its WKT goes into the LAS. Without one, no CRS is written.

What is an XYZ file?

A text point cloud: one point per line, X, Y and Z first, then whatever the program that wrote it felt like adding. The same idea goes by .xyz, .pts, .txt, .csv and .asc.

A LAS file says exactly where every value sits. A text file says almost nothing: no required header, no fixed delimiter, no units, no coordinate system and no column order. So this converter reads the start of the file and samples the rest, then shows you what it decided before anything is written.

There's more in What is an XYZ file? and XYZ vs LAS.

//X,Y,Z,R,G,B · maybe

A header line, if the writer added one

One point per line

148811.10,170688.42,52.31,118,112,98

148811.32,170688.40,52.29,121,115,101

…

no units
no CRS
any order

How to convert XYZ to LAS or LAZ

  1. 1. Drop the file in

    Drag the text file onto the tool, with its .prj if it has one. No file to hand? Press Try the sample.

  2. 2. Check the columns

    Fix any role that's wrong in the table. The 3D view, if you open it, shows exactly what will be written.

  3. 3. Convert and save

    Pick LAZ or LAS and press Convert. The result lists any skipped lines before you download it.

What gets written

FormatLAS 1.4
Point format 7 with colour, 6 without.
Precision0.01 or 0.001
From the file's decimals. 1e-7° for degrees.
Coordinate systemfrom .prj
Written as a WKT record. None without a .prj.
Colour16-bit
0–255 × 257, 0–1 × 65 535, 16-bit kept.
Intensitykept
PTS −2048…2047 shifted; 0–1 scaled; others mapped from their range.
Left outnormals
And any column set to Not used.

Supported features and limitations

Works today

  • .xyz, .pts, .txt, .csv, .asc, .xyzrgb and .xyzn
  • Spaces, tabs, commas, semicolons and decimal commas
  • Header rows, CloudCompare's //X and PDAL's quoted one included
  • The point count line at the top of a Leica PTS file
  • Intensity, RGB, classification, returns and GPS time
  • A 3D view of the points before you convert
  • A .prj coordinate system, written as WKT
  • LAZ or LAS out, with no fixed size limit

Good to know

  • Guesses can be wrong. When two groups of three could both be colour, the later one is taken, as in the PTS layout x y z i r g b. If yours is x y z r g b i, change it in the table.
  • The point count is an estimate until the file has been read. A text file doesn't state one.
  • Out-of-range values are clamped. Intensity above 65 535 or a class above 255 is set to the nearest value LAS can hold, and counted.
  • Normals are dropped. LAS point formats 6 and 7 have no field for them.
  • PTX isn't supported yet. Its separate transform per scan isn't read.

How it compares with desktop software

Desktop point cloud software can import text too, usually through an import dialog. This page does the one conversion on whatever machine you're at, and shows you its guesses first.

TopicThis converterDesktop software
Getting startedOpen the page. Nothing to install.Install a package, often with a licence.
ColumnsWorked out for you, shown, and editable before anything is written.Often a fixed order, or set in an import dialog.
Bad linesSkipped, counted, and the first line numbers listed.Varies by program.
Coordinate systemTaken from a .prj if you add one.Usually assigned during import.
Large filesRead a few megabytes at a time. No fixed limit.Usually fine.
BatchesOne file at a time.Batch runs and scripts.
Your fileRead on your computer, not uploaded.Also stays on your computer.
PriceFree, no account.From free and open source to commercial licences.

To check the result, drop it on the LAS inspector or the LAZ viewer. Going the other way? LAS to XYZ writes text back out.

Your points stay on your computer

The browser reads the text file from your disk and hands it to a background worker on your own machine. That's where it's parsed and where the LAS or LAZ is written. There's no upload step.

You can check it: open your browser's developer tools, watch the Network tab and convert a file. The page counts anonymous events, like "a file was converted", with a rough file size. Nothing from inside your file goes with them. The privacy page has the details.

Frequently asked questions

How do I convert an XYZ file to LAS?
Drop the .xyz onto the converter above. It works out the delimiter, whether there's a header and what each column holds, and shows you a table of the columns. Check it, change anything that's wrong, pick LAZ or LAS and press Convert. It all happens on your own machine.
Does it convert Leica PTS files?
Yes. The point count on the first line is recognised and skipped, and the usual x y z intensity red green blue columns are read in that order. Leica intensity runs from −2048 to 2047, which LAS can't hold, so it's shifted onto 0 to 65 520 instead.
What delimiters and number formats are supported?
Any number of spaces, tabs, commas and semicolons, plus decimal commas like 1234,56, as European spreadsheets export them. Each possible layout is tried on many lines from the file, and the one that reads most lines the same way wins, so one odd line near the top doesn't decide it.
How does it know which column is which?
From the header when there is one: X, Y, Z, Easting, Northing, Intensity, Red, Green, Blue, Classification, GpsTime and their usual spellings. Without a header, the first three columns are X, Y and Z, three columns holding colour-like values are colour, three that always form a unit vector are normals, and the next one left over is intensity. Every guess is shown and can be changed.
What precision are the coordinates stored at?
The finest the file uses, between 1 mm and 1 cm. Two decimals are stored at 0.01 and three or more at 0.001, and Z gets its own scale by the same rule. Longitude and latitude in degrees are stored at 0.0000001°, about a centimetre, since at 0.001 every point would round to the nearest hundred metres.
Is the coordinate system kept?
Only if you add the .prj file that usually travels with the points. Drop it together with the point file, or add it afterwards, and its WKT is written into the LAS. Without one, no coordinate system is written.
What happens to bad lines?
They're skipped and counted. A line with too few values, or a value that isn't a number, is left out, and the result tells you how many there were and the line numbers of the first few. Blank lines and comments starting with # or // are skipped too.
Which LAS version and point format does it write?
LAS 1.4, point format 7 with colour and 6 without. Values LAS can't store, like intensity above 65 535 or a classification above 255, are set to the nearest value it can hold, and the result says how many points that affected. Normals aren't carried, since formats 6 and 7 have no field for them. PTX files aren't supported yet.
Is there a file size limit?
There's no fixed limit. The file is read a few megabytes at a time and the output is written to disk as it's produced, so neither has to fit in memory.
Are my files uploaded? Do I need an account?
No to both. The file is read and parsed in a background worker on your own device, and the LAS or LAZ is saved straight from your browser. Converting and downloading are free without signing in.