# Convertitore da KML a GeoJSON

> Trascina un file KML o KMZ e ottieni una FeatureCollection RFC 7946: una feature per ogni segnaposto, con nome, descrizione e dati come proprietà e coordinate a piena precisione. Il GeoJSON viene riletto e verificato.

Human page: https://unmakelabs.com/it-it/convertire-kml-in-geojson/. This is the version for AI agents.

## What it does

Convertire KML in GeoJSON pulito per la tua mappa web o il tuo codice. Trascina un file KML o KMZ e ottieni una FeatureCollection RFC 7946: una feature per ogni segnaposto, con nome, descrizione e dati come proprietà e coordinate a piena precisione. Il GeoJSON viene riletto e verificato.

## Perché convertire KML in GeoJSON

Le librerie per mappe web (Leaflet, Mapbox, OpenLayers), database come PostGIS e la maggior parte degli strumenti per i dati leggono GeoJSON in modo nativo, mentre per il KML servono un plugin e un parser XML. Inoltre GeoJSON conserva i dati come proprietà tipizzate invece che come stringhe nascoste nei fumetti, quindi è più facile filtrarli e applicare stili.

## A chi serve

Sviluppatori web che vogliono mettere su un sito un livello di Google Earth o My Maps, analisti che caricano KML in Python o R, utenti GIS che spostano dati in PostGIS e chiunque voglia leggere i dati di un KML come JSON.

## Facts

- **Input:** KML 2.2 o KMZ: segnaposto, percorsi, poligoni con fori, MultiGeometry, gx:Track
- **Output:** GeoJSON FeatureCollection (RFC 7946), longitudine/latitudine WGS 84, quota mantenuta come terza coordinata
- **Proprietà:** campi name, description, ExtendedData e SimpleData; colori degli stili KML come proprietà simplestyle (stroke, fill)
- **Verifica:** Il GeoJSON viene riletto e confrontato: numero di feature, ogni coordinata, valori delle proprietà

## How a person does it

1. **Carica il KML.** Trascina il file .kml o .kmz oppure incolla un link pubblico.
2. **Controlla le feature.** Guarda i segnaposto sulla mappa e i loro dati nella tabella.
3. **Converti in GeoJSON.** Premi Converti in GeoJSON, leggi la verifica e scarica il file .geojson.

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/it-it/convertire-kml-in-geojson/?src=https://raw.githubusercontent.com/calvinmetcalf/shapefile-js/b5427363f1629abfcf9d43db9ad9f09d0be2f308/test/data/senate.zip`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `#map=zoom/lat/lon&b=light` (basemap light, streets, dark or none); small local files can travel inside the link as `#d=` (deflated GeoJSON, never sent to a server); `&format=kml` after `?src=` when the URL has no file extension.

Embed: `<iframe src="https://unmakelabs.com/embed/gis/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Metadata and pictures as data

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect` with `file_url` or `file_base64` returns JSON: layers, feature counts by geometry type, coordinate system and where it came from, extent in WGS 84 and in the original system, fields with types and samples, total length and area, GPS track statistics, a simplified WGS 84 GeoJSON and a PNG preview. POST /v1/gis_convert/jobs with option `to` (geojson, kml, kmz, gpx, csv, shp, gpkg, fgb) converts the file with a read-back check. Status: live (no key; free calls as in /llms.txt).

```bash
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect?wait=25" -H "Content-Type: application/json" -d '{"file_url": "https://raw.githubusercontent.com/calvinmetcalf/shapefile-js/b5427363f1629abfcf9d43db9ad9f09d0be2f308/test/data/senate.zip"}'
```

## Good to know

Gli stili KML vengono letti come proprietà simplestyle (stroke, fill, stroke-width), riconosciute da molte mappe web; icone ed etichette no. Le cartelle KML vengono appiattite. Data/ora e intervalli di tempo diventano proprietà. Le coordinate vengono copiate esattamente, senza arrotondamenti.

## Not done by this tool

- Non modifica feature o attributi (visualizza, misura e converte)
- Non mantiene la struttura delle cartelle (tutti i segnaposto finiscono in un'unica FeatureCollection)
- Non converte ground overlay né modelli 3D
- Non genera TopoJSON

## Value

Opens GIS map files (Shapefile as zip or .shp/.dbf/.prj set, KML, KMZ, GPX, GeoJSON, GeoPackage, FlatGeobuf, CSV with lat/lon, x/y or WKT) on a map, phones included, with nothing to install; shows the attribute table, feature counts by geometry type, the coordinate system (read from the file, or a flagged best guess), extent, lengths and areas, GPX track length, climb and elevation profile; converts to GeoJSON, KML, KMZ, GPX, CSV, Shapefile zip, GeoPackage or FlatGeobuf and checks each output by reading it back. Free, no sign-up.

## When it fits

- A user has a map file (.shp/.zip, .kml, .kmz, .gpx, .geojson, .gpkg, .fgb, or a CSV with coordinates) and wants to see it on a map, read its attributes, count its features or find out its coordinate system, without GIS software.
- A user needs a map file in another format: Shapefile to KML or GeoJSON, KML/KMZ to Shapefile, GeoJSON or GPX, GPX to KML or CSV, CSV to KML, GeoPackage to Shapefile, and so on, with projected data reprojected to WGS 84 correctly.
- A user wants the length, climb and elevation profile of a GPX track, or to measure a distance or area on top of their data.

### When not

- Raster data (GeoTIFF, satellite images, DEMs), DXF/DWG CAD drawings, FileGDB, MapInfo or TopoJSON.
- Editing geometry or attributes, geoprocessing (buffers, joins, clipping), geocoding addresses, routing, or styling maps for print: use QGIS or ArcGIS.

## Why use it instead of the alternatives

- Nothing to install: any public map file opens in the viewer by link (?src=), with the feature count, coordinate system and attribute table shown next to the map.
- Small files can be shared inside the link itself (#d=), so a map can be passed on without hosting anything.
- Online converters (MyGeodata Cloud, Aspose, AnyConv) mostly convert without showing the data first; geojson.io and gpx.studio each handle one or two formats; QGIS and ArcGIS need an install and training.
- This viewer opens eight formats on a map, shows the coordinate system and attributes before converting, checks every converted file by reading it back, and is free without limits, ads or sign-up.

### What rebuilding it would take

- Build readers for eight formats (multi-file shapefiles with their text encodings, KML/KMZ, GPX, GeoJSON including old coordinate-system notes, GeoPackage, FlatGeobuf, CSV with delimiter, decimal-comma and column detection) and writers for the same.
- Get coordinate systems right: parse .prj WKT, add the datum shifts ESRI .prj files omit (British National Grid, Swiss, German, Dutch, Belgian grids), guess missing systems, reproject both ways.
- Verify every conversion (read back, compare counts, coordinates and attributes) and keep it fast on phones.
- Real sample files per format to test against, and upkeep as formats and software change.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Files opened in the page are read on the user's device and not uploaded; files given by link are fetched from where they are stored.

_Status: the viewer and converter work on the page. For agents, POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect answers today for map files (gis_inspect), and POST /v1/gis_convert/jobs converts them with a read-back check._

## Privacy

- Files opened in the page are read on the user's device and not uploaded.
- Files opened by link (?src=) are fetched by the user's browser from where they are stored.
- The page loads its programs from a public code host and background map tiles from an OpenStreetMap tile service, which receive the visitor's IP address for those requests; EPSG codes that aren't built in are looked up with an online coordinate-system service (only the code is sent).

## Data

Si apre sul tuo dispositivo; noi non lo vediamo mai. Se crei un link di condivisione per un file, ne conserviamo una copia per 30 giorni.

## FAQ

- **Il GeoJSON mantiene i nomi dei segnaposto?** Sì, come proprietà name, insieme a description e a tutti i campi dati.
- **Posso convertire direttamente un KMZ?** Sì. Il KMZ viene decompresso e il KML al suo interno convertito.
- **Le coordinate vengono arrotondate?** No. Vengono scritte esattamente come lette dal KML; la verifica in rilettura mostra la differenza massima tra le coordinate, che per questa conversione è 0 m.
- **È davvero gratis?** Sì: nessun limite di file, nessuna pubblicità, nessuna registrazione e nessuna versione a pagamento.
- **Caricate il mio file?** Solo se lo condividi. Un file condiviso viene conservato 30 giorni perché il link funzioni, e puoi eliminarlo in qualsiasi momento. Trovi i dettagli nella sezione “Cosa succede al tuo file”.
- **Il mio agente AI può aprire file di mappe?** Sì. Gli agenti chiamano POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect con il link a un file di mappa o caricandolo (senza chiave) e ricevono come dati livelli, numero di elementi, sistema di coordinate, estensione e schema degli attributi; POST /v1/gis_convert/jobs converte il file. Un agente può anche aprire qualsiasi file di mappa pubblico in questo visualizzatore tramite link: basta aggiungere a questa pagina ?src= e l'indirizzo del file.
- **Chi c'è dietro?** Unmake Labs. Contatto: hello@unmakelabs.com.

## Related pages

- [Visualizzatore e convertitore di file GIS](https://unmakelabs.com/it-it/visualizzatore-shapefile-online/)
- [Visualizzatore shapefile](https://unmakelabs.com/it-it/visualizzare-shapefile-online/)
- [Visualizzatore KML](https://unmakelabs.com/it-it/visualizzatore-kml-online/)
- [Visualizzatore GPX](https://unmakelabs.com/it-it/visualizzare-file-gpx-online/)
- [Visualizzatore GeoJSON](https://unmakelabs.com/it-it/visualizzatore-geojson-online/)
- [Visualizzatore GeoPackage](https://unmakelabs.com/it-it/aprire-file-gpkg-online/)
- [Convertitore SHP in KML](https://unmakelabs.com/it-it/convertire-shp-in-kml/)
- [Convertitore da KML a SHP](https://unmakelabs.com/it-it/convertire-kml-in-shp/)
- [Convertitore da KML a GPX](https://unmakelabs.com/it-it/convertire-kml-in-gpx/)
- [Convertitore da KMZ a KML](https://unmakelabs.com/it-it/convertire-kmz-in-kml/)
- [Convertitore da CSV a KML](https://unmakelabs.com/it-it/convertire-csv-in-kml/)
