Database Tools

Convert Excel to DBF

Open an Excel or CSV file, check the fields the tool proposes (name, type, length and decimals) and download a DBF ready for dBase, FoxPro, Visual FoxPro, Clipper or a shapefile. Your data stays on your device.

No file at hand?

How to convert Excel to DBF

  1. Open your Excel or CSV file. The first row must hold the column names.
  2. Choose the DBF type and code page your program expects, then check the proposed fields: rename them, change types or lengths, or untick columns you do not need.
  3. Download the DBF, or a ZIP with the .dbf and its memo or .cpg file.

DBF field types

TypeHoldsSizeProposed for
C · CharacterText1 to 254Text columns and codes with leading zeros
N · NumericNumbers, with decimalsUp to 20 digitsNumber columns, sized to the largest value
D · DateDate (YYYYMMDD)8Excel dates and ISO dates
L · LogicalTrue / false1TRUE/FALSE and yes/no columns
M · MemoLong text in .fpt or .dbtAny lengthTexts over 254 characters
T · DateTimeDate and time (Visual FoxPro)8Dates with a time, in Visual FoxPro tables

Who still needs DBF files

Excel removed “Save as DBF” in Excel 2007, and LibreOffice can still save to DBF, but it decides the field types and widths for you. This converter shows you every field before writing it and warns you if any text was cut, any character did not exist in the code page or any value did not fit its type.

Limitations

Have a DBF to open? Use DBF to Excel or the DBF viewer.

Frequently asked questions

Is this Excel to DBF converter really free?

Yes. It is 100% free, with no usage limits, no account and no sign-up. There is no paid plan, no watermark, no row limit and nothing locked.

Is my spreadsheet uploaded to a server?

No. The file is opened and converted inside your browser, in a background worker, and never leaves your device. The page only downloads its own code from this site. If you accept analytics cookies, Google Analytics receives anonymous usage data such as page views, never your files, their names or their contents.

Which DBF type should I choose?

FoxPro 2.x is the most compatible choice: dBase, FoxPro, Visual FoxPro, Clipper, Harbour, LibreOffice and GIS programs all read it. Choose dBase III for very old programs, and Visual FoxPro if your application needs date-time fields or is written in VFP.

Which code page should I use?

Use the one your target program expects. Windows programs and Visual FoxPro usually use Windows-1252 (Western Europe and the Americas); MS-DOS and Clipper programs usually use DOS 850 or 437. For QGIS, ArcGIS and other modern tools, UTF-8 with a .cpg file is the safest choice.

How are field names created?

DBF field names have at most 10 characters, use only letters, digits and underscores, and start with a letter. Your column headers are converted automatically (accents removed, spaces replaced, duplicates numbered) and you can rename any field before downloading.

Will leading zeros in postal codes or IDs be kept?

Yes. A column like 00123 or 01001 is detected as text, so the zeros stay. Columns with only plain numbers become numeric fields with the width and decimals they need.

What happens with long texts?

Character fields hold up to 254 characters. Columns with longer texts become memo fields, stored in a companion .fpt (FoxPro) or .dbt (dBase) file; you then get a ZIP with both files, which must stay together.

Can I convert a CSV file to DBF?

Yes. CSV files with comma, semicolon, tab or pipe separators are detected automatically. Decimal commas such as 1520,50 are understood, and dates in ISO format (2024-03-15) become date fields.

Analytics: only if you accept cookies, the page loads Google Analytics (through Google Tag Manager) to count visits and see which tools are used. It never receives your files, their names or their contents. You can change your choice at any time with “Cookie settings” at the bottom of the page.