MDB file: what it is and how to open one
An .mdb file is a Microsoft Access database: tables of records, and often the queries, forms and reports built on them, all in one file. It was Access's standard format up to Access 2003 (Access 2007 replaced it with .accdb), so most .mdb files people are handed today come from an older system, a vendor export or an archive. You do not need Access to read one.
Which program opens an .mdb file
- Windows, with Microsoft Access: double-click it. Access 2007 and later open
.mdbfiles from Access 2000 onward. Files from Access 97 need Access 2010 or earlier (why). - Windows, without Access: Excel can import the tables (Data → Get Data → From Database → From Microsoft Access Database) if the Access Database Engine is installed; if it is not, Excel stops with The 'Microsoft.ACE.OLEDB.12.0' provider is not registered. The free Access Runtime runs finished Access applications but hides the navigation pane, so it is a poor way to simply look at tables.
- Mac: there has never been an Access for Mac. The options are a Chrome extension, mdbtools from Homebrew on the command line, or Windows in a virtual machine (details).
- Chromebook: a Chrome extension, or mdbtools under Linux (details).
- Linux: mdbtools, packaged by most distributions:
mdb-tables file.mdblists the tables,mdb-export file.mdb TableName > table.csvexports one. - In Chrome on any of these computers: AccessLens opens
.mdbfiles from Access 97 to 2003 (and.accdbfiles from 2007 to 2019) in a browser tab. Browse and search every table, and export a table to CSV or the whole database to Excel, SQLite or a SQL script. Nothing is uploaded.
Microsoft Access has no phone or tablet version, so open the file on a computer. Every viewer side by side, with prices and which ones upload your file: MDB viewers compared.
Getting the tables into Excel or Google Sheets
An Access database holds many tables, and a spreadsheet holds one table per sheet. Excel's
import on Windows (it needs the Access Database Engine) and mdb-export both move one
table at a time. AccessLens does either: pick a table and use Export → This table → CSV,
or use Export → All tables → Excel workbook to get every table in one .xlsx
file, one sheet per table. Excel, Numbers and Google Sheets open both.
Exporting all tables at once is free for databases of up to 20 tables and 50,000 rows in total; bigger databases need the optional one-time Pro licence for it. Exporting one table to CSV is free at any size.
Before you upload it to an online viewer
Online MDB viewers come in two kinds. Some upload the file to their server and convert it there, usually with a size limit; others read it inside your browser. For anything confidential (customer, HR, financial or medical records) find out which kind a site is before you use it.
AccessLens is in the second group by construction: it requests no permissions at all, network included, so it has no way to send the file anywhere. The empty permissions list is visible on its store page.
Is it really an Access file?
Other programs sometimes reuse the .mdb extension for formats of their own. To check,
open the file in Notepad or any text editor: a genuine Access .mdb shows
Standard Jet DB at the very start (an .accdb shows Standard ACE DB).
If you see neither, no Access viewer can read it; you need the program that created it.
- A small
.ldbfile next to the database is a lock file that Access creates while the database is open. It holds no data. - ArcGIS personal geodatabases really are Access
.mdbfiles, so Access-compatible tools can read their attribute tables. The map shapes themselves are stored in a binary format that only GIS software can draw.
Just need the tables out of the file?
AccessLens opens .mdb and .accdb files (Access 97 to 2019, password-protected included) in a Chrome tab on your own machine. Browse and search any table, and export to CSV, Excel or SQLite. It contains no network code and requests no permissions, so the file stays on your computer.
Free: browsing, searching a table and exporting it to CSV, at any size. Exporting or searching every table at once is free up to 20 tables and 50,000 rows in total; above that it needs an optional one-time Pro licence.
Add to Chrome — free No account. No upload. Read-only: it never changes your file. Using Firefox? Get it from Firefox Add-ons.Questions
What program opens an .mdb file?
Microsoft Access, on Windows. Without Access: Excel can import the tables on Windows if the Access Database Engine is installed, mdbtools reads them on Mac and Linux, and AccessLens opens them in a Chrome tab on your own computer without uploading them.
What is the difference between .mdb and .accdb?
.mdb is the database format of Access 2003 and earlier. .accdb has been the default since Access 2007 and adds features such as attachments, multi-valued fields and stronger encryption. Access 2007 and later open both, except Access 97 .mdb files, which need Access 2010 or earlier.
Can I convert an .mdb file to Excel?
Yes. AccessLens exports the whole database to one Excel workbook with a sheet per table (free for databases of up to 20 tables and 50,000 rows), and any single table to CSV at any size. mdbtools exports one table at a time, and on Windows, Excel's Get Data → From Microsoft Access Database imports the tables if the Access Database Engine is installed.
Can an .mdb file contain a virus?
It can contain macros and VBA code, which Access runs only if you enable content. A viewer that only reads the tables, such as AccessLens, never runs anything inside the file.