Entidex Bridge · in development · progress updated 21 October 2026A product by Entidex

Entidex Bridge / Free tools / DBF viewer / How to open a DBF file

Guide · DBF files

How to open a DBF file, and convert it to Excel, CSV or SQL.

A .dbf file is a database table from dBase, FoxPro or Visual FoxPro. Here are four ways to open one, the steps to get it into Excel, a CSV file or a SQL database, and what to do when the text, memo fields or dates come out wrong.

Checked 17 November 2026

Four ways

Ways to open a DBF file.

Which one works depends on which program made the file. A table from dBase III or IV is the easy case; a Visual FoxPro table with memo, Currency or DateTime fields is the one most programs get wrong.

ProgramOpensWatch for
Free DBF viewer (any browser)Visual FoxPro 3 to 9, FoxPro 2.x, FoxBASE+, dBase III and IV, with .fpt and .dbt memo filesReads only; it never writes a .dbf file. Very large tables are limited by your browser’s memory.
Microsoft ExceldBase III and IV tables (Microsoft)Visual FoxPro tables are not on Microsoft’s list. Excel cannot save back to dBase format.
LibreOffice Calc (free).dbf files, opened as a new spreadsheet (LibreOffice Help)Formulas and formatting are lost when a dBASE file is saved. Visual FoxPro memo, Varchar, Currency and DateTime fields are often lost.
Visual FoxPro itselfEverything it wrote: USE customer then BROWSEOnly if you still have a working copy installed. Opening a table in the live system’s folder can lock it for its users; work on a copy.

Whatever you use, open a copy of the files, not the ones the live system is using.

DBF to Excel, step by step

  1. Copy the table and its memo file somewhere safe: customer.dbf and, if there is one, customer.fpt (FoxPro) or customer.dbt (dBase).
  2. Open the DBF viewer and drop both files onto the page. Nothing is uploaded.
  3. Check a few records. Look at names with accents and at any £ signs. If they look wrong, change the code page (see problems).
  4. Choose “CSV for Excel” and download. Double-click the file to open it in Excel.

The CSV for Excel is UTF-8 with the marker Excel looks for, so accents and the £ sign survive. Dates are written as YYYY-MM-DD, which Excel recognises as dates.

DBF to CSV

For anything other than Excel, such as a script, another database’s import wizard or a cloud system, choose CSV (plain UTF-8). It has no Excel marker, one header row with the field names, and one row per record.

  • Deleted records are left out unless you tick “Include deleted records”, which adds a _deleted column. FoxPro marks a record deleted but keeps it until the table is packed, so these may still matter.
  • Numbers keep their exact decimals.
  • Binary fields are written as base64.

Prefer one record per line as JSON? Choose JSON Lines.

DBF to SQL Server, PostgreSQL, MySQL or SQLite

  1. Open the table in the DBF viewer and open Fields and SQL types to see how each field will be created.
  2. Choose your database. If the table has a unique key field, pick it as the primary key: the script then updates existing rows instead of adding duplicates, so you can run it again.
  3. Download the script and run it into an empty test database first.

Running the script

SQL Server: sqlcmd -S server -d database -i customer.sql
PostgreSQL: psql -d database -f customer.sql
MySQL: mysql database < customer.sql
SQLite: sqlite3 customer.db < customer.sql

Then compare the row count in the database with the record count the viewer shows. They should match, less any deleted records you left out.

When it goes wrong

Common DBF problems, and the fix.

Most problems come from the file’s age: a character set nobody uses now, a memo file left behind, or values the old program let in.

Accents and £ signs look wrong

The text was read in the wrong code page. Pick another in the viewer’s code page list and check a few records before you export.

“Memo file is missing”

Long text lives in a separate .fpt or .dbt file with the same name. Drop it in with the .dbf.

Some dates or numbers are empty

Old programs let in values that cannot be read back, such as 31 February or a number too big for its field. The viewer exports them as empty and lists every one in a problems file rather than guessing. What breaks and how it is handled.

“Not a supported DBF table”

Check the file is the table itself. A .cdx, .idx or .mdx file is an index, and a .dbc is a FoxPro database container; neither holds the records. A table whose header is damaged will not open either.

Questions

DBF file
questions.

Something else? Ask us.

Can Excel open a DBF file?

Yes, for dBase III and IV tables: Microsoft lists them as formats Excel can open (Excel for Microsoft 365, 2024, 2021, 2019 and 2016, checked 17 November 2026). Visual FoxPro tables are not in that list, so a FoxPro .dbf may not open in Excel, or may not open completely. For those, open the file in the free DBF viewer and download CSV for Excel.

Can I save an Excel file as a DBF file?

Not from current Excel: Microsoft says you can open dBase files in Excel but cannot save an Excel file to dBase format. LibreOffice Calc can save the current sheet as a dBASE file, though formulas and formatting are lost.

How do I open a DBF file without FoxPro?

Use a tool that reads the file format directly. The free DBF viewer on this site opens Visual FoxPro, FoxPro 2.x and dBase tables in your browser, memo fields included, without FoxPro installed and without uploading the file.

Why do accented letters or the £ sign look wrong?

The table was read with the wrong code page, the character set the text was saved in. The viewer reads the code page from the table header; if the text still looks wrong, pick another code page from the list (1252 is usual for Western European Windows systems, 437 and 850 for older DOS ones) and check a few records before you export.

Why does the viewer say the memo file is missing?

The table has memo fields, long text or binary data, which live in a separate file: .fpt for FoxPro, .dbt for dBase. Drop that file in at the same time as the .dbf. It must have the same name, for example customer.dbf with customer.fpt.

How do I convert a whole folder of DBF files?

The viewer opens several tables at once, one tab per table, and you export each one. For a whole FoxPro database, with record counts checked for every table, the FoxPro Data Export does every table in one run.

Sources

  1. Microsoft Support: File formats that are supported in Excel. Lists DBF 3 and DBF 4 (dBase III and IV) as formats Excel can open but not save; applies to Excel for Microsoft 365, 2024, 2021, 2019 and 2016. Read on 17 November 2026.
  2. LibreOffice Help: Importing and Exporting dBASE Files. Calc opens a .dbf file as a new spreadsheet and can save the current sheet as dBASE; formulas and formatting are lost. Read on 17 November 2026.

General guidance. Microsoft, LibreOffice and dBase are named only to identify programs; no endorsement or partnership is implied. From bridge.entidex.com.