If you have Access on Windows
- Open the database in Access and select a table in the navigation pane.
- On the External Data tab, choose Export, then Text File.
- Pick a file name ending in .csv, choose Delimited, then Comma, tick Include Field Names on First Row, and finish.
That exports one table (or one query) per run, so for a database with many tables you repeat it for each one.
If you don't have Access
On a Mac, a Chromebook or a Windows PC without Access, use the Access Viewer:
- Drop the .mdb or .accdb file onto the page. Every table appears in a list with its row count, and every row is free to view.
- Click the table you want, then CSV. You get one file named after the database and the table.
- Repeat for each table you need. If you want every table at once, Excel: all tables gives one workbook with a sheet per table.
Exports are $19 once for every database you open, or $7 for 24 hours. To check the result before paying, click Excel and download the first 20 rows of a table free.
On Windows, you can also get the Access Viewer app from the Microsoft Store (free), and .mdb and .accdb files open with a double-click.
What the CSV looks like
- The first row holds the column names, then one line per record.
- The file is UTF-8 with a byte order mark, so Excel shows accented letters and other non-English text correctly when you double-click it.
- Values with commas, quotes or line breaks are quoted, so the columns stay lined up.
- Yes/No fields come out as Yes and No. Empty fields are left blank.
- Picture, attachment and OLE Object fields come out blank.
Things to know
- Only tables. Queries, forms, reports and macros are not exported. If you need a query's result, export the tables it uses and rebuild it in the tool you are moving to.
- Very large tables. The viewer reads files up to 300 MB. It loads every row of every table and the full text of every value, free; the CSV export holds all of it. In the Excel file a value over 32,767 characters is cut (Excel's cell limit) and a table over 1,048,576 rows continues on more sheets, and the viewer says so when it happens.
- Passwords. A .mdb database with a password opens when you type its password. An .accdb file encrypted with a password can't be opened yet: remove the password in Access, save a copy and use that copy.
- On Linux or a Mac with a terminal, the free mdbtools package exports a table to CSV with
mdb-export, one table per command.