Beginner guide to transforming KMZ to Shapefiles
One common conversion task involves transforming Keyhole Markup Language Zipped (KMZ) files into Shapefiles (SHP). KMZ files, commonly used in Google Earth, are compressed files containing placemarks, images, polygons, 3D models, and more. On the other hand, Shapefiles, a popular format in desktop GIS software like ArcGIS and QGIS, are more simplistic, and primarily used to store the location, shape, and attributes of geographic features.
Quickmaptools.com is by far the easiest way to convert between KMZ and Shapefiles online. But if you are looking for desktop options continue reading!
While this conversion might seem straightforward, it’s not without its challenges. From preserving complex data and attribute information to handling multiple layers and ensuring software compatibility, there’s a lot to consider.
In this blog post, we’ll guide you through the process of converting KMZ files to Shapefiles using different tools, including ArcGIS Pro and GDAL. We’ll also delve into the crucial considerations to keep in mind during the conversion process to ensure data integrity and usability. Whether your KMZ file contains simple point data, complex polygons, lines, or even raster images, we’ve got you covered.
Converting KMZ to KML
KMZ files are essentially zipped KML files. You can convert KMZ to KML by simply unzipping the KMZ file. This can be done with any standard unzipping tool.
Convert KML to SHP in QGIS
New to QGIS? listen to this podcast episode!
Here’s how you can do it in QGIS:
- Open QGIS and click on
Layer>Add Layer>Add Vector Layer. - In the
Sourcepanel, click on the...button next toVector Dataset(s). - Navigate to your KML file, select it, and click
Open. - Click
Addin theData Source Managerwindow. Your KML file will be added as a layer to QGIS. - To convert the KML layer to SHP, click on
Layer>Save As.... - In the
Save Vector Layer as...window, selectESRI Shapefilefrom theFormatdropdown menu. - Click on the
...button next toSave as, navigate to where you want to save your SHP file, enter a name for the file, and clickSave. - Click
OKin theSave Vector Layer as...window. Your KML file will be saved as a SHP file.
Converting KMZ to Shapefile in ArcGIS Pro
Sure, here’s a step-by-step guide on how to convert KMZ to Shapefile using ArcGIS Pro:
- Open ArcGIS Pro: Start by launching the ArcGIS Pro application on your computer.
- Create or Open a Project: You can either create a new project or open an existing one where you want to work with the KMZ file.
- Add the KMZ Data:
- Go to the
Inserttab on the top menu, click onAdd Datadropdown and selectData. - In the
Add Datawindow, navigate to the location of your KMZ file, select it, and clickOK. The KMZ file will be added to your project.
- Convert KMZ to Layer:
- In the
Analysistab, click onTools. - In the
Geoprocessingpane that opens, search forKML To Layertool. - In the
KML To Layertool, set theInput KML Fileto your KMZ file and specify theOutput Locationwhere you want the output layer to be saved. ClickRun.
- Convert Layer to Shapefile:
- In the
Geoprocessingpane, search forFeature To Pointtool. - In the
Feature To Pointtool, set theInput Featuresto the layer you just created and specify theOutput Feature Classas your desired output SHP file location. ClickRun.
- Check the Result: Navigate to the location where you saved your output SHP file. You should see your SHP file there. You can also add it to your ArcGIS Pro project to view it.
If your KMZ file contains polygons, lines, or raster data
You can still convert it to a Shapefile or a raster format using ArcGIS Pro. The process is similar to the one described above, but you’ll use different tools for the conversion. Here’s how:
- Open ArcGIS Pro: Start by launching the ArcGIS Pro application on your computer.
- Create or Open a Project: You can either create a new project or open an existing one where you want to work with the KMZ file.
- Add the KMZ Data:
- Go to the
Inserttab on the top menu, click onAdd Datadropdown and selectData. - In the
Add Datawindow, navigate to the location of your KMZ file, select it, and clickOK. The KMZ file will be added to your project.
- Convert KMZ to Layer:
- In the
Analysistab, click onTools. - In the
Geoprocessingpane that opens, search forKML To Layertool. - In the
KML To Layertool, set theInput KML Fileto your KMZ file and specify theOutput Locationwhere you want the output layer to be saved. ClickRun.
- Convert Layer to Shapefile or Raster:
- If your KMZ file contains polygons or lines, you can use the
Feature To PolygonorFeature To Linetools respectively, instead of theFeature To Pointtool. The process is the same: set theInput Featuresto the layer you just created and specify theOutput Feature Classas your desired output SHP file location. ClickRun. - If your KMZ file contains raster data, you can use the
Copy Rastertool. Set theInput Rasterto the raster layer you just created and specify theOutput Raster Datasetas your desired output raster file location. ClickRun.
- Check the Result: Navigate to the location where you saved your output SHP or raster file. You should see your file there. You can also add it to your ArcGIS Pro project to view it.
Convert KMZ to Shapefile using GDAL
Not sure what GDAL is? Listen to this podcast episode!
Here’s a step-by-step guide on how to convert KMZ to Shapefile using GDAL:
- Install GDAL: If you haven’t installed GDAL, you can download it from the official GDAL website. Follow the instructions provided for your specific operating system.
- Convert KMZ to KML: KMZ files are zipped KML files. You can convert KMZ to KML by simply unzipping the KMZ file. This can be done with any standard unzipping tool.
- Open Command Line or Terminal: Open your command line interface (CMD on Windows, Terminal on MacOS or Linux).
- Navigate to the Directory: Use the
cdcommand to navigate to the directory where your KML file is located. - Convert KML to Shapefile: Use the
ogr2ogrcommand to convert the KML file to a Shapefile. The basic syntax is:ogr2ogr -f "ESRI Shapefile" output.shp input.kmlReplaceoutput.shpwith the name you want for your output Shapefile, and replaceinput.kmlwith the name of your input KML file. PressEnterto run the command. - Check the Result: Navigate to the location where you saved your output SHP file. You should see your SHP file there.
If the KMZ file contains a raster image
If the KMZ file contains a raster image, you can use GDAL to extract the raster image and convert it to a more common raster format like GeoTIFF. Here’s how:
- Install GDAL: If you haven’t installed GDAL, you can download it from the official GDAL website. Follow the instructions provided for your specific operating system.
- Unzip the KMZ file: KMZ files are zipped KML files. You can convert KMZ to KML by simply unzipping the KMZ file. This can be done with any standard unzipping tool. When you unzip the KMZ file, you should see a KML file and a directory of assets which may contain your raster image(s).
- Open Command Line or Terminal: Open your command line interface (CMD on Windows, Terminal on MacOS or Linux).
- Navigate to the Directory: Use the
cdcommand to navigate to the directory where your unzipped KMZ (now KML and associated files) are located. - Identify the Raster File: Look in the unzipped files for the raster image. It could be in a variety of formats, including .jpg, .tif, .png, etc.
- Convert the Raster File to GeoTIFF: Use the
gdal_translatecommand to convert the raster file to GeoTIFF. The basic syntax is:gdal_translate -of GTiff input.jpg output.tifReplaceinput.jpgwith the name of your input raster file andoutput.tifwith the name you want for your output GeoTIFF file. PressEnterto run the command. - Check the Result: Navigate to the location where you saved your output GeoTIFF file. You should see your file there.
Things you should know about converting KMZ to Shapefiles
When converting between KMZ and Shapefiles, there are several important considerations to keep in mind:
- Data Loss: Converting between different file formats can sometimes result in data loss, especially when going from a more complex format (like KMZ) to a simpler one (like Shapefile). For example, KMZ files can contain raster images, 3D models, and other complex data types that cannot be represented in a Shapefile.
- Attribute Information: KMZ files can contain attribute information for each feature. When converting to Shapefile, make sure that this attribute information is preserved. Some conversion tools might not carry over this information by default.
- Coordinate Systems: KMZ files use the WGS84 coordinate system. When converting to Shapefile, you might need to reproject the data to match the coordinate system of your other data. Be aware of this potential step in your workflow.
- Multiple Layers: KMZ files can contain multiple layers, but a Shapefile represents a single layer. If your KMZ file contains multiple layers, you will need to create a separate Shapefile for each layer.
- File Size: Shapefiles can be larger in size than KMZ files. If storage or sharing of the files is a concern, this could be a factor to consider.
- Software Compatibility: Not all GIS software handles KMZ and Shapefiles in the same way. Some software might have issues with certain features of KMZ files, or might not support Shapefiles fully. Always check the compatibility of your software with the file formats you are using.
- Privacy and Security: KMZ files can be easily viewed in Google Earth and shared. If your data is sensitive, consider this when sharing or converting KMZ files.
- Zipped Files: KMZ files are zipped KML files. If you’re having trouble converting a KMZ file, try unzipping it first and then converting the KML file.
Remember, the best method for conversion depends on your specific needs, including the complexity of your data, the software you have access to, and your comfort level with different types of tools.



