Back to all articles
Guide

The Beginner's Guide to Spatial Data Formats

A friendly introduction to the many spatial data formats you will encounter in GIS — from Shapefile and GeoJSON to GeoTIFF and LAS. Learn what each format is for.

Muhammad Junaid BaigOctober 6, 20269 min read

If you are new to GIS, one of the first things that overwhelms you is the sheer number of file formats. Shapefiles, GeoJSON, KML, GeoPackage, GeoTIFF, LAS, NetCDF, GML... the list seems endless.

The good news is that all these formats fall into just a few categories. Once you understand the categories, the specific formats make much more sense.

If you only need a table for Excel, CSV is the simplest choice. Here is how to export ArcGIS data to CSV, including the geometry column.

The two fundamental data types

Every spatial dataset is either vector or raster.

Vector data

Represents discrete objects with precise geometry: points, lines, and polygons. A city boundary is a polygon. A road is a line. A traffic light is a point.

Raster data

Represents continuous surfaces as a grid of cells (pixels), each with a value. Satellite imagery, elevation models, and temperature maps are all raster.

Vector formats

Shapefile (.shp)

The classic ESRI format from the 1990s. Universally supported but with serious limitations (10-character field names, 2 GB limit, no nulls). Use it only for legacy compatibility.

GeoJSON (.geojson)

The modern web standard. Human-readable, single-file, JSON-based. Ideal for web maps and small datasets. Not efficient for large data.

GeoPackage (.gpkg)

An OGC standard built on SQLite. Single file, unlimited size, supports multiple layers, full Unicode. The best choice for professional GIS work today.

KML / KMZ (.kml, .kmz)

Google's format for Google Earth. Supports points, lines, polygons, and styled 3D content. Not designed for analysis.

GML (.gml)

An XML-based OGC standard. Verbose but very interoperable. Most commonly used as the default output of WFS servers.

FlatGeobuf (.fgb)

A newer binary format designed for fast streaming. Excellent performance for very large datasets. Rising in popularity but not yet universally supported.

File Geodatabase (.gdb)

Esri's proprietary container for vector data. Common in enterprise ArcGIS environments but not readable by non-Esri tools without conversion.

CSV with geometry (WKT or lat/lon columns)

Not a true spatial format, but extremely useful for sharing data with non-GIS colleagues. Geometry is stored as text (WKT) or as separate latitude/longitude columns.

Raster formats

GeoTIFF (.tif, .tiff)

The universal raster format. A TIFF image with embedded georeferencing metadata. Handles everything from satellite imagery to elevation models.

Cloud Optimized GeoTIFF (COG)

A variant of GeoTIFF optimized for cloud access. Lets clients read just the portion of a raster they need without downloading the whole file.

JPEG 2000 (.jp2)

Common in satellite imagery distribution. Better compression than plain JPEG but slower to decode.

NetCDF (.nc)

A self-describing multidimensional format used heavily in climate, ocean, and atmospheric science. Stores arrays indexed by time, latitude, longitude, and other dimensions.

HDF5 (.h5, .hdf)

Similar to NetCDF in purpose — multidimensional scientific data. Used by NASA Earthdata.

ASCII Grid (.asc)

A plain-text raster format. Rarely used today for large data, but useful for small elevation grids and for debugging.

Point cloud formats

LAS (.las)

The original LiDAR point cloud format, maintained by ASPRS. Binary, efficient, and universally supported.

LAZ (.laz)

A compressed version of LAS. Typically 5–10× smaller with no data loss. Now the preferred format for LiDAR distribution.

COPC (.copc.laz)

Cloud Optimized Point Cloud — the point cloud equivalent of COG. Enables streaming large LiDAR datasets.

Web service formats

ArcGIS REST FeatureServer

Esri's web API for vector data. Returns JSON, GeoJSON, or PBF.

WMS (Web Map Service)

An OGC standard that returns rendered map images. Useful for display but not for download.

WFS (Web Feature Service)

An OGC standard that returns actual vector features. The download-oriented sibling of WMS.

WMTS (Web Map Tile Service)

Serves pre-rendered map tiles for fast display. Not useful for downloading data.

How to choose a format

You want to...Use this format
Share with another GIS professionalGeoPackage
Share with a non-GIS colleagueCSV or KML
Build a web mapGeoJSON
Work with satellite imageryGeoTIFF or COG
Work with LiDARLAZ or COPC
Publish an open datasetGeoPackage + GeoJSON
Store climate dataNetCDF
Open in Google EarthKML
Import into ExcelCSV

Summary

There are many spatial data formats, but they all serve one of a few purposes: vector data, raster data, point clouds, or web services. Once you know which category your data belongs to, picking the right format becomes straightforward. For most vector work today, GeoPackage is the best choice — with GeoJSON for web use and CSV when you need maximum compatibility.

#File Formats#Fundamentals#Raster#Vector
Written by Muhammad Junaid Baig, a geospatial developer who builds and maintains Geo Server Data Downloader. About the author. Spotted a mistake or an outdated step? Tell us and we will fix it.

Related guides

Ready to try it yourself?

Export ArcGIS REST services, WFS endpoints, and ArcGIS Online datasets to Shapefile, GeoJSON, KML, or GeoPackage — all in your browser.

Open the Downloader