Home › Developer Tools › DBF File Viewer

DBF File Viewer

Open a .dbf table from dBase, FoxPro, Clipper or a shapefile and see every record in a sortable, searchable grid. Pick the right text encoding, view field types and memo text, then export the rows to CSV, Excel XLSX or JSON. Files are read in your browser and never uploaded.

Last updated:

Advertisement
Advertisement

How to use the DBF File Viewer

  1. Open the .dbf file by dropping it on the box or clicking to choose. Select the .dbt/.fpt memo file and .cpg file at the same time if you have them. A sample table is shown on load.
  2. Check the text: if accented letters look wrong, choose another encoding in the Text encoding menu.
  3. Find records by typing in the search box, optionally limited to one field, and click column headers to sort.
  4. Look at the structure on the Fields tab to see each field's type and size.
  5. Export the rows you see (after filtering and sorting) as CSV, XLSX or JSON.

DBF field types

Each field has a one-letter type code in the header. These are the codes this viewer understands and how they are shown and exported.

CodeTypeStored asShown as
CCharacterFixed-width text padded with spaces (up to 254 bytes, longer in Clipper and FoxPro)Text with trailing spaces removed
N / FNumeric / FloatNumber written as text with a fixed number of decimalsNumber with the field's decimals
DDate8 characters YYYYMMDDYYYY-MM-DD (a real date in XLSX)
LLogicalOne character: T/Y, F/N or ? for unknownTrue, False or empty
M, G, B, WMemo, general, binary, blobBlock number pointing into the .dbt or .fpt fileMemo text, or a placeholder without the memo file
IInteger4-byte binary integer (Visual FoxPro, dBase 7)Whole number
YCurrency8-byte integer scaled by 10,000 (Visual FoxPro)Number with 4 decimals
B / ODouble8-byte floating point (Visual FoxPro B, dBase 7 O)Number
TDateTimeJulian day number plus milliseconds since midnightYYYY-MM-DD HH:MM:SS

Files that come with a DBF table

  • .dbt or .fpt: memo text for dBase or FoxPro tables. Keep the same file name as the .dbf.
  • .cpg: a one-line text file naming the code page, such as UTF-8 or 1252. Common next to shapefile tables.
  • .ndx, .mdx, .cdx, .ntx: index files. They speed up searches in the original program and are not needed to view the data.
  • .shp, .shx, .prj: geometry, shape index and projection of a shapefile. The attribute data is only in the .dbf.

Tips

  • Sort a column, search, then export: the CSV, XLSX and JSON exports contain exactly the rows currently listed, in the same order.
  • CSV exports are UTF-8 with a byte order mark, so Excel opens accented text correctly.
  • Numbers that look cut off (shown as asterisks in other programs) were too wide for their field when the file was written; they are left empty here.

Frequently asked questions

What is a DBF file?

DBF is the table format of dBase, introduced in the early 1980s and later used by FoxPro, Clipper and many business programs. Each file holds one table: a header that defines the fields (name, type, length) followed by fixed-length records. It is still widely used as the attribute table of Esri shapefiles and in older accounting and inventory systems.

How do I open the attribute table of a shapefile?

A shapefile is a set of files with the same name. Open the .dbf file from that set (and the .cpg file if present, which states the encoding). The .shp and .shx files hold geometry and are not needed to read the attributes.

Why do some characters look wrong?

Older DBF files store text in a legacy code page such as DOS 437/850 or Windows-1252/1251 rather than UTF-8. The viewer reads the code page mark in the header or the .cpg file, and otherwise tests whether the text is valid UTF-8. If letters still look garbled, pick the correct encoding from the menu; the table is decoded again instantly.

Why do memo fields show [memo #12]?

Memo, general and blob fields keep only a block number in the .dbf file; the text itself is stored in a separate .dbt (dBase) or .fpt (FoxPro) file. Open that file together with the .dbf to see the memo text.

What are deleted records?

dBase does not remove a deleted row right away; it marks it with an asterisk until the table is packed. These rows are hidden by default. Tick Show deleted records to see them crossed out, for example to recover data.

Is my data uploaded?

No. The file is parsed by JavaScript in your browser and stays on your device. CSV and JSON exports are created locally; XLSX export loads the small open-source JSZip library from a public CDN to build the spreadsheet.

How large a file can I open?

Files up to 400 MB can be opened, depending on your device's memory. Records are read in batches with progress shown, and the table displays one page at a time so scrolling stays smooth.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.Excel Viewer (XLSX / XLS)Open XLSX, XLS and ODS spreadsheets in your browser without Excel.SQLite ViewerOpen .db and .sqlite files in your browser, browse tables and run SQL queries.GeoJSON ViewerView GeoJSON on a map, inspect and edit properties, validate against RFC 7946 and export.Online Python CompilerRun Python 3 in your browser with input(), numpy, pandas, charts and share links.JSON EditorEdit JSON in a tree and as code side by side: add, rename, drag, change types, undo and download.Unzip FilesOpen and extract ZIP files online.RAR & 7z ExtractorOpen RAR, 7z and other archives online and extract files.Regex TesterTest and debug regular expressions live.File Info ViewerCheck file size, type, date and MD5/SHA hashes.DOCX ViewerOpen and read Word .docx files in your browser, then print or save them as HTML.EPUB ReaderOpen and read EPUB e-books in your browser with pages, a table of contents and font controls.What Is My BrowserSee your browser, version, OS, engine, screen and which web features it supports.Font ViewerPreview TTF, OTF, WOFF and WOFF2 fonts with sample text, waterfall, glyphs and metadata.Markdown EditorWrite Markdown with a toolbar, live split preview, autosave and .md or HTML export.Regex Cheat Sheet75+ ready-to-use regex patterns for emails, URLs, IPs and dates, each with a live test box.JavaScript Keycode FinderPress any key to see its JavaScript key, code, keyCode, which, location and modifiers.QR Code ScannerScan QR codes with your camera or from an image and safely read the link or text.RAID CalculatorUsable capacity, efficiency and fault tolerance for RAID 0, 1, 5, 6, 10, 50 and 60 arrays.JSONPath TesterTest JSONPath expressions live: filters, slices, wildcards and recursive search, with matches highlighted.Mermaid Diagram EditorWrite Mermaid code and see flowcharts, sequence, Gantt and ER diagrams live. Export SVG or PNG.Country Codes ListSearch ISO 3166 alpha-2, alpha-3 and numeric country codes with calling codes and TLDs.CSS Selector TesterTest CSS selectors on your HTML: highlighted matches, match count and specificity.Git Cheat SheetSearchable Git command reference by task, with copy buttons and an undo/rename/fix wizard.HAR File ViewerOpen a .har file to see a waterfall timeline, headers, bodies, timings and size totals.jq PlaygroundRun jq filters on JSON in your browser with live output, flags and an example library.Markdown Cheat SheetInteractive Markdown syntax reference: edit every example and see the live rendered preview.Regex ExplainerPaste a regular expression and get a plain-English breakdown, railroad diagram and flag notes.XPath TesterTest XPath expressions on XML or HTML: highlighted matches, node paths, values and examples.EML File ViewerOpen .eml email files to read the message, headers and raw source and save attachments.Graphviz Online ViewerWrite Graphviz DOT code and render graphs live; switch layout engines, export SVG or PNG.JavaScript Online CompilerWrite and run JavaScript in your browser with a console, timing, error lines and share links.Jupyter Notebook ViewerOpen .ipynb files and read code, Markdown, math, tables, plots and errors without Python.LaTeX Table GeneratorEdit a table like a spreadsheet or paste from Excel and get LaTeX tabular or booktabs code.Log File ViewerOpen huge log files with level colors, regex and time filters, JSON pretty-print and tail -f.Logic Gate SimulatorBuild logic circuits with AND, OR, NOT, XOR gates and flip-flops; see live outputs and truth tables.MSG File ViewerOpen Outlook .msg emails in your browser: sender, recipients, body, headers and attachments.Online Code EditorVS Code-style editor in your browser: tabs, 50+ languages, find/replace, autosave.JMESPath TesterEvaluate JMESPath expressions against JSON live, the query language used by the AWS CLI.MongoDB Query TesterTest MongoDB find filters, projections and aggregation pipelines on sample JSON documents.Semantic Version CalculatorBump, compare, sort and test SemVer versions against npm ^, ~ and x ranges.XSLT TesterRun an XSLT 1.0 stylesheet on XML in your browser and see the output as HTML, XML or text.ASCII Diagram EditorDraw boxes, arrows and text on a character grid and copy plain-text diagrams for code and READMEs.MBOX File ViewerOpen .mbox mail archives: list and search messages, read them, save attachments, export EML.MDB File ViewerOpen Access .mdb and .accdb databases in your browser: list tables, view rows, export CSV.Shapefile ViewerView zipped shapefiles on a map with the attribute table, then export to GeoJSON or CSV.Online Hex EditorOpen any file as hex and ASCII, edit bytes, search, inspect values and save the result.PHP Online CompilerRun PHP 8 code in your browser with output, HTML preview, error lines and share links.PlantUML EditorWrite PlantUML and see sequence, class, activity and more diagrams live. Export SVG or PNG.Sorting Algorithm VisualizerWatch bubble, insertion, merge, quick, heap and radix sort step by step with live counters.Lottie ViewerOpen Lottie JSON or .lottie files to play, pause, scrub frames, change speed and see details.Diff ViewerPaste a git diff or .patch file and view it side by side or inline, with file navigation.EditorConfig GeneratorBuild an .editorconfig with indent, charset, line endings and trim rules per file pattern.Folder Compare ToolCompare two folders by file list, size and SHA-256 hash, then open a text diff of changed files.Glob Pattern TesterTest glob patterns like **/*.js, {a,b} and !exclusions against a list of file paths.
See all 53 Code Playgrounds & Testers →