MDF Database Creator
Design SQL Server tables, review their columns and startup rows, and create an MDF file on your device. Start with an empty table or enter seed values.
- Free
- Works Offline
- No Uploads
How to Create a SQL Server MDF File
- Open the HTML, review Security Check, then select Continue.
- Enter a table name and add its columns, or select Open Sample to load the empty Incident table.
- Choose SQL types and widths, mark columns Nullable as appropriate, and select any Primary Key columns in column order.
- Open Seed Rows to enter starting values if you need them. Select SQL NULL explicitly for missing values.
- Select Review Database, check the schema and seed values, confirm the mapping, then select Create MDF and Download.
- Attach a copy in SQL Server 2025 and verify the database before use.
MDF Database Creator Features
- Name dbo tables and configure scalar types, lengths, precision, scale, and nullability.
- Add an eligible nonclustered primary key and verify optional seed rows. Missing values can be entered explicitly as SQL NULL.
- Review the exact schema and row counts before downloading the new MDF.
Formats and Compatibility
| Input | Entered table and column definitions, optional nonclustered primary keys, and optional typed seed rows. |
|---|---|
| Output | One new SQL Server 2025 primary .mdf. Native attachment was tested with SQL Server 2025 LocalDB build 17.0.4025.3. |
| Browser | A modern browser with local file support. |
| Scope | Create up to 128 dbo tables with the supported scalar types and up to 60 MiB of typed seed data, subject to row width and key limits. |
| Operating Systems |
Local Processing Without Uploads
The browser-based designer uses local processing with no upload or account. Open Sample loads an empty Incident table with a primary key and a nullable description.
Select Open Sample to see the workflow with the included example.
Build a Database for Later Data Loads
This MDF generator can generate SQL Server MDF files with empty tables or initial rows. It supports selected scalar types and nonclustered primary keys. Foreign keys, defaults, views, triggers, and secondary indexes are outside its scope.
Attach and Check the New MDF
Download the primary MDF, attach a copy in a scratch SQL Server 2025 instance with log rebuilding, and run DBCC CHECKDB. Check your schema and record values before using the database.
Frequently Asked Questions
Can I create MDF without SQL Server installed?
Yes. The HTML creates the data file offline in a modern browser. Use SQL Server 2025 to attach and verify the downloaded copy.
How do I use Create MDF File offline?
Extract the Tool ZIP and open the standalone HTML. The local Create MDF File workflow runs on your device.
Where is the Create MDF File download?
Use Download Tool ZIP for free Create MDF File access. The offline package includes the HTML and instructions.
Can I use Create MDF File without uploading files?
Yes. Use Create MDF File in browser mode to enter definitions and optional seed values locally.
Can I create a table without rows?
Yes. Leave Seed Rows empty. The Incident sample defines an empty table with an int primary key and a nullable nvarchar description.
What does SQL NULL mean in Seed Rows?
SQL NULL stores a missing value when the column is nullable. A blank nvarchar field stores an empty string when SQL NULL is unchecked.
Which SQL Server release was tested?
Native verification used SQL Server 2025 LocalDB build 17.0.4025.3, including attach, schema and row queries, and DBCC CHECKDB.
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.