You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Raster · Elevation & grid

XYZ — ASCII Gridded XYZ

Plain-text format listing X, Y and Z values per line, read as a raster when the points form a regular grid.

Type
Raster · Elevation & grid
Extension
.xyz, .txt, .csv
Converter
Read & write
Coordinate system
Any (georeferenced)
Bands
Single value (Z) per sample.

What is a XYZ file?

ASCII Gridded XYZ is a simple text format in which each line holds the X and Y coordinates of a grid cell together with a single Z value. There is no formal standard or maintaining organisation. It is widely used for bathymetric and terrain grids, exports from survey and modelling software, and generic data exchange because almost any program can write it.

Values are typically separated by spaces, tabs, commas or semicolons, and an optional header line may name the columns. For the data to be read directly as a raster, the points must lie on a regular lattice with constant spacing and be sorted consistently by rows. Scattered or irregular samples must first be interpolated into a grid. The format stores only one value per location and contains no coordinate reference system, nodata definition or other metadata. As uncompressed text, it produces large files, and reading it is slower than reading binary grid formats.

XYZ grids usually come from surveyors, hydrographers and modelling teams who need a quick way to hand over elevation or depth data. Because the file is plain text, the delimiter, column order, decimal separator and units are not declared, so check them before loading. The coordinate system and nodata value must be obtained separately, and irregular spacing or missing rows can stop it from loading as a raster.

Typical uses

  • Exchanging bathymetric and terrain grids between different programs.
  • Exporting elevation results from survey or modelling software.
  • Inspecting or editing grid values in a text editor or spreadsheet.
  • Converting point-based elevation data to a raster or other GIS format.
Files: Each record holds X Y Z; may represent a regular grid or scattered samples.

Sample XYZ files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena elevation model st-helena-dem-90m.xyz

Elevation points (90 m, UTM)

Copernicus DEM GLO-30 elevation model of Saint Helena (0–812 m), a surface model including trees and buildings; sea = 0 m. Averaged to 90 m in UTM zone 30S (201×169 px) to keep the text file small. Space-separated X Y Z lines with a header.

  • 1 band · Float32
  • 631 × 505 px
  • 1 arc-second (~30 m)
  • EPSG:32730
  • 791.5 kB

Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Frequently asked questions

The points probably do not lie on a regular grid with constant spacing, or the rows are not sorted consistently. Irregular or scattered points must first be interpolated to a grid. A wrong delimiter or an unexpected header line can also cause the failure.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.