DXF to KML
QR codeUse this when you already have a DXF and need KML: the plain-text place file that Google Earth opens and many web mapping tools accept as input.
DXF and KML explained
DXF
CAD's interchange file, which most drawing programs can export. Again just coordinate numbers, with no geographic position attached.
KML
A text place file that Google Earth and many map apps can read. Same content as a KMZ, just not compressed.
When to use DXF to KML
- You have a DXF from a survey or a master plan and want to see it over the satellite image before a meeting.
- The mapping tool you use takes KML only and does not read CAD.
- You want to keep editing in Google Earth Pro: changing icons, adding a description to each folder.
- A quick sanity check on a DXF from someone else: do its coordinates make sense on the ground?
What carries over and what changes
| Aspect | In the KML result |
|---|---|
| Layers | Every CAD layer becomes a folder in the Places tree under the layer's own name, so each group can be toggled by itself. |
| Geometry | Lines and polygons. Hatches, solids and 3D faces turn into filled areas, and hatches keep the holes inside them. A closed polyline gives an outline only, not a filled shape. |
| Curves | Arcs, circles and splines are cut into short straight pieces, off by at most 0.05 drawing units, which is 5 cm for a drawing in metres. |
| Text and blocks | Blocks, dimensions, leaders and mlines are exploded into the strokes inside them. TEXT and MTEXT do not make it into the KML or KMZ. |
| Attributes | No CAD attributes come along. The layer name serves as both the folder name and the Placemark name. |
| Colour and line style | Object colours are worked out the way AutoCAD does it (by layer, by block, or a true colour). Every line is solid and 1 px; filled areas reuse the colour at 40% opacity. Dashes and line weights are lost. |
| Elevation | Two-dimensional only: no Z is written and the shapes hug Google Earth's ground. |
| Coordinate system | Output is always WGS84 (longitude, latitude). The system you pick is the one your drawing uses, needed only to convert it to WGS84. Anything outside that system's valid area is left out. |
| Details | Each folder splits its Placemarks by colour, up to 2,000 shapes per Placemark; coordinates are rounded to 7 decimal places of a degree, about a centimetre. |
My drawing is offset on Google Earth, what to do?
- A CAD file records numbers only, so the converter cannot guess which system they belong to. It uses the system you state when uploading and does not read one from the file.
- Pick the one the drawing was made in: VN2000 by province or city, or type a central meridian such as 105.75; WGS84 if the numbers already are longitude and latitude; or enter an EPSG code.
- If the drawing slips away from where it should be in Google Earth, the quickest fix is to choose another province or meridian and convert again. A drawing that falls completely outside the chosen system gives an error message rather than an empty file.
- A drawing made on a site-local grid (origin at 0,0) has no correct system at all; you need to know where that origin is in the real world.
Guide: coordinate systems in CAD drawings · Guide: VN2000 drawings to KML
What's in the download
- One UTF-8 .kml file named <drawing name>_DWGtoKMZ_KML.kml.
- The document name inside follows your drawing name, and its description notes where it was converted.
- Once the job ends, the page tells you how many points, lines and polygons it found, which layers there were and the area the drawing covers.
- If you uploaded a ZIP, all the results come back packed in one ZIP.
Security and retention
- The file travels to our server over HTTPS and is processed there; the drawing and the results of a finished job delete themselves after 7 days.
- The download address is a long random string and needs no login. Anyone holding it can download for 7 days, so do not paste it in public when the content is sensitive.
- If a job fails unexpectedly the file is kept so we can find the cause and run it again.
- One IP address runs one job at a time.
- Email is optional; if you give one it is only used to send the download address and to warn you when processing fails.
- Limit of 100 MB per upload; a ZIP of several drawings holds up to 20 files and 300 MB unpacked.
FAQ
Does the KML from a DXF keep the drawing's colours?
Yes. Each object's colour follows CAD's colour rules (by layer, by block or its own). Lines are always solid and thin, and filled areas share the colour and are slightly see-through.
Why are some DXF shapes missing?
Shapes outside the valid area of the coordinate system you chose are skipped. If everything is outside, the page shows an error. Check the coordinate system.
Does text in the DXF reach the KML?
No. TEXT and MTEXT are dropped; blocks and dimensions are exploded into strokes.
Can I upload several DXFs at once?
Yes, inside a ZIP of up to 20 drawings. Each drawing gives its own KML.