# CSV — Comma-Separated Values with XY columns

> CSV (Comma-Separated Values with XY columns): Plain-text comma-separated table in which each row is a point feature with coordinates stored in X and Y columns. Specs, software and free sample files; convert CSV to 39 formats online.

- Page: https://beta.mygeodata.cloud/formats/csv



## What is a CSV file?

CSV with XY columns is a plain-text table in which each row represents one point feature. Two columns hold its coordinates, usually longitude and latitude or projected easting and northing. The general comma-separated values format is described in RFC 4180, but there is no geospatial standard for coordinate columns, so the reading application must be told which fields contain the X and Y values. Optional Z or elevation columns are also common. The format is widely used for GPS logs, survey points, geocoding results and database extracts.

CSV files carry no data types, geometry definition or coordinate reference system. WGS 84 is commonly assumed, and some tools read a .prj sidecar for the CRS or a .csvt file describing column types. Delimiters, decimal separators and character encodings vary by locale, which frequently causes import errors. Only point geometry can be represented in this way.

CSV files with XY columns are exchanged by surveyors, GPS users, analysts and database administrators who need a simple way to move point data between systems. Because the file stores no coordinate reference system or column types, always confirm which columns hold X and Y, which CRS applies, and which delimiter, decimal separator and encoding were used before importing.

### Technical details

| | |
|---|---|
| Full name | Comma-Separated Values with XY columns |
| Data type | Vector · Table & spreadsheet |
| File extension | .csv |
| Files | Single file |
| Media type | text/csv |
| Geometry types | Point |
| Multiple layers | No |
| Mixed geometry in a layer | Yes |
| Attribute names | — |
| Coordinate system | Any (EPSG, ESRI, custom) |
| Converter support | Read & write |
| Typical software | QGIS, ArcGIS Pro, GDAL/OGR, FME, Global Mapper, Microsoft Excel |
| Specification | https://www.rfc-editor.org/rfc/rfc4180 |

### Specifications & references

- https://www.rfc-editor.org/rfc/rfc4180
- https://gdal.org/en/stable/drivers/vector/csv.html

### Sample CSV files — free download

- [Places (lon/lat columns)](https://beta.mygeodata.cloud/static/landing/samples/v1/csv_xy/st-helena-places.csv) — 58 places of Saint Helena (20 settlements, 17 peaks, 21 points of interest) with name, category, elevation from Copernicus DEM and OSM id. Comma-separated, UTF-8, coordinates in columns lon and lat. (4.7 kB, EPSG:4326)
- [Hike track points (lat, lon, ele, time)](https://beta.mygeodata.cloud/static/landing/samples/v1/csv_xy/st-helena-hike-points.csv) — 513 GPS track points of the hike every 10 s with elevation, UTC time and speed. (29.1 kB, EPSG:4326)

### Convert CSV to other formats

- [CSV to KML](https://beta.mygeodata.cloud/converter/csv-to-kml)
- [CSV to GPX](https://beta.mygeodata.cloud/converter/csv-to-gpx)
- [CSV to DXF](https://beta.mygeodata.cloud/converter/csv-to-dxf)
- [CSV to KMZ](https://beta.mygeodata.cloud/converter/csv-to-kmz)
- [CSV to SHP](https://beta.mygeodata.cloud/converter/csv-to-shp)
- [CSV to GeoJSON](https://beta.mygeodata.cloud/converter/csv-to-geojson)
- [CSV to Parquet](https://beta.mygeodata.cloud/converter/csv-to-parquet)
- [CSV to MapInfo](https://beta.mygeodata.cloud/converter/csv-to-mapinfo)
- [CSV to SQLite](https://beta.mygeodata.cloud/converter/csv-to-sqlite)
- [CSV to MIF](https://beta.mygeodata.cloud/converter/csv-to-mif)
- [CSV to GPKG](https://beta.mygeodata.cloud/converter/csv-to-gpkg)
- [CSV to WKT](https://beta.mygeodata.cloud/converter/csv-to-wkt)
- [CSV to XLSX](https://beta.mygeodata.cloud/converter/csv-to-xlsx)
- [CSV to SVG](https://beta.mygeodata.cloud/converter/csv-to-svg)
- [CSV to GeoPDF](https://beta.mygeodata.cloud/converter/csv-to-geopdf)
- [CSV to GML](https://beta.mygeodata.cloud/converter/csv-to-gml)
- [CSV to TopoJSON](https://beta.mygeodata.cloud/converter/csv-to-topojson)
- [CSV to DGN](https://beta.mygeodata.cloud/converter/csv-to-dgn)

## Frequently asked questions

### Why do my points appear in the wrong place after importing a CSV file?

The most common causes are swapped X and Y columns, a wrong CRS assumption, or decimal commas read as text. Check that longitude or easting is used as X and latitude or northing as Y, and assign the correct CRS during import.

### Can a CSV file store lines or polygons?

Not as true geometry with XY columns, since each row holds only one point. Lines and polygons need a format with geometry support, or a CSV that stores geometry as text such as WKT, which is a different layout.

### How can I fix garbled characters or merged columns when opening a CSV file?

Garbled characters usually mean the encoding is mismatched, so try UTF-8 or the local code page. Merged columns usually mean the delimiter is wrong, for example a semicolon used instead of a comma, so set the delimiter explicitly when importing.

### What is a CSV file?

CSV with XY columns is a plain-text table in which each row represents one point feature. Two columns hold its coordinates, usually longitude and latitude or projected easting and northing. The general comma-separated values format is described in RFC 4180, but there is no geospatial standard for coordinate columns, so the reading application must be told which fields contain the X and Y values. Optional Z or elevation columns are also common. The format is widely used for GPS logs, survey points, geocoding results and database extracts.

CSV files carry no data types, geometry definition or coordinate reference system. WGS 84 is commonly assumed, and some tools read a .prj sidecar for the CRS or a .csvt file describing column types. Delimiters, decimal separators and character encodings vary by locale, which frequently causes import errors. Only point geometry can be represented in this way.

### How do I open a CSV file?

CSV files can be opened in QGIS, ArcGIS Pro, GDAL/OGR, FME and Global Mapper. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert CSV to?

Popular conversions are KML, GPX, DXF, KMZ, SHP and GeoJSON. In total the Converter writes CSV data to 39 formats.

### How do I create a CSV file?

Convert existing data to CSV — for example from KML, KMZ, GPX, Parquet and GeoJSON. Upload the file, choose CSV as output and download the result.

