This free online converter will translate an AutoCAD file (in DXF or DWG format) to a shapefile or KML format. Choose the output format you desire and select your input file, then press Convert File.
This converter is based on open source components, and source code is available via the IBM developerWorks article on this topic. (The bulk converter below is based on different tools.)
If you find this tool useful, please consider supporting it by buying a license to the desktop converter for Windows and Mac below or making a donation.
If the simple tool above is insufficient for your needs, consider the Bulk DXF to Shapefile Converter. This tool will allow you to convert one or more AutoCAD DXF files into shapefiles in one pass. Note that this converter does not support DWG, only DXF. Each individual DXF file is converted into four files: one for each geometry type, and one for text. For example, if you convert c:\data\test.dxf, your output files will consist of...
In addition to geometry, the DXF layer names are preserved as an attribute table field. Any custom coloring or thicknesses are also stored as attributes, and any label rotation is saved in the -text.shp attribute table. The desktop version can also handle more complex entities such as LWPOLYLINE bulge values.
The converter includes a GUI (Graphical User Interface) allowing you to select multiple files for batch conversion, or you can pass a single filename to it via command line, useful for use with other tools, scripts, or batch processes.
Are neither of the above tools meeting your needs? Contact me for a free quote on a custom data conversion tool or project.