# Konwerter KML na GeoJSON

> Upuść plik KML lub KMZ i otrzymaj FeatureCollection zgodną z RFC 7946: jeden obiekt na każdy placemark, jego nazwa, opis i dane jako properties, współrzędne z pełną dokładnością. Plik GeoJSON jest ponownie wczytywany i sprawdzany.

Human page: https://unmakelabs.com/pl-pl/kml-na-geojson/. This is the version for AI agents.

## What it does

Zamień KML na czysty GeoJSON do mapy internetowej lub kodu. Upuść plik KML lub KMZ i otrzymaj FeatureCollection zgodną z RFC 7946: jeden obiekt na każdy placemark, jego nazwa, opis i dane jako properties, współrzędne z pełną dokładnością. Plik GeoJSON jest ponownie wczytywany i sprawdzany.

## Po co konwertować KML na GeoJSON

Biblioteki map internetowych (Leaflet, Mapbox, OpenLayers), bazy danych takie jak PostGIS i większość narzędzi do danych obsługują GeoJSON bezpośrednio, a KML wymaga wtyczki i parsera XML. GeoJSON przechowuje też dane jako typowane properties zamiast tekstu ukrytego w dymkach, więc łatwiej je filtrować i stylować.

## Dla kogo

Dla programistów stron, którzy umieszczają warstwę z Google Earth lub Moich map na stronie, analityków danych wczytujących KML do Pythona lub R, użytkowników GIS przenoszących dane do PostGIS i każdego, kto chce odczytać dane z pliku KML jako JSON.

## Facts

- **Wejście:** KML 2.2 lub KMZ: placemarki, ścieżki, wielokąty z otworami, MultiGeometry, gx:Track
- **Wyjście:** GeoJSON FeatureCollection (RFC 7946), długość/szerokość geograficzna w WGS 84, wysokość zachowana jako trzecia współrzędna
- **Atrybuty:** name, description, pola ExtendedData i SimpleData; kolory stylów KML jako właściwości simplestyle (stroke, fill)
- **Kontrola:** Plik GeoJSON jest ponownie wczytywany i porównywany: liczba obiektów, każda współrzędna, wartości atrybutów

## How a person does it

1. **Upuść plik KML.** Upuść plik .kml lub .kmz albo wklej publiczny link.
2. **Sprawdź obiekty.** Zobacz placemarki na mapie i ich dane w tabeli.
3. **Konwertuj na GeoJSON.** Kliknij „Konwertuj na GeoJSON”, przeczytaj wynik kontroli i pobierz plik .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/pl-pl/kml-na-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

Style KML są odczytywane jako właściwości simplestyle (stroke, fill, stroke-width), które rozumie wiele map internetowych; ikony i etykiety nie są przenoszone. Foldery KML są spłaszczane. Znaczniki i przedziały czasu stają się atrybutami. Współrzędne są kopiowane dokładnie, bez zaokrąglania.

## Not done by this tool

- Nie edytuje obiektów ani atrybutów (służy do podglądu, pomiarów i konwersji)
- Nie zachowuje struktury folderów (wszystkie placemarki trafiają do jednej FeatureCollection)
- Nie konwertuje nakładek obrazu (ground overlay) ani modeli 3D
- Nie zapisuje do 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

Plik otwiera się na Twoim urządzeniu, my go nie widzimy. Jeśli utworzysz link do udostępnienia pliku, przechowujemy tę kopię przez 30 dni.

## FAQ

- **Czy GeoJSON zachowuje nazwy placemarków?** Tak, jako atrybut name, razem z opisem i każdym polem danych.
- **Czy mogę przekonwertować KMZ bezpośrednio?** Tak. Plik KMZ jest rozpakowywany, a zawarty w nim KML konwertowany.
- **Czy współrzędne są zaokrąglane?** Nie. Są zapisywane dokładnie tak, jak odczytano je z pliku KML; kontrola po ponownym wczytaniu pokazuje największą różnicę współrzędnych, która dla tej konwersji wynosi 0 m.
- **Czy to naprawdę za darmo?** Tak: bez limitu plików, bez reklam, bez rejestracji i bez płatnej wersji premium.
- **Czy przesyłacie mój plik na serwer?** Tylko jeśli go udostępnisz. Udostępniony plik przechowujemy przez 30 dni, żeby link działał, i możesz go w każdej chwili usunąć. Szczegóły znajdziesz w sekcji „Co dzieje się z Twoim plikiem”.
- **Czy mój agent AI może otwierać pliki map?** Tak. Agenty wywołują POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect z linkiem do pliku mapy lub przesłanym plikiem (bez klucza) i otrzymują jako dane warstwy, liczbę obiektów, układ współrzędnych, zasięg i schemat atrybutów; POST /v1/gis_convert/jobs konwertuje plik. Agent może też otworzyć dowolny publiczny plik mapy w tej przeglądarce za pomocą linku: wystarczy dodać do adresu tej strony ?src= i adres pliku.
- **Kto to tworzy?** Unmake Labs. Kontakt: hello@unmakelabs.com.

## Related pages

- [Przeglądarka i konwerter plików GIS](https://unmakelabs.com/pl-pl/jak-otworzyc-plik-shp/)
- [Przeglądarka plików SHP](https://unmakelabs.com/pl-pl/otworz-plik-shp-online/)
- [Przeglądarka KML](https://unmakelabs.com/pl-pl/jak-otworzyc-plik-kmz/)
- [Przeglądarka GPX](https://unmakelabs.com/pl-pl/przegladarka-gpx-online/)
- [Przeglądarka GeoJSON](https://unmakelabs.com/pl-pl/przegladarka-geojson-online/)
- [Przeglądarka GeoPackage](https://unmakelabs.com/pl-pl/przegladarka-geopackage-online/)
- [Konwerter SHP do KML](https://unmakelabs.com/pl-pl/shp-do-kml/)
- [Konwerter KML do SHP](https://unmakelabs.com/pl-pl/kml-do-shp/)
- [Konwerter KML na GPX](https://unmakelabs.com/pl-pl/konwerter-kml-na-gpx/)
- [Konwerter KMZ na KML](https://unmakelabs.com/pl-pl/kmz-na-kml/)
- [Konwerter CSV do KML](https://unmakelabs.com/pl-pl/konwerter-csv-do-kml/)
