GeoJSON Minifier
Use this free online GeoJSON minifier to reduce file sizes by removing properties and lowering coordinate precision, quickly and easily, without installing any software.
Click the UPLOAD FILES button and select the GeoJSON files you wish to minify. Wait for the processing to finish and download files either individually or grouped together.
All processing happens in your browser—no data is uploaded to any server.
What Is GeoJSON?
GeoJSON is an open standard geographic data format based on JSON (JavaScript Object Notation). It encodes geographic features, geometries, and properties in a simple, human-readable structure widely supported by web mapping libraries like Leaflet, Mapbox, and OpenLayers. GeoJSON files typically contain Points, LineStrings, Polygons, and their multi-part equivalents, along with custom properties describing each feature.
Pros of GeoJSON
- Universal compatibility — Supported by virtually all web mapping tools and GIS software
- Human-readable — Easy to inspect, edit, and debug in any text editor
- Simple structure — Straightforward JSON format with clear feature/geometry/properties organization
- Flexible properties — Attach any custom attributes to features
- Direct browser support — Parse with native JSON.parse(), no special libraries needed
Cons of GeoJSON
- Large file sizes — Can be 5-10x larger than binary formats like Shapefile or GeoPackage
- Excessive precision — Often includes 12-15 decimal places when 4-6 are sufficient
- Inefficient topology — Duplicate coordinates at shared boundaries (unlike TopoJSON)
- No built-in compression — Requires gzip or similar compression for efficient transfer
Why Minify GeoJSON?
GeoJSON files used for web maps are often much larger than they need to be. Two common causes are excessive coordinate precision and unnecessary whitespace. It’s not unusual to see coordinates with 12–15 decimal places; at the Equator, that’s far beyond real-world accuracy. If around 1 metre precision is sufficient, 5 decimal places are typically enough; for roughly 10 metres, 4 decimals will do. Removing those extra digits can substantially reduce file size, as can trimming spaces and line breaks and pruning unneeded properties.
This tool helps you produce smaller, faster-loading GeoJSON by:
- Reducing coordinate precision (with an “Approx grid at the Equator” hint for each decimal setting)
- Keeping only the properties you need (or quickly applying common presets)
- Optionally removing empty arrays/objects and trimming whitespace
- Handling standard GeoJSON and line-delimited GeoJSON (NDJSON/GeoJSON Lines)
- Running entirely in your browser—no uploads
Understanding Coordinate Precision
Using the Earth's equatorial circumference (~40,075 km), a degree is about 111 km. Each decimal place in latitude/longitude reduces the grid size by a factor of 10:
- 0 decimals ≈ 111 km (city-level accuracy)
- 1 decimal ≈ 11.1 km (large neighborhood)
- 2 decimals ≈ 1.11 km (village/small town)
- 3 decimals ≈ 111 m (large field)
- 4 decimals ≈ 11.1 m (parcel of land)
- 5 decimals ≈ 1.11 m (individual trees)
- 6 decimals ≈ 0.11 m (architectural details)
These distances apply globally to latitude. Longitude scales similarly at the Equator but shrinks toward the poles—for example, 5 decimal places give ~0.55 m precision at 60°N (Scotland, southern Alaska). For most web mapping applications, 4-5 decimals provide excellent balance between accuracy and file size.
GeoJSON Lines (NDJSON) Support
This minifier automatically detects and processes newline-delimited GeoJSON (also called NDJSON or GeoJSON Lines), where each line contains a separate GeoJSON Feature. These files are common in streaming data pipelines and geospatial databases. The tool combines them into a standard FeatureCollection, applies minification, and outputs standard GeoJSON for maximum compatibility.
Related Tools
- TopoJSON Minifier — Optimize topology-encoded geographic data
- JSON Minifier — Remove whitespace from standard JSON files
- GeoJSON to SVG — Convert GeoJSON to vector maps
- GeoJSON to PNG — Convert GeoJSON to raster images
- Shapefile to GeoJSON — Convert Shapefiles to GeoJSON format
GeoJSON files used for web maps are often much larger than they need to be. Two common causes are excessive coordinate precision and unnecessary properties. It's not unusual to see coordinates with 12–15 decimal places; at the Equator, that's far beyond real-world accuracy. If around 1 meter precision is sufficient, 5 decimal places are typically enough; for roughly 10 meters, 4 decimals will do. Removing those extra digits can reduce file size by 30-50%, and pruning unused feature properties can save even more.
Smaller GeoJSON files mean faster page loads, reduced bandwidth costs, and smoother map interactions. This tool helps you optimize your geographic data by:
- Coordinate precision reduction — Adjust decimal places with visual "grid at Equator" hints showing real-world impact
- Property filtering — Keep only essential properties, remove unused attributes
- Batch processing — Upload multiple files simultaneously with instant results
- Smart defaults — Automatic minification with 5 decimal precision (≈1.1m at Equator)
- NDJSON support — Handles both standard GeoJSON and GeoJSON Lines (newline-delimited)
- Preview output — View minified results before downloading
- 100% client-side — No server uploads, your data stays private
How to Minify GeoJSON
- Upload files — Drag and drop multiple .geojson files onto the drop zone, or click "Browse Files"
- Review results — Files are instantly minified with default settings (5 decimal precision, all properties kept)
- Adjust options (optional) — Change coordinate precision, select properties to keep/remove, or use quick presets
- Preview — Click "Preview" to inspect the minified JSON output
- Download — Click the download button next to any file to save the optimized version
- Clear — Use "Clear All" to remove all files and start fresh
Batch Processing & Large File Support
This free online tool is optimized for large datasets. On modern browsers it can handle many files—often 100MB+ each—without freezing. Files are processed with smart defaults immediately upon upload, giving you instant feedback. Adjust options to reprocess all files with custom settings, then download individually or preview each result.