Skip to content
Aback Tools Logo

GeoJSON Compressor

Compress GeoJSON files online for free by reducing coordinate decimal precision and removing null properties. Our GeoJSON compressor shows the exact size vs accuracy tradeoff for each precision level — from 1 decimal place (~11 km) to 8 decimal places (~1 mm). Supports FeatureCollection, Feature, and all geometry types. No signup, no server uploads, 100% private.

Compress GeoJSON
Reduce GeoJSON file size by adjusting coordinate decimal precision and removing null/empty properties — with a live size vs accuracy tradeoff display.
~1.1 m accuracy
1 (~11 km)Building-level maps8 (~1 mm)

Why Use Our GeoJSON Compressor?

Instant GeoJSON Compression

Our GeoJSON compressor processes your files entirely in your browser — no upload wait times. Paste or upload any GeoJSON file and see compressed output with exact byte savings, feature count, coordinate count, and geometry type breakdown in milliseconds.

Secure GeoJSON Compressor Online

Your GeoJSON data never leaves your device when you use our GeoJSON compressor online. 100% client-side processing means complete privacy — no server uploads, no geographic data retention, and no risk of exposing sensitive location data or proprietary map assets.

GeoJSON Compressor — No Installation

Compress GeoJSON files directly in your browser with no GDAL, no Python, and no command-line tools required. Our GeoJSON compressor works on any device with a modern browser — no setup, no dependencies, no account needed.

Precision vs Accuracy Tradeoff Control

Our GeoJSON compressor gives you full control over coordinate decimal precision with a live accuracy display — from 1 decimal place (~11 km accuracy) to 8 decimal places (~1 mm). A built-in tradeoff table shows the right precision for your use case.

Common Use Cases for GeoJSON Compressor

Web Map Performance Optimization

Use our GeoJSON compressor to reduce the size of GeoJSON files loaded by Mapbox GL JS, Leaflet, and Google Maps. Smaller GeoJSON files load faster, render more smoothly, and reduce bandwidth costs for map tile servers and CDNs serving geographic data.

Boundary & Region Data Delivery

Compress country, state, and city boundary GeoJSON files for web delivery. Our GeoJSON compressor reduces coordinate precision to the level appropriate for your zoom level — 5 decimal places for street-level maps, 3 for city maps, 1 for country-level choropleth maps.

React & Next.js Map Applications

Reduce GeoJSON bundle sizes in React and Next.js applications that import geographic data as JSON modules. Our GeoJSON compressor removes null properties and reduces coordinate precision to minimize the JavaScript bundle impact of embedded geographic data.

PostGIS & Spatial Database Export

Compress GeoJSON exports from PostGIS, Spatialite, and other spatial databases before storing or transmitting them. Our GeoJSON compressor removes null property fields that spatial databases often include for every feature regardless of whether they have values.

Mobile Map Application Assets

Reduce GeoJSON file sizes for mobile map applications where bandwidth and storage are limited. Our GeoJSON compressor helps React Native and Flutter developers minimize the geographic data payload for offline map features and location-based services.

GeoJSON API Response Optimization

Compress GeoJSON API responses before caching them on CDNs or storing them in Redis. Our GeoJSON compressor reduces the wire size of geographic API responses by removing null properties and reducing coordinate precision to the minimum needed for your application.

Understanding GeoJSON Compression

What is GeoJSON Compression?

GeoJSON compression is the process of reducing the file size of GeoJSON geographic data files by applying two key techniques: coordinate precision reduction and property cleanup. GeoJSON files often contain coordinates with 8–15 decimal places of precision — far more than any mapping application needs. A coordinate like -73.98556518554688 can be safely rounded to -73.98557 (5 decimal places, ~1 meter accuracy) for most web maps. Our GeoJSON compressor also removes null and empty property values that spatial databases and GIS tools often include for every feature, and optionally minifies whitespace — together achieving 30–80% size reduction for typical GeoJSON files.

How Our GeoJSON Compressor Works

  1. Paste or upload your GeoJSON:Enter your GeoJSON content directly or click "Upload .geojson" to load a file. Use the "Load sample GeoJSON" button to try a realistic example with Points, LineStrings, and Polygons. All processing happens locally in your browser — your geographic data never leaves your device.
  2. Configure compression settings: Use the precision slider to set coordinate decimal places (1–8) with a live accuracy display. Enable null/empty property removal, whitespace minification, bbox removal, and feature ID removal as needed. The precision tradeoff table shows the right setting for your use case.
  3. Copy or download the compressed output:Click "Compress GeoJSON" to see the compressed output with exact byte savings, feature count, coordinate count, null properties removed, and geometry type breakdown. Copy to clipboard or download as a .geojson file.

What the GeoJSON Compressor Reduces

  • Coordinate Precision: Rounds all coordinate values to your chosen decimal places — the single biggest lever for GeoJSON size reduction. Reducing from 8 to 5 decimal places removes 3 characters per coordinate value, which compounds dramatically for files with thousands of coordinates.
  • Null Properties: Removes feature properties with null values — common in PostGIS exports where every column appears in every feature regardless of whether it has data. Null properties add JSON overhead without conveying information.
  • Empty Properties: Removes properties with empty strings (""), empty arrays ([]), and empty objects ({}) — another common artifact of database exports.
  • Whitespace: Removes all indentation and newlines from the JSON output — typically saves 20–40% of file size for well-formatted GeoJSON files with deep nesting.

Important Notes About GeoJSON Compression

Always choose coordinate precision based on your application's zoom level and accuracy requirements. For web maps showing country boundaries, 3–4 decimal places (~110 m accuracy) is sufficient. For street-level navigation, use 5–6 decimal places (~1 m accuracy). Never use fewer than 5 decimal places for applications where precise location matters. The GeoJSON compressor preserves all geometry types (Point, LineString, Polygon, MultiPolygon, GeometryCollection) and the FeatureCollection structure — only coordinate values and property values are modified.

Frequently Asked Questions About GeoJSON Compressor

A GeoJSON compressor reduces the file size of GeoJSON geographic data files by reducing coordinate decimal precision and removing null/empty properties. Our GeoJSON compressor runs entirely in your browser — your geographic data is never uploaded to any server. It supports FeatureCollection, Feature, and bare geometry types.

5 decimal places (~1.1 m accuracy) is the recommended default for most web maps. Use 3–4 decimal places for country and city-level maps where pixel-level precision is not needed. Use 6+ decimal places only for survey-grade applications. Reducing from 8 to 5 decimal places typically saves 20–40% of coordinate data size.

Yes, completely. Our GeoJSON compressor processes everything locally in your browser. Your geographic data is never uploaded to any server, never stored, and never transmitted over the network. This is especially important for sensitive location data, proprietary boundary files, and confidential geographic assets.

Yes. This GeoJSON compressor is 100% free with no signup, no premium tier, no watermarks, and no file size limits. You can compress as many GeoJSON files as you need with no restrictions.

At typical web map zoom levels, reducing from 8 to 5 decimal places is completely imperceptible — the difference is less than 1 meter. At zoom level 15 (street level), 5 decimal places provides sub-meter accuracy which is more than sufficient. Only reduce below 5 decimal places for overview maps where features are rendered at low zoom levels.

Our GeoJSON compressor supports all standard GeoJSON geometry types: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, and GeometryCollection. It also handles FeatureCollection, Feature, and bare geometry objects. All coordinate arrays are processed recursively regardless of nesting depth.

GeoJSON files exported from PostGIS, QGIS, ArcGIS, and other GIS tools include every column from the source table as a property on every feature — even when that column has no value for that feature. This results in many null properties that add JSON overhead without conveying information. Our GeoJSON compressor removes them with one click.

Typical results range from 30% to 80% size reduction depending on the original file. Files with many null properties from database exports often achieve 50–70% reduction. Files with high-precision coordinates (8+ decimal places) achieve 20–40% reduction from precision reduction alone. Combining all options typically achieves the maximum reduction.

Yes — the compressed GeoJSON is fully valid and compatible with all GeoJSON-consuming libraries including Mapbox GL JS, Leaflet, Google Maps, Turf.js, and any other tool that follows the GeoJSON specification (RFC 7946). The compression only changes coordinate precision and removes empty/null properties — the structure and geometry remain valid.