.DBF

DBF File

Database File (dBASE / xBase table)
Ask a question
QUICK ANSWER

A DBF file is a single-table database in the dBASE/xBase format, in use since 1983 and still common in GIS shapefiles, accounting exports, and legacy business software. Open it free with LibreOffice Calc (File > Open, choose dBASE) or import it into Excel. Keep any companion .dbt or .fpt file in the same folder -- long-text columns are stored there and will be blank without it.

Developer: Originated with dBASE (Ashton-Tate, 1980s); now a de-facto open xBase standard Category: Database Files Open standard MIME: application/dbf
OPENS ON Windows macOS Linux Web
Related: .DB · .ACCDB · .SQL · .MDB

On this page

19k+ extensions indexed
Last reviewed Jul 14, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the DBF file format?

A .dbf file contains a structured database organized in tables with records. The format originated in 1983 alongside dBASE II and became the de-facto standard of the broader xBase family of database tools. .dbf was designed to facilitate data exchange between various applications. Multiple dialect versions of the .dbf format exist - each iteration adding new data types and flags - and because of these differences, not all applications can open a given .dbf file without knowing which dialect it follows.

The .dbf file header is encoded in binary and describes the structure of the database. It holds such information as:

  • A version flag byte (offset 0; e.g. 0x03 = dBASE III/IV without memo, 0x30 = Visual FoxPro, 0x83 = dBASE III with companion memo),
  • Last database update date (bytes 1-3, stored as YY MM DD),
  • Number of records - a 32-bit integer,
  • Header length and record field length,
  • Encryption flag,
  • Field descriptor array - a table of column names, types and fixed widths.

After the header, records are saved in ASCII text or binary format with a constant field length. When a record is removed by the application, its first byte is set to an asterisk (0x2A), marking it as logically deleted rather than physically erasing it. New records are appended to the end of the file, increasing its size; some implementations later compact the file with a PACK operation and overwrite previously deleted records.

Memo data (long text, binary, or OLE objects) is not stored inside the .dbf itself - it lives in a companion file: .dbt for dBASE III/IV or .fpt for FoxPro/Visual FoxPro. The .dbf record stores only a block-number pointer to the companion. .dbf files can also be opened using dedicated DBF viewers; such tools allow users to inspect the file contents in a human-readable form. .dbf files should not be opened with a text editor, as the binary header and field data will appear as garbled characters.

Security & safety

RISK: LOW

A .dbf is plain tabular data, not executable, so opening one is safe. Two practical cautions: (1) character-encoding/code-page mismatches can garble accented or non-Latin text - pick the right charset on import; (2) DBFs from accounting, tax or GIS sources can contain personal/sensitive data, so avoid uploading them to online viewers. Corrupted DBFs (missing memo file or truncated) may need a repair/recovery tool rather than a normal opener.

Format details

in a nutshell
FULL NAMEDatabase File (dBASE / xBase table)
DEVELOPEROriginated with dBASE (Ashton-Tate, 1980s); now a de-facto open xBase standardsince 1983 (dBASE II/III); format family known as xBase
MIME TYPEapplication/dbf
TYPEFlat single-table database file with a fixed-length record layout (binary)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
00
HEX
03
ASCII
·
The first byte is a VERSION FLAG, not a fixed signature: 0x03 = dBASE III/IV without memo, 0x30 = Visual FoxPro, 0x83 = dBASE III with .DBT memo, 0xF5 = FoxPro 2.x with memo, etc. Bytes at offset 1-3 are the last-update date (YY MM DD). So a .dbf has a recognizable header structure but no single magic number - detect by the version byte plus the field-descriptor array.

Programs that open DBF files

Windows5 apps
Microsoft Access Paid External Data → import/link the dBASE file to query and edit it as a table.
Microsoft Excel Paid Open or import the .dbf (older Excel opens DBF directly; current Excel uses Data → Get Data → From File). Watch for code-page issues with accented text.
LibreOffice Calc Open-source File → Open, pick the .dbf, choose the character set in the dBASE import dialog; the table opens as a spreadsheet.
DBF Viewer Plus Free Free standalone viewer/editor - open the .dbf to browse, search, and export records.
DBF Viewer 2000 / DBF Manager Paid Dedicated DBF editor handling large files, memo and index files; paid with a trial.
macOS1 app
LibreOffice Calc Open-source Open the .dbf via the dBASE import dialog to view/edit as a spreadsheet.
Linux2 apps
LibreOffice Calc Open-source Open the .dbf with the dBASE filter; choose the correct character set for accented data.
GDAL / ogr2ogr (for GIS DBFs) Open-source ogr2ogr -f CSV out.csv in.dbf - ideal for shapefile attribute tables; scriptable conversion.
Web1 app
DBF online viewers Free Drag a .dbf into a browser viewer to inspect rows (don't upload confidential/personal data to third-party sites).

Technical details

deep spec
Format categoryFlat single-table binary database; fixed-length record layout with a binary header and field-descriptor array
MIME typeapplication/dbf (also application/dbase and application/x-dbf in various implementations)
Version identificationFirst byte (offset 0) is a dialect flag rather than a fixed magic number: 0x03 = dBASE III/IV without memo, 0x30 = Visual FoxPro, 0x83 = dBASE III with .dbt memo, 0xF5 = FoxPro 2.x with memo
Header structure32-byte base header + one 32-byte field descriptor per column + 0x0D terminator byte; field descriptors begin at offset 32
Deletion handlingDeleted records are logically flagged by setting the record’s first byte to 0x2A (ASCII asterisk); they remain in the file until explicitly removed via a PACK operation
Record encodingFixed-length records; Character fields in ASCII, Numeric fields as zoned-decimal ASCII strings, Date as 8-byte YYYYMMDD ASCII, binary/raw bytes for other types
Supported field typesCharacter (C), Numeric (N), Date (D), Logical (L), Memo (M), Float (F); Visual FoxPro adds Currency (Y), DateTime (T), Integer (I), and General (G) for OLE objects
Memo companion file.dbt for dBASE III/IV; .fpt for FoxPro and Visual FoxPro - the .dbf record stores only a 10-digit block-number pointer, not the memo data itself
Index companion files.ndx (dBASE single-index), .mdx (dBASE IV multi-index), .cdx (FoxPro/VFP compound index) - all external; no index data is embedded in the .dbf
Maximum recordsUp to 1,073,741,823 records per table (2°30 − 1) in dBASE 7; earlier dialects cap at lower counts depending on header field width
Maximum fields per table255 fields in standard xBase dialects (dBASE III through FoxPro/VFP)
Field name lengthUp to 10 characters in dBASE III/IV and FoxPro; up to 128 characters in dBASE 7 Long Field Names mode
Codepage supportCodepage identifier stored at header offset 29 (0x1D); common values: 0x03 Windows ANSI, 0x57 US OEM (CP437), 0x64 Eastern European OEM (CP852)
Encryption flagHeader byte at offset 15 (0x0F) signals dBASE-level record encryption; if set, record data is XOR-obfuscated - distinct from any file-system-level encryption
GIS usageESRI Shapefile always ships a companion .dbf for feature attributes alongside the .shp geometry file; tools such as GDAL/ogr2ogr read and write these .dbf files natively
Released1983 (dBASE II/III); format family known as xBase
Open standardYes · royalty-free
Specificationwww.dbase.com

DBF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with DBF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about DBF files.

Frequently asked questions

How do I open a .dbf file for free?
Open it in LibreOffice Calc (File → Open → choose dBASE and the character set) - it shows the table like a spreadsheet on Windows, macOS, and Linux. For browsing only, free tools like DBF Viewer Plus also work.
Can I open a DBF file in Excel?
Yes. Older Excel opens .dbf directly; current Excel imports it via Data → Get Data → From File. Check that accented characters display correctly (code-page issue) and that the table fits Excel's row limit.
What is the .dbf file in my shapefile?
It's the attribute table of an ESRI shapefile - the data behind each map feature. Keep it together with the .shp/.shx; you can open it in QGIS, LibreOffice Calc, or with GDAL/ogr2ogr.
How do I convert a DBF to CSV or Excel?
Open it in LibreOffice Calc or Excel and Save As CSV or XLSX (or use ogr2ogr for GIS DBFs). Mind the character set so special characters survive.
Why is my DBF showing garbled or missing text?
Two common causes: the wrong character set/code page on import (pick the matching one), or a missing memo file - long-text columns live in a separate .dbt/.fpt that must accompany the .dbf.
Is DBF the same as a .db or Access database?
No. DBF is the dBASE/xBase table format. It's unrelated to SQLite/Thumbs .db files, Microsoft Access .mdb/.accdb, or SQL Server .mdf - though tools can import a DBF into those.

References

1Library of Congress - DBF (dBASE table) format descriptionwww.loc.gov
2dBASE - Table File (.dbf) format specificationwww.dbase.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.MDMarkdown Document
5.JPGJPEG Image
6.EXEWindows Executable (Portable Executable)
7.NOMEDIAAndroid No-Media Marker File
8.BINCD/DVD Disc Image (BIN/CUE)
9.DATProgram Data File (generic)
10.RPMSGRestricted Permission Message

Related extensions

.DBSQLite Database File
.ACCDBMicrosoft Access Database (2007+)
.SQLSQL Script (Structured Query Language source / database dump)
.MDBMicrosoft Access Database (97-2003, Jet engine)
.FDBFirebird Database
.SQLITESQLite Database

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z