KML Validator
Checks whether GDAL can read a KML file and lists its folders as layers.
Upload a .kml file. The GDAL worker reads it with ogrinfo: every folder becomes a layer with number of features, bounding box and fields. XML errors such as unclosed tags are shown with GDAL's message.
Drag file here to validate, or select file
Supported: .kml • Max 50 MB
What We Validate
- Whether GDAL (ogrinfo) can open the file with the LIBKML driver. If not, GDAL's error messages are shown.
- For every layer: name, geometry type, number of features, coordinate system (EPSG code if GDAL can identify it), bounding box and field list.
- Warnings that GDAL prints while reading the file.
Tested Examples
- KML with a document placemark and 2 folders → valid, 3 layers (Testkarte 1, Haltestellen 2, Wege 1), EPSG:4326
- Placemark without closing tag → invalid: "mismatched tag on line 1 at offset 134"
Examples tested on 24 Sep 2026 with the worker code of this site and GDAL 3.10.3 (conda-forge build on Windows); the live worker was not part of these tests.
Frequently Asked Questions
Are styles checked?
No. The validator reports what GDAL reads as geodata (placemarks, their geometries and fields). Colours, icons and other styles are not checked.
Can I validate a KMZ?
No, only .kml. A KMZ is a ZIP archive; unpack it and validate the .kml inside.
What does the validator not check?
It does not test geometries for validity (self-intersections, ring orientation or closure), does not validate against XML or JSON schemas and does not look at attribute values. It reports what GDAL reads from the file.
What happens to my file?
Your browser uploads it directly to the GDAL worker on Fly.io (region Frankfurt). The worker checks it in a temporary folder and deletes the folder as soon as the check is done. Upload limit: 50 MB.