How to View DWG Files on Linux (Free Tools That Work)
Linux users are used to finding workarounds. DWG files are one more example. Autodesk doesn’t make a Linux version of AutoCAD or DWG TrueView, and most CAD vendors ignore Linux too.
But you can still view DWG files on Ubuntu, Fedora, Debian, Mint or Arch. Some options run in the browser. Some are native apps. Some convert the DWG into a format Linux tools handle better. This guide covers what we’ve found works, what doesn’t, and which tool to reach for first.
Why DWG is awkward on Linux
DWG is a closed format owned by Autodesk. There’s no public specification. Open source projects have had to work out the format by studying files, which is slow work. Support has improved a lot over the years, but it still trails behind commercial tools for the newest and most complex drawings.
DXF is different. Autodesk publishes the DXF specification, so Linux CAD tools handle DXF far better than DWG. Keep that in mind. Converting a DWG to DXF often turns a frustrating file into an easy one.
Option 1: A browser-based viewer (easiest)
A modern browser on Linux runs the same web apps as on Windows or Mac. That makes a browser viewer the simplest way to view a DWG without installing anything.
With our free online DWG viewer:
- Open Firefox or Chromium.
- Go to the viewer on our homepage.
- Drag the DWG from your file manager onto the page.
- Zoom with the scroll wheel and pan by dragging.
- Use the toolbar for layers, layouts and measuring.
The file is processed in your browser. It isn’t sent to a server. For a lot of Linux users, that’s the whole point of using Linux in the first place.
Browser viewers need WebGL for drawing. If you see a WebGL error, your browser may have hardware acceleration turned off or a GPU driver may be missing. In Firefox, check about:support. In Chromium, open chrome://gpu to see what’s enabled.
Option 2: LibreCAD
LibreCAD is the best-known open source 2D CAD program. It’s in the software center or package manager of nearly every distro.
Install it
- Ubuntu, Debian, Mint: sudo apt install librecad
- Fedora: sudo dnf install librecad
- Arch: sudo pacman -S librecad
- Or use the Flatpak from Flathub
How well it opens DWG
LibreCAD’s native format is DXF. It can import some DWG files, mostly older and simpler ones. Complex drawings may fail to open or lose details like hatches, dimensions styles or blocks.
LibreCAD shines when you need to make simple 2D edits to a DXF. It’s less reliable as a general DWG viewer.
Option 3: ODA File Converter (convert DWG to DXF)
The Open Design Alliance makes a free tool called ODA File Converter. It runs on Linux and converts DWG files to DXF, or between DWG versions. It’s one of the most reliable converters you can get for free.
How people use it on Linux:
- Download the Linux package from the Open Design Alliance website. There are DEB and RPM builds, and often an AppImage.
- Run the converter and pick an input folder with your DWG files.
- Pick an output folder.
- Choose DXF as the output type and a version, such as 2018 or 2013.
- Click Start.
Now open the DXF in LibreCAD, QCAD, FreeCAD or any other tool. Conversion fixes a lot of “won’t open” problems on Linux. We explain the difference between the formats in our DWG viewer vs editor guide, and the version numbers in our guide to checking a DWG file’s version.
Option 4: QCAD
QCAD is another 2D CAD program with a free community edition. The free version focuses on DXF. QCAD Professional, a paid add-on, adds proper DWG support. If you need to open DWG files natively on Linux and edit them, QCAD Professional is worth trying with its free trial.
Option 5: FreeCAD
FreeCAD is an open source 3D modeller. It can import DWG files, but it needs a helper converter like ODA File Converter or LibreDWG installed. You set the converter in FreeCAD’s import preferences. It’s a heavy tool for just viewing a plan. It makes sense if you want to use the drawing as a base for a 3D model.
What about LibreDWG?
LibreDWG is a GNU project that reads DWG files. It includes command line tools such as dwg2dxf. If you’re comfortable in a terminal, you can convert a file like this:
dwg2dxf drawing.dwg
That creates drawing.dxf next to it. Results vary with the file. Older and simpler drawings convert well. Complex new drawings may lose some objects.
Can you run DWG TrueView with Wine?
People have tried. Results are mixed at best. TrueView is a large Windows program with a lot of dependencies, and it often fails to install or crashes under Wine. We wouldn’t count on it.
If you truly need TrueView, run it in a Windows virtual machine with VirtualBox or GNOME Boxes. That needs a Windows license and disk space, but it works. Our DWG TrueView guide explains the program once you have Windows running.
Paid native options
If your job means opening DWG files every day on Linux, a commercial tool may be worth it. BricsCAD has a native Linux version and reads and writes DWG. It’s a full CAD program with a license fee. Most people reading this won’t need it, but it exists.
Which Linux option should you pick?
| Goal | Best option |
|---|---|
| Quick look, nothing to install | Browser viewer |
| Keep files fully local | Browser viewer or LibreCAD |
| Convert DWG to DXF reliably | ODA File Converter |
| Simple 2D edits | LibreCAD with a DXF |
| Full DWG editing | QCAD Professional or BricsCAD |
| Use the plan in a 3D model | FreeCAD with a converter |
Troubleshooting on Linux
The viewer shows a WebGL error
Your browser can’t use the GPU. Make sure hardware acceleration is turned on in browser settings. Install proprietary GPU drivers if your distro uses open drivers that lack features. Try another browser. Our guide to opening DWG files without AutoCAD lists other ways to view the drawing if WebGL isn’t available.
LibreCAD says it can’t read the file
Convert the DWG to DXF with ODA File Converter, then open the DXF. If the DXF still fails, try saving it as an older DXF version, like 2007.
Text looks wrong
Linux has different fonts from Windows. DWG files often use Windows TrueType fonts or AutoCAD’s SHX fonts. Viewers swap in fallback fonts, so text may look a bit different. Installing Microsoft’s core fonts package on your distro can help with common fonts like Arial.
The drawing is empty
Zoom to extents. In LibreCAD use View, then Auto Zoom. In a browser viewer use the fit button. If it’s still empty, the drawing may be on a layout tab or layers may be off.
Batch converting a folder of drawings
Sometimes you get a whole project, not one file. Fifty DWGs in a ZIP, all needed by Friday. Converting them one by one would take all afternoon.
ODA File Converter handles folders. Point the input at the unzipped project folder and tick the option to include subfolders. Every DWG inside gets converted in one run. The output folder keeps the same structure, so nothing gets mixed up.
If you prefer the terminal, a short loop with LibreDWG’s dwg2dxf does the same job:
for f in *.dwg; do dwg2dxf “$f”; done
Check a few of the results before you trust the whole batch. Open one simple sheet and one complex sheet. If both look right, the rest are probably fine.
Keeping fonts consistent
Text is the part of a DWG that most often looks wrong on Linux. Two small steps help a lot.
First, install common Windows fonts. On Ubuntu and Mint, the package is called ttf-mscorefonts-installer. Other distros have similar packages.
Second, if you use LibreCAD or QCAD, point them at a folder of SHX or LFF fonts. Many firms keep their font files in a shared folder. Ask whoever sent the drawing if you can have a copy.
A simple workflow that works
Here’s what we’d suggest for most Linux users:
- Try the drawing in a browser viewer first. Most files open fine.
- If it fails or you need to edit, convert it to DXF with ODA File Converter.
- Open the DXF in LibreCAD for 2D work.
- Keep the original DWG untouched in case you need to send it back.
This covers the vast majority of everyday needs without paying for anything.
Questions people ask
Is there an AutoCAD for Linux?
No. Autodesk doesn’t make AutoCAD for Linux. You can use alternatives like BricsCAD, or run AutoCAD in a Windows virtual machine.
Can LibreCAD open every DWG?
No. LibreCAD reads some DWG files but works best with DXF. For reliable results, convert to DXF first.
Is ODA File Converter free?
Yes. It’s free to download and use from the Open Design Alliance.
Does a browser viewer work on a Raspberry Pi?
Small drawings may open. Large ones need more memory and GPU power than a Pi usually has.
The short version
You can view DWG files on Linux without Windows. Start with a browser-based DWG viewer for a quick look. For editing, convert to DXF with ODA File Converter and use LibreCAD. And for a wider look at every free option, read our roundup of free DWG viewers compared.
