Skip to content
GaleriGIS

DXF to KML converter

Put a CAD drawing saved as DXF on Google Earth. The file is read in your browser and is not uploaded to our server.

  • Reads ASCII DXF saved from AutoCAD or other CAD software
  • Free for drawings already in latitude/longitude
  • Layer names and text labels are kept on the placemarks
  • 3 free files, then unlimited with GaleriGIS Toolbox
Input: DXF (ASCII)

Drop a .dxf file

or click to choose a file, up to 3 MB

Drawings in UTM, State Plane or another projected grid are not converted on this free page. They need GaleriGIS Toolbox.

How to convert DXF to KML

  1. In your CAD software, save the drawing as DXF. Choose the ASCII (text) DXF option, not binary.
  2. Drop the .dxf file into the box above. It is read in your browser.
  3. If the coordinates are latitude and longitude, a .kml file downloads.
  4. Open the .kml in Google Earth on desktop, web or mobile.

Have a DWG instead of a DXF? Use the DWG to KML converter, which reads the DWG directly.

What the KML contains

Each CAD entity becomes one placemark. The layer name is written to the placemark description, and the text of a TEXT or MTEXT entity becomes the placemark name, so labels stay readable in Google Earth.

DXF entityIn the KML
LWPOLYLINE, POLYLINE (closed)Polygon
LWPOLYLINE, POLYLINE (open), LINEPath
CIRCLEPolygon with 48 sides
ARCPath made of short straight segments
SPLINEPath through the fit points, or the control points when there are no fit points
POINTPoint
TEXT, MTEXTPoint at the text position, named with the text
HATCHPolygon from each boundary made of straight edges
INSERT (block reference)The entities inside the block, placed with the insert's position, scale and rotation

Other entity types, such as DIMENSION and ELLIPSE, are skipped. After the conversion the page lists what was skipped and how many.

What changes during conversion

  • Curved polyline segments become straight. A polyline arc (bulge) is drawn as a straight line between its two vertices.
  • Elevation is dropped. Only X and Y are used, so the shapes lie on the ground in Google Earth.
  • Colours, line types and line weights are not carried over. Google Earth draws the placemarks in its default style.
  • Holes in a hatch become separate polygons. Each hatch boundary is written as its own polygon.
  • Blocks are exploded. The KML has the shapes from inside each block, with the block name kept in the placemark data. Blocks nested more than four levels deep are skipped.

Check the coordinates before you convert

Google Earth works in latitude and longitude, in degrees. This free page converts a DXF only when its X values are longitudes and its Y values are latitudes, in decimal degrees. It does not transform coordinates.

A DXF is a plain text file, so you can check it yourself. Open it in a text editor and search for $EXTMIN and $EXTMAX. The numbers after the codes 10 and 20 are the lowest and highest X and Y in the drawing.

  • X between -180 and 180, Y between -90 and 90: likely latitude/longitude. The file converts here.
  • Values in the hundreds of thousands or millions: a projected grid in meters or feet, such as UTM or US State Plane. The page stops and explains instead of writing a KML that lands in the wrong place. GaleriGIS Toolbox converts these once you pick the UTM zone or enter the EPSG code.
  • Small values starting near 0,0: local drawing coordinates with no position on the Earth. The drawing has to be georeferenced in CAD or GIS software first.

To avoid placing a drawing in the wrong place, the page also treats a file as local drawing coordinates when everything lies within 15 units of 0,0 or when it spans more than 20 degrees.

Common problems

"This is a binary DXF"

The converter reads ASCII DXF only. Open the drawing in your CAD software, choose Save As and pick the ASCII DXF option.

"This drawing uses projected coordinates"

The numbers in the file are meters or feet on a grid, not degrees. Ask whoever made the drawing which coordinate system it uses, or see how to open an AutoCAD drawing in Google Earth for ways to find out. If you only need the zone number for a place, try the UTM zone detector.

Nothing shows up in Google Earth

Check the list of skipped entities under the download message. A drawing made only of dimensions or ellipses has nothing this tool can convert.

The file is too large

The free page handles files up to 3 MB. Removing layers you do not need and saving again often makes a DXF much smaller. Larger files need GaleriGIS Toolbox.

GaleriGIS Toolbox

$15 per month

  • No conversion limit on every GaleriGIS online converter
  • Several files at once, and larger files
  • DWG and DXF in any UTM zone or EPSG code, KML/KMZ, Shapefile, GeoJSON, Excel and coordinates
  • Files stay in your browser. Billed monthly, cancel any time

Payments are processed by Creem, our merchant of record. See our refund policy and terms.

Frequently asked questions

Is my drawing uploaded?

No. The DXF is read and converted inside your browser. Only the converter code is downloaded from our server.

How many files are free?

Three. After the third file the free quota fills up again over the next one to three days. GaleriGIS Toolbox has no limit.

Can I get a Shapefile instead of KML?

Yes. Use the DXF to SHP converter if the drawing is going into QGIS or ArcGIS instead of Google Earth.

Can I check the result without Google Earth?

Yes. Open the downloaded file in the KML viewer.

Does GaleriGIS Pro open DXF files?

No. GaleriGIS Pro does not open DXF or DWG files. It opens the KML from this page, so you can put the converted drawing on satellite imagery and print a map layout in GaleriGIS Pro, our Windows app.

More GaleriGIS tools