Working with geospatial data often involves handling various file formats, and one of the most common you will encounter is the ESRI File Geodatabase (.gdb). Whether you are working with data from the US Census Bureau or another source, knowing how to open a .gdb file in QGIS is essential for effective analysis and visualization.
What Is a File Geodatabase (.gdb)?
A File Geodatabase is an ESRI format used to store, manage, and query multiple spatial datasets in a single container. Despite the .gdb extension, it is actually a folder — not a single file — containing a collection of binary files that together make up the database. It can hold feature classes, raster datasets, tables, and relationship classes.
How QGIS Opens .gdb Files
QGIS reads File Geodatabases through GDAL/OGR, the underlying geospatial library it uses for vector and raster I/O. Two OGR drivers are relevant:
- OpenFileGDB — Built into GDAL and available in every standard QGIS installation. It provides read-only access to File Geodatabases without requiring any additional software. This is what the steps below use.
- FileGDB — An optional driver that requires the proprietary ESRI File Geodatabase API SDK. It adds write support and broader compatibility with older geodatabase versions, but it is not included in standard QGIS builds and must be installed separately.
For most users, the built-in OpenFileGDB driver is sufficient for viewing and exporting data from .gdb files.
Steps to Add a .gdb File to QGIS
- Download and unzip the geodatabase: Obtain the .gdb file you need. If it arrived as a .zip archive, extract it first. The result will be a folder with a
.gdbsuffix containing several internal files. - Locate the .gdb folder: Make a note of where you saved the extracted folder — you will need to navigate to it in the next steps.

- Open QGIS: Launch QGIS.
- Open the Data Source Manager: Click the Data Source Manager button in the toolbar, or go to Layer > Data Source Manager (keyboard shortcut: Ctrl+L).

- Select the Directory source type: In the Data Source Manager, click the Directory tab in the left panel. Under Source type, choose OpenFileGDB from the drop-down menu.

- Browse to the .gdb folder: Click the Browse button (the three-dot icon next to the path field) and navigate to the
.gdbfolder on your computer. Select the folder and click OK.
- Add layers: QGIS will list all the layers (feature classes and tables) contained in the geodatabase. Select the ones you want to load, click Add, then click Close.

Importing Directly from a Zipped Geodatabase
QGIS can also read a .gdb directly from its .zip archive without extracting it first. In the Data Source Manager, follow the same steps above but use the Browse button to select the .zip file instead of the extracted folder. QGIS will treat the archive as a virtual filesystem and list the layers inside it.
That said, working with the extracted folder is generally preferable. Reading from a zip archive is slower because QGIS must decompress data on the fly, and it can cause issues with very large geodatabases.

Best Practices
- Always extract the .zip archive before opening the .gdb in QGIS for the best performance and reliability.
- If you need to edit the data, export the layer to a format QGIS can write natively — such as GeoPackage (.gpkg) or Shapefile (.shp) — using Layer > Save As.
- Keep the entire .gdb folder intact. Deleting or renaming any of the internal files will corrupt the geodatabase.
FAQ
- Can I edit data in a .gdb file using QGIS?
Not directly. The built-in OpenFileGDB driver provides read-only access. To edit the data, export the layer to an editable format such as GeoPackage using Layer > Export > Save Features As, make your edits there, and re-import if needed. - Do I need to install any extra plugins or drivers to open a .gdb in QGIS?
No. The OpenFileGDB driver is built into every standard QGIS installation and requires no additional setup. You can open .gdb files immediately after installing QGIS. - What should I do if QGIS cannot open the geodatabase?
First, confirm the .gdb folder is fully extracted and not corrupted. Ensure you are using a recent version of QGIS (3.x or later). If the geodatabase was created with a very old version of ArcGIS, try installing the optional FileGDB driver for broader compatibility. - Are there limitations to using .gdb files in QGIS?
Yes. Read-only access means you cannot write back to the original .gdb using the standard driver. Some advanced geodatabase features — such as topology rules, network datasets, and annotation feature classes — are not fully supported in QGIS and may not display correctly. - Can QGIS open a Personal Geodatabase (.mdb)?
Personal Geodatabases use the Microsoft Access MDB format, which is different from a File Geodatabase. QGIS can read them via the OGR MDB driver on Windows, but support is limited and this format has been largely superseded by the File Geodatabase format.




