First, know which files make up a table
A FoxPro or dBase "database" is usually a folder of separate files. Each table is one .dbf file, and it often travels with companions that share its name:
.dbf: the table itself, with the field definitions and every record..fpt(Visual FoxPro) or.dbt(dBase and others): the memo file. Long text and notes fields are stored here, not in the.dbf. Without it, those fields come back empty or the table refuses to open..cdxor.idx: index files. They speed up lookups but hold no data you need for reading, and they can be rebuilt..dbc,.dct,.dcx: a Visual FoxPro database container that holds table relationships, long field names, and stored procedures for a set of tables.
Before you try anything, copy the whole folder somewhere else and work only on the copy. Opening a live table while the old program is running, or saving it back from a spreadsheet, is the easiest way to damage the one copy of the data the business has.
Option 1: Microsoft Excel, for a quick look
Microsoft lists dBase III and dBase IV .dbf files as formats Excel can open, and also says Excel cannot save back to dBase format and does not open dBase II files (Microsoft Support: file formats that are supported in Excel). In practice that makes Excel a viewer: use File, Open, choose the .dbf, and look. If the table opens with the columns you expect, you can save the sheet as CSV or a workbook for reading.
Excel is the wrong tool when the table will not open, when memo fields matter, or when you need every record exactly as stored. For those cases, use option 3.
Option 2: LibreOffice Calc, free and on any computer
LibreOffice is free and runs on Windows, Mac, and Linux. Calc has a dBASE file filter: its help describes saving a sheet in dBASE format with File, Save As (LibreOffice Help: importing and exporting data), and the same filter is used to open a .dbf with File, Open. As with Excel, treat it as a way to read and export, and do not save over the original table.
If names or addresses show odd symbols in place of accented letters, the text was stored in an old DOS or Windows code page. That is a decoding problem, not lost data, and option 3 handles it directly.
Option 3: a short Python script, for a complete export
When you need every table, every memo, and a clean CSV you can trust, the free dbfread library for Python reads DBF files from dBase, Visual FoxPro, and FoxBase+ and returns ordinary Python values. Its documentation says it fully supports Visual FoxPro .fpt and dBase III .dbt memo files, and reads dBase IV memo files that use the default 512 byte block size (dbfread introduction). After pip install dbfread, this exports one table to CSV:
import csvfrom dbfread import DBFtable = DBF("customers.dbf", char_decode_errors="replace")with open("customers.csv", "w", newline="", encoding="utf-8") as f: w = csv.writer(f) w.writerow(table.field_names) for record in table: w.writerow(list(record.values()))
Run it once per .dbf file, or loop over the folder. The script only reads the table, so the original files are never changed.
Common problems and what they mean
- A missing memo file error. The table has memo fields and the matching
.fptor.dbtis not next to it. Find it and put it beside the.dbf. If it is truly gone, dbfread can still read the rest of the data withignore_missing_memofile=True, and the memo fields come back empty. - Garbled accented characters. dbfread guesses the code page from a byte in the file header and falls back to ASCII. If the guess is wrong, pass the right one, for example
encoding="cp850"for many DOS era files orencoding="cp1252"for Windows era files, and compare a few known records. - Files not found on Mac or Linux. Windows ignores the case of file names, so a folder can hold
Customers.dbfnext toCUSTOMERS.FPT. dbfread ignores case when it looks for the memo file by default. - Records you thought were deleted. In DBF tables a deleted record is marked, not erased, until someone packs the table. dbfread keeps those apart in
table.deleted, so check them before you assume a record is gone, and leave them out of anything you import into a new system unless someone confirms they matter. - Missing indexes. You do not need the
.cdxor.idxfiles to read the data. Keep them with the backup anyway.
What the data alone does not tell you
Opening the tables shows what the business stored. It does not show what the program does with it: how an invoice total is calculated, which codes mean what, which records a report includes, or what happens at month end. Those rules live in the compiled program, the .exe, .app, or .fxp files, not in the DBF tables. If the developer is gone and the program still runs, that logic can still be recovered from the compiled files. The Visual FoxPro and Clipper guide explains the three real options for a FoxPro or Clipper program, the Visual FoxPro directory entry covers the platform's status, and the guide on documenting a legacy system before you migrate shows how the exported tables and the recovered logic fit together. To start a recovery, the intake checklist lists what to send. Josiah Wilson directs the work, and AI agents run the recovery pipeline under his direction. See the homepage for the measured proof and fixed prices.