How to Open and Convert a DBF File to Excel

Modern Excel often cannot open DBF files correctly: memo fields are lost, fields go missing and large files fail to load. The reliable way is to open the DBF file in DBF Viewer 2000® and export it to XLSX or XLS - with the fields, record range and sorting you need. The sections below walk you through the export dialog, then cover batch automation from the command line.

To export a DBF file to an Excel spreadsheet, follow these steps:

Step 1. Run DBF Viewer 2000 and open the DBF file you want to export to Excel.

Step 2. Select File | Save as/Export menu command

Menu Save As

Step 3. Select file type: XLS or XLSX (Excel 2003-2025) and click "OK"

Save As Dialog

Step 4. "Export to Excel" dialog box opens.

DBF to Excel screenshot

Here, you can adjust the exporting parameters, namely:

  • Select what fields from the original DBF will be transferred to the output Excel document
  • Set filter to export only records that match specific criteria (like SALARY >= 5000 or FNAME contains "John")
  • Export records in the reverse order
  • Export a specified range of records
  • Skip deleted records
  • Generate a command line and save it as a .bat file or copy it to the clipboard.

When you are done, click the OK button to start exporting. DBF Viewer 2000 starts conversion and shortly you end up with your DBF file successfully converted to Excel. If you have selected the Open after export option, Microsoft Excel starts automatically when the conversion finishes, with the resulting XLSX file already opened. Need to convert a whole folder of DBF files to Excel at once? Use DBF to Excel Converter.

DOWNLOAD
for FREE

DBF to Excel Exporting via Command Line

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" file.dbf /EXPORT:file.xls | file.xlsx [/XML] [/FILTER | /FILTER2 | /REVERSE| /COLUMNS | /FROMRECORD | /SORTBY [/DESC] | /SHEETASFILENAME | /NOHDR | /LOG]
Examples:

Simple export to XLS format

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:sample.xls

Export to XLSX format

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:mytable.xlsx

Export with Columns Selection

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:mytable.xls /COLUMNS:ZIP,NAME

Export in Reverse Order

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:sample.xls /REVERSE

Export from record #1000

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:sample.xlsx /FROMRECORD:1000

Export from record #1 to record #1000

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:sample.xlsx /FROMRECORD:1 /LASTRECORD:1000

Export as XML based

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:sample.xls /XML

Export with sorting

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:sample.xls /SORTBY:DATE

Export with Filter command by Name

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:table.xls /FILTER2:Name:Jim

Export to Excel with Wide filter

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:table.xls /wfilter:Robin

Export without Header

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:table.xls /NOHDR

Set Sheet Name as File name

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:mytable.xlsx /sheetasfilename

Export with Log file generation

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:mytable.xlsx /LOG:d:\Logs\myexport.txt

Set Range for fields

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:mytable.xlsx /STARTFLD:2 /ENDFLD:5

Export with current date and time

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:mytable-[date]-[time].xlsx

Export with custom date format

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:mytable-[date:mmdd].xlsx

Export multiple files to XLSX format

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" d:\base1\ /export:d:\base2\*.xlsx /RECURSE

Export with Custom Time format in output file

"c:\Program Files (x86)\DBF Viewer 2000\dbview.exe" sample.dbf /EXPORT:mytable-[time:hhmm].xlsx

Do you need more options for Excel format ?

Please, contact us by E-mail: support@dbf2002.com or by On-line form.

Frequently Asked Questions (FAQ) ▼

Why not just open DBF in Excel? ▼

MS Excel 2025 frequently has problems opening DBF files correctly.

Can I select which fields to include? ▼

Yes. The export dialog lets you choose which fields to include in the output Excel file and reorder them.

Do I need Microsoft Excel installed? ▼

No. DBF Viewer 2000 creates XLSX files using its own built-in engine. You do not need Microsoft Excel installed on your PC.

Can I export multiple DBF files at once? ▼

Yes, you can export multiple dbf files via command line or with GUI with our DBF Converter.

Are memo fields exported to Excel? ▼

Yes. DBF Viewer 2000 exports memo fields together with the other data.

Can I export only some records instead of the whole table? ▼

Yes. In the export dialog you can apply a filter to keep only the records that match your criteria, export a specific record range, or skip records marked as deleted.

Download Free Trial Version
Windows 11/10/8/7

No credit card or e-mail address required.

See also: DBF to CSV, DBF to XML, Excel to DBF importing, DBF to SQL, command line options, Filtering records in dbf file