MDF to JSON
Use this local MDF to JSON converter to share just the SQL Server tables you select. The standalone HTML is free and works offline.
- Free
- Works Offline
- No Uploads
How to Convert MDF to JSON
- Open the HTML, review Security Check, then select Continue.
- Choose one SQL Server MDF and any required NDF files from the same snapshot, or select Open Sample.
- Select the tables you want to share and choose Indented or Compact JSON.
- Select Export JSON. After verification, choose Download or Save As when available.
Choose What Goes in the Export
- Export SQL Server MDF to JSON with only the tables you select.
- Inspect column names, SQL types, and catalog row counts before exporting.
- Choose Indented for reading or Compact for smaller JSON files.
Formats and Compatibility
| Input | A readable SQL Server MDF with required matching NDF companions. |
|---|---|
| Output | One UTF-8 .json file, with one array per selected qualified table. |
| Browser | A modern browser with local file support. |
| Scope | Verified with a SQL Server 2025 MDF and NDF fixture with ordinary disk-based tables. Layouts the reader cannot verify can be unavailable. JSON output is limited to 8 MiB. |
| Operating Systems |
Local Processing Without Uploads
The browser-based converter reads the database on your device with no upload. Use MDF to JSON without uploading files by opening the downloaded HTML.
Select Open Sample to see the workflow with the included example.
SQL Server Database Files
To convert MDF database to JSON, choose the primary .mdf and matching .ndf files for any secondary filegroups. Some storage layouts may be unavailable. Supply a clean database snapshot.
What the JSON Contains
Each qualified table name maps to an array of row objects. NULL becomes JSON null. Decimals and integers outside the safe JavaScript range are strings. Supported binary and varbinary values use standard Base64 strings. Open Sample lets you export Core.Orders and see the text reference 00073 alongside a JSON null.
Frequently Asked Questions
Can I use MDF to JSON offline?
Yes. Extract the MDF to JSON download and open MDFToJSON.html in a modern browser. The sample and reader are included.
Can I run MDF to JSON in browser without SQL Server?
Yes. This free MDF to JSON tool reads supported local data files without an installed SQL Server engine.
What happens when a table is unreadable?
The converter reports the table and withholds the output if it cannot verify the selected rows.
How large can the output be?
This tool builds the file in memory and limits it to 8 MiB of UTF-8 JSON. Select fewer tables or use a streaming converter for larger exports.
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.