DBF to Excel
Drop a .dbf, or the .dbf together with its .fpt or .dbt memo file, and get an Excel workbook with the table on a sheet. Accented letters included, if you pick the right code page.
How it works
- Drop your file in the box above, or click it to pick one.
- Pick the output format and press Convert.
- Download the result. Nothing was uploaded on the way.
Is it safe?
A .dbf from an accounting package or a land registry layer can hold names and account numbers. The table is decoded by your browser on this device and isn't sent off to a server.
Want to check? Open your browser DevTools, switch to the Network tab and convert a file. Or convert a small file once, because each converter downloads its code the first time, then go offline and convert your real file.
Where all these .dbf files come from
dBASE set the format in the 1980s, and it never quite went away. FoxPro and Visual FoxPro used it, Clipper programs used it, and a lot of accounting, payroll and stock software written in those tools still exports .dbf today. The other big source is GIS: every shapefile carries its attribute table as a .dbf, so anyone who downloads map data from a council or a mapping agency ends up with one.
The converter reads dBASE III, IV, 5 and 7, FoxBASE, FoxPro, Visual FoxPro and Clipper tables.
When the letters come out wrong
This is the classic DBF headache. Old tables store text in a code page, the character set of the PC that wrote them, and many files don't record which one. Read a Czech table as Western European and "Dvořák" turns into nonsense.
With Text encoding on "Automatic (from the file)", the converter checks a shapefile's .cpg file first, then the code page byte in the table header, then whether the text happens to be UTF-8. If none of that answers it, Windows-1252 is used and a note tells you. When the result looks off, pick another encoding and convert again; it only takes a second. The list covers the Windows code pages, the DOS ones (437, 850, 852, 866 and others) that FoxPro and Clipper programs used, KOI8-R, Mac Roman, Shift JIS, GBK, Big5 and EUC-KR.
Memo fields live in a second file
Long text fields (memos) aren't stored in the .dbf itself. They sit next to it in a .fpt (FoxPro), .dbt (dBASE) or .smt file with the same name. Choose both files together, or put them in one ZIP, and the memo text appears in its column. Convert the .dbf alone and those columns are empty, with a warning that says which ones.
Several tables at once work too: pick up to 50 files, or drop a ZIP. A zipped shapefile is fine; the shapes are ignored and you get the attribute table. Each table becomes its own sheet.
What Excel gets, and what it doesn't
Every field comes across with its column name: text, numbers, dates as real Excel dates, logical fields as TRUE/FALSE, and the Visual FoxPro types such as currency, date-time and integer. Index files (.cdx, .mdx, .ntx) aren't needed and aren't read. Field widths and decimal places aren't applied as cell formatting. Binary memos and picture fields become a placeholder with their size, and dBASE 7 timestamp fields are marked as not decoded.
Records marked as deleted are left out by default. dBASE keeps them in the file until someone packs the table, so they can be worth a look: switch on Include deleted records and they come back with TRUE in an extra "_deleted" column.
Files up to 250 MB work on a computer, less on a phone. Very large tables are better off as DBF to CSV, since an Excel sheet stops at about a million rows.
Questions about this format
Why do umlauts and accents look broken after converting a DBF?
The table was read with the wrong code page. Change Text encoding to the one the program used: DOS 850 or 437 for old Western European software, 852 for Central European, 866 for Russian, or the matching Windows code page for newer files.
My memo column is empty. Where did the text go?
It lives in the .fpt or .dbt file next to the .dbf. Select both files at once, or zip them together, and convert again.
Can I open the attribute table of a shapefile in Excel?
Yes. Drop the shapefile's .dbf (with its .cpg if there is one), or the whole zipped shapefile. You get the attributes, one row per feature; the geometry isn't part of the output.
Last updated: