MapKmlTools Logo
MapKmlTools

Compress KML, KMZ & GeoJSON Files Online Free

Free online KML, KMZ and GeoJSON file compressor. Reduce file size up to 95% with coordinate rounding, vertex simplification, style stripping, and ZIP compression. No upload required.
🗜️

Drop files here or click to upload

Supports .kml, .kmz, .geojson, .zip — multiple files OK

4.6(159 ratings)
Was this helpful?

What is KML File Compressor?

KML File Compressor is a privacy-first, browser-based tool that reduces the file size of KML, KMZ, GeoJSON, and ZIP archives containing geospatial data — with zero server uploads.

Unlike a simple KML-to-KMZ zip converter, this tool applies a multi-stage compression pipeline: it strips unnecessary XML whitespace, removes unused styles and descriptions, rounds coordinate decimal precision, and applies Turf.js-powered vertex simplification. Each stage is independently controlled by the compression level slider.

The result is typically 40–95% smaller files that load faster in Google Earth, Google Maps, ArcGIS Online, and QGIS — without visually distorting your map.

When Should You Use This Tool?

  • Your KML file exceeds Google My Maps' 5MB upload limit.
  • Google Earth lags or crashes when loading a complex boundary file.
  • You are sending a KML attachment by email and need to reduce its size.
  • You have a GeoJSON with millions of vertices from a national boundaries dataset.
  • You need to embed geographic data in a mobile app and every kilobyte matters.
  • You have a ZIP of 20 KML survey files that all need size-optimizing at once.

How to Use KML File Compressor

  1. Upload your KML, KMZ, GeoJSON, or ZIP file (multiple files supported).
  2. Move the Compression Level slider: Lossless (0%) strips whitespace only; Maximum (100%) removes styles, descriptions, rounds coordinates to 3 decimals, and simplifies vertices.
  3. Review the applied settings summary (coordinate decimals, simplification tolerance, and which metadata is stripped).
  4. Click "Compress Files" and wait a moment while the browser processes your data.
  5. Review the size reduction stats — original vs compressed vs reduction percentage.
  6. Click "Download" to save the compressed file in the same format as your input (or ZIP for multiple files).

Real-World Use Cases

🗺️

GIS Professionals

Compress high-resolution boundary files (national/state borders, cadastral layers) before uploading to ArcGIS Online, Mapbox, or Leaflet web maps where file size affects load time and tile budget.

📱

Mobile App Developers

Bundle compressed GeoJSON files inside Android or iOS apps. Every kilobyte saved reduces app download size. Use Maximum compression for background overlay layers where pixel-perfect accuracy isn't critical.

🚁

Drone & Survey Teams

Survey outputs often produce dense KML tracks with a vertex every 1 metre. Use Balanced compression to reduce these to a fraction of the size while keeping the shape accurate for area calculations and reporting.

📧

Email & File Sharing

Email clients typically limit attachments to 10–25MB. Compress a 20MB KML to under 2MB in seconds without installing any software, then attach it directly to your email as a KMZ.

Supported Formats & Limits

  • Input Formats: .kml, .kmz, .geojson, .json, .zip (containing any of the above)
  • Multiple Files: Upload multiple files at once — output is a single .zip with all files compressed individually
  • Output Formats: Same format as input for single files; .zip for multiple files; .kmz for single .kmz input
  • Compression Stages: Whitespace removal → ExtendedData strip → Style strip → Coord precision rounding → Turf.js vertex simplification → ZIP/DEFLATE wrapping
  • Privacy: 100% browser-based. Your files never leave your device — all compression runs in JavaScript using JSZip, Turf.js, and fast-xml-parser.
  • File Size Limits: Files up to 100MB are supported. Very large files (50MB+) may take 5–10 seconds on lower-end devices.

Frequently Asked Questions

Q:Is the KML File Compressor free to use?

Yes, compressing KML, KMZ and GeoJSON files is 100% free with no account required.

Q:Does it upload my file to a server?

No. All compression runs entirely in your browser using JavaScript. Your files never leave your device.

Q:What file formats does the KML Compressor support?

It supports .kml, .kmz, .geojson, .json and .zip files containing any of the above. You can upload multiple files at once.

Q:How much can it compress a KML file?

Typical results are 40–95% size reduction depending on the compression level. Whitespace removal alone gives 15–30%, while maximum mode with simplification can reach 95% on dense geometry files.

Q:Will compressing my KML make the shapes look different on the map?

At Lossless and Balanced settings, shapes look identical — only invisible metadata and excess decimal places are removed. At Maximum setting, the vertex simplification may slightly smooth very tight curves or intricate polygons. For national-scale boundaries this is imperceptible; for 1:1000 survey data use Balanced or lower.

Q:What is the difference between this and the KML Simplifier tool?

The KML Simplifier only does vertex reduction (Douglas-Peucker algorithm). This Compressor applies a full 8-stage pipeline: whitespace removal, style stripping, description removal, coordinate precision rounding, vertex simplification, and final ZIP/DEFLATE compression. The result is typically 3-5× smaller than the Simplifier alone.

Q:Can I compress a ZIP file containing multiple KMLs?

Yes. Upload the ZIP, and the tool extracts each KML individually, compresses it with your chosen settings, then re-zips all the results into a single download ZIP. Each file is processed independently so you get the maximum benefit for each.

Q:Is my data uploaded to your servers?

No. All compression runs entirely in your web browser using JavaScript (JSZip, Turf.js). Your KML, KMZ, and GeoJSON files never leave your device. There are no server-side calls for the compression step.