Back to all articles
Guide

GeoJSON vs Shapefile vs GeoPackage: Which Format Should You Use?

A practical comparison of the three most common vector GIS formats. Learn when to use GeoJSON, when to use Shapefile, and when GeoPackage is the right choice for your project.

Muhammad Junaid BaigOctober 5, 202610 min read

If you work with spatial data, you eventually have to pick a format. Three names come up more than any others: Shapefile, GeoJSON, and GeoPackage. They all store vector features — points, lines, and polygons with attributes — but they are surprisingly different once you look closer.

Choosing the wrong format wastes time, breaks tools, and sometimes loses data silently. This guide breaks down each format's strengths and weaknesses so you can pick confidently.

The 30-second answer

  • Use GeoJSON for web maps, small datasets, and quick sharing.
  • Use GeoPackage for anything GIS-professional: QGIS, ArcGIS Pro, large datasets, multi-layer projects.
  • Use Shapefile only when you specifically need compatibility with legacy software.

Shapefile — the veteran (1990s)

The ESRI Shapefile was introduced in the early 1990s and is still the most widely recognized spatial format in the world. If you email spatial data to a non-GIS colleague, they probably expect a Shapefile.

Strengths

  • Universal support — every GIS tool reads Shapefiles
  • Simple, well-documented structure
  • Lightweight for small datasets
  • Easy to email as a single ZIP

Weaknesses

  • Not one file — a bundle of 3–7 separate files
  • Stores only one geometry type per file
  • 10-character field name limit
  • No null values in the .dbf table
  • 2 GB file size limit
  • No native support for date-time fields
  • Weak Unicode support

GeoJSON — the web native (2008+)

GeoJSON is a text-based format built on top of JSON. It was standardized as RFC 7946 in 2016 and has become the de facto standard for web mapping.

Strengths

  • Human-readable — you can open it in a text editor
  • Single file — no sidecar files to lose
  • Native support in every modern web mapping library
  • Stores geometry and attributes together
  • No field name length limits
  • Handles nulls, dates, and Unicode cleanly
  • Easy to diff in Git

Weaknesses

  • Very verbose — typically 5–10× larger than a Shapefile
  • No spatial index — slow for large datasets
  • Not ideal for datasets over ~50 MB
  • No multi-layer support

GeoPackage — the modern container (2014+)

GeoPackage is an OGC standard built on top of SQLite — the same database engine that runs on virtually every phone. It is a single file that can contain multiple layers, store both vector and raster data, and scale to very large datasets.

Strengths

  • Single file — no sidecar chaos
  • Supports multiple layers in one file
  • Field names up to 255 characters
  • No hard size limit
  • Native spatial index (RTree)
  • Full Unicode support
  • Backed by SQLite — rock-solid

Weaknesses

  • Larger than Shapefile for very small datasets
  • Older tools (pre-2016) may not read it
  • Slightly more complex to inspect

Direct comparison

FeatureShapefileGeoJSONGeoPackage
Number of files3–711
Multi-layerNoNoYes
Max field name10 charsUnlimited255 chars
File size limit2 GBNone (practical)~140 TB
Human-readableNoYesNo
UnicodePartialFullFull
Null valuesNoYesYes
Date-time fieldsNoYesYes
Spatial indexYes (opt.)NoYes
Web-friendlyNoYesNo

Real-world scenarios

You are building a Leaflet web map

Use GeoJSON. It is what Leaflet, Mapbox, and every other web mapping library expects. Keep layers under 10,000 features, or use vector tiles for larger datasets.

You are analyzing 500,000 parcels in QGIS

Use GeoPackage. It handles large datasets gracefully, keeps your layers organized in one file, and preserves every field exactly as it should be.

You are emailing a single boundary to a client

Use Shapefile — it is the lingua franca of GIS. ZIP it up and send.

Converting between formats

You do not need to pick one format forever. Converting between GeoJSON, Shapefile, GeoPackage, KML, and CSV is a routine task — and you can do it entirely in your browser with Geo Server Data Downloader.

  1. Load any ArcGIS REST service or local vector data into the Downloader.
  2. Open the Bulk Export dialog.
  3. Pick the output format you need.
  4. Download the ZIP archive containing your converted files.

The bottom line

There is no single "best" GIS format — only the right format for the job. GeoJSON wins for web and simplicity. GeoPackage wins for professional GIS work. Shapefile wins for pure compatibility.

#GeoJSON#Shapefile#GeoPackage#Comparison
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