An MDF (Master Database File) file is the primary database file of Microsoft SQL Server with an extension .mdf, which contains the data as well as schema. We can create more than one data file with .mdf file extension for a database whether it does exist in a filegroup or by generating a new filegroup.
Database Files.
Hex: 01 0F 00 00, ASCII
The default location of .mdf file depends on its SQL Server version.
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\
C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\
C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\
C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\
C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\
C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\
The MDF can be opened using MS SQL server application. There are some free Tools that can be used to view mdf files.