Local StudioDATABASE TOOLS

MDF to CSV

Use this local MDF to CSV converter to share selected SQL Server tables. Open an MDF with its required NDF files, check the table counts, and download one UTF-8 CSV per selected table.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
MDF to CSV converter with the Atlas MDF and NDF loaded and Projects and WorkItems available for export.
The built-in Atlas sample lists 3 Projects and 600 WorkItems. Select the tables you want in the ZIP.

Export MDF to CSV

  1. Open the HTML, review Security Check, then select Continue.
  2. Choose one MDF and all required NDF files, or select Open Sample.
  3. Select the tables to export. Review CSV Options and use Inspect Columns to check the header and output filenames.
  4. Select Export CSV, then choose Download or Save As when available.

Choose Tables and CSV Options

  • Select one table, several, or all available tables. Review row counts, column counts, names, and types before export.
  • Choose comma, semicolon, or tab, CRLF or LF, and an optional UTF-8 marker. Every file has a header in the source column order.
  • Keep big integers and decimals exact in the CSV. Formula protection is on by default for text and headers.

Formats and Compatibility

InputOne local SQL Server .mdf file and all required matching .ndf files from the same snapshot.
OutputOne ZIP with a UTF-8 .csv per selected table. The default delimiter is comma. SQL NULL is an empty field.
BrowserA modern browser with local file support.
ScopeFor ordinary stored tables with supported scalar types. Requires a clean MDF snapshot and its matching NDFs, up to 2 GB combined. Binary fields, encrypted files, log replay, and special storage layouts are outside scope.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

Convert MDF to CSV without uploading files. This browser-based tool reads selected files on your device with no upload or account required. Open Sample uses the bundled Atlas MDF and NDF.

Select Open Sample to see the workflow with the included example.

SQL Server MDF and CSV

MDF stores a SQL Server database and can reference NDF files. A CSV stores the columns and values of a single table. To extract MDF table to CSV, select its name in the converter. The tool identifies missing companions and unsupported columns before export.

Open the Exported Tables

Extract the ZIP and import a CSV with the delimiter you chose. For example, selecting only dbo.WorkItems from Atlas produces dbo.WorkItems.csv with 600 data rows, including “Demo work item 575.” In a spreadsheet, import IDs and exact decimals as text to keep leading zeros and precision.

Frequently Asked Questions

Can I use MDF to CSV offline?

Yes. Use the MDF to CSV download above, extract the tool ZIP, and open MDFToCSV.html. The converter and sample are included in the HTML.

Can I convert MDF to CSV in browser?

Yes. Open the converter in a modern browser and choose the MDF and any matching NDFs. Select the tables you want to share.

Is there a free MDF to CSV converter?

Yes. The website tool and the downloadable HTML are free.

How does formula protection change my CSV?

It adds an apostrophe to formula-like text, including headers. Turn it off under CSV Options if you need the original text in a trusted import pipeline.

Do the CSV files preserve the database schema?

The export preserves ordered column names and supported values. Keys, relationships, and stored logic are outside the CSV format. SQL NULL and empty text both export as empty fields.

What if an NDF is missing or a column is unsupported?

Add the matching NDF listed in the source panel. Tables with unsupported columns are identified and stay unavailable for selection.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.