What is the difference between DWG and DXF?

DWG files are more compact than DXF files and can also store a greater variety of files. DWG files use binary code — that is, a computer processing language made of zeroes and ones. DXF files use text-based coding (ASCII). Binary code is more compact, so DWG files tend to be about 25% smaller than DXF.