filerepair
All Tools ▾
Legacy DB · Private & Free

Repair dBase & Visual FoxPro (.dbf) Databases

Bypass broken DBF record counters, decode legacy Windows/DOS codepages (CP1252, GB18030, Shift-JIS, CP866), filter soft-deleted rows, and export clean UTF-8 CSV.

Drop your dBase / FoxPro (.dbf) file here
Drag & drop anywhere or press⌘V·100% on-device · never leaves your browser
Try a sample:

Common Issues Handled

  • "Not a table / Invalid DBF header record count mismatch after crash"
  • "Garbled non-ASCII characters when opening legacy FoxPro or dBase III/IV tables"
  • "Unexpected EOF or bloated soft-deleted (0x2A) records blocking ERP/GIS imports"

How It Works

  1. Parses dBase III/IV and Visual FoxPro headers directly in binary without Windows ODBC/OLEDB drivers.
  2. Ignores corrupted record-count counters and scans physical record slots across the table body.
  3. Decodes legacy codepage strings into UTF-8 with BOM so Excel, PostgreSQL, and SQLite open them cleanly.

Exact Error Codes & System Messages Fixed

Visual FoxPro (Error 15)
Not a table (Error 15) — DBF header record count does not match actual file size
Visual FoxPro (Error 2091)
Table "filename.dbf" has become corrupted. The table will need to be repaired before using again.
QGIS / ArcGIS Shapefile
Invalid Data Source: .dbf attribute table truncated or corrupt record count
Excel / LibreOffice Calc
Garbled characters in DBF columns due to missing CP1252 / GBK / Shift-JIS / CP866 codepage byte

dBase III/IV & Visual FoxPro (.dbf) Header & Tombstone Anatomy

A .dbf file begins with a 32-byte header containing the version byte (0x03 dBase III+, 0x30/0x31/0x32 Visual FoxPro, 0xF5 FoxPro 2.x), a 32-bit little-endian record counter at bytes 4–7, header length, record length, and language driver ID (byte 29). Each row starts with a 1-byte deletion flag: 0x20 (active) or 0x2A ("*" soft-deleted).

When an ERP terminal crashes mid-append, the OS writes the new row bytes to disk before FoxPro updates bytes 4–7, causing Error 15 / Error 2091. FileRepair ignores the broken header counter, scans every physical record slot, compacts away 0x2A tombstones, rewrites a valid .dbf with a 0x1A EOF marker, and lets you export UTF-8 CSV, JSON, or SQL.

What Can Be Repaired

  • Visual FoxPro Error 15 / Error 2091 header record-count mismatches
  • Compacting bloated soft-deleted (0x2A) records and missing 0x1A EOF markers
  • Legacy codepage decoding (CP1252, CP437, CP850, GB18030, Big5, Shift-JIS, EUC-KR, CP866)
  • Saving both a repaired original .dbf AND modern CSV / JSON / SQL exports

Honest Limitations

  • External .FPT / .DBT memo field payloads are referenced by block index when only the .dbf file is loaded
  • Database container (.dbc) stored procedures and .cdx index files are separate from table data

Frequently Asked Questions

Are my confidential ERP or customer DBF tables uploaded anywhere?

Never. FileRepair reads and converts your .dbf file 100% locally inside your browser tab with zero network uploads.

Can I save the repaired file back as a .dbf for my legacy ERP or QGIS?

Yes! The primary "Save .dbf" button outputs a genuinely rebuilt, compacted .dbf with a corrected 32-bit record count and 0x1A EOF marker. You can also export CSV, JSON, or SQL with one click.

Related File Tools