.BAK

BAK File

Backup File (generic)
Ask a question
QUICK ANSWER

A BAK file is a backup copy saved by an application before overwriting the original. It has no format of its own; the content inside is whatever the original file was (a CAD drawing, a database, a text document). To use one, find which program created it and either restore it through that program or rename the extension back to the original (drawing.bak to drawing.dwg).

Developer: N/A (generic; written by countless programs - AutoCAD, SQL Server, editors, etc.) Category: Backup Files MIME: application/octet-stream
OPENS ON Windows macOS Linux
Related: .BUP · .SKB · .SET · .BAK~

On this page

19k+ extensions indexed
Last reviewed Jul 10, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the BAK file format?

Files with the .bak extension are generated by various programs and used to store different types of backup copies. Backup copies are created, for example, when a document edited by a user is saved - the original version is preserved under the same base name with .bak added or substituted for the original extension.

Applications such as Microsoft SQL Server use .bak files to store backup copies of their databases. Backup copies are usually not deleted automatically; therefore, in case of data loss, the data can often be retrieved. Since various programs use .bak files to store different types of data, it is not possible to point to a single application that can open every .bak file. The internal structure depends entirely on the program that created the backup: an AutoCAD .bak is a valid DWG drawing that begins with an AC10xx header, while a SQL Server .bak contains an MTF stream. The most reliable approach is to identify what software created the file, rename it back to its original extension, and open it normally. Alternatives to the .bak convention include the .OLD and .ORIG extensions.

Frequently encountered .bak files

One of the applications using the .bak extension is the popular web browser Mozilla Firefox. The browser keeps automatic backup copies of its bookmark database in the bookmarkbackups folder inside the user profile. On Windows 10 and 11 this folder is typically located at C:\Users\<User>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile>\bookmarkbackups\. Older Firefox versions wrote a single file called bookmarks.bak; current releases write dated snapshots instead. Copying the relevant backup file back into the profile directory makes it possible to restore bookmarks after accidental deletion.

Security & safety

RISK: LOW

A .bak is just a copy, so it's only as risky as the file it duplicates: a .bak of a clean document is harmless, a .bak of a malicious executable or macro-laden document carries the same risk as the original. Don't blindly delete .bak files until you've confirmed the working file is intact - they're often your only recovery copy. When recovering from one, scan it if its origin is uncertain, and never run a .bak you rename to .exe/.dll without verifying its source.

Format details

in a nutshell
FULL NAMEBackup File (generic)
DEVELOPERN/A (generic; written by countless programs - AutoCAD, SQL Server, editors, etc.)since Convention predates Windows; used since early PC software to keep a previous version
CATEGORYBackup Files
MIME TYPEapplication/octet-stream
TYPENot a format: a copy of another file, kept as a fallback. Its real type is whatever the original file was.

Programs that open BAK files

Windows5 apps
AutoCAD Paid CAD case: rename drawing.bak to drawing.dwg and open it to recover the previous drawing version.
7-Zip Open-source Inspect an unknown .bak: try opening it as an archive, or check its first bytes to identify the underlying format.
Original program (rename-back trick) Built-in Copy the .bak, rename the copy's extension to the original's (e.g. .dwg/.txt/.docx), then open it in the program that made it.
SQL Server Management Studio (SSMS) Free Database case: Databases → Restore Database → Device → select the .bak to restore (RESTORE DATABASE).
Notepad / any text editor Open-source If the original was text/config, open the .bak directly to read or copy out its contents.
macOS2 apps
TextEdit Built-in Text-based .bak: open as plain text to recover contents.
Original program (rename-back trick) Built-in Duplicate the .bak, change the extension back to the original type, and open it in the app that created it.
Linux2 apps
Original program (rename-back trick) Built-in cp file.bak file.<orig-ext> and open in the matching application.
file + a text editor Built-in Run file something.bak to detect the real type, then open with the right tool.

Technical details

deep spec
MIME typeapplication/octet-stream - no dedicated MIME type exists; .bak is treated as arbitrary binary data
File signature (magic bytes)None - .bak has no signature of its own. The opening bytes are those of the original file (e.g., AutoCAD .bak starts with AC10xx; SQL Server .bak starts with TAPE/MTF structures; a text editor's .bak is plain text)
Underlying structureInherits the structure of the original file - may be binary, plain text, XML, or compressed depending on which program created the backup
Naming conventionSame base name as the original with .bak appended or substituted for the original extension (e.g., drawing.dwg → drawing.bak, or document.docx.bak)
PurposeAutomatic fallback copy created before a file is overwritten or modified, allowing recovery of the previous state without user intervention
Retention behaviourTypically kept on disk until manually deleted; most programs overwrite the existing .bak on the next save, retaining only the single most recent previous version
AutoCAD .bak specificsA renamed copy of the last saved .dwg file; begins with the standard DWG AC10xx header and can be restored by renaming the extension back to .dwg
SQL Server .bak specificsUses Microsoft Tape Format (MTF); can contain full, differential, or transaction-log backups; restorable only via SQL Server or SSMS RESTORE DATABASE commands
CompressionNot inherently compressed; SQL Server backups support optional built-in compression; most other .bak files are verbatim uncompressed copies of the original
Identification methodUse the file command on Linux/macOS or a hex editor on any platform to inspect the header bytes and determine the underlying file type before renaming
Recovery methodRename the file by removing .bak and restoring the original extension (e.g., rename report.bak to report.docx), then open with the appropriate program
Platform scopeCross-platform convention used on Windows, macOS, Linux, and legacy DOS/OS2 environments - no single OS owns the practice
Firefox bookmark backupsThe bookmarkbackups folder inside the Firefox profile holds dated .jsonlz4 snapshots; older Firefox versions used a single bookmarks.bak file for this purpose
Related fallback-copy extensions.old, .orig, .tmp, and the ~ (tilde) suffix convention serve the same fallback-copy role across various platforms and editors
ReleasedConvention predates Windows; used since early PC software to keep a previous version

BAK conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with BAK files. Be specific - include your system and software version.
No account needed · answers usually within a day
I
irene29 d agoUNANSWERED
tenho o windows 10 como abrir esse program bak k
Waiting for an answer

Frequently asked questions

How do I open a BAK file?
Find out which program made it, then either restore it in that program (e.g. SQL Server, AutoCAD) or use the rename-back trick: copy the .bak and change the extension to the original's (.dwg, .txt, .docx…), then open it normally.
What program opens a BAK file?
There's no single one - .bak has no format of its own. The program that created it does: AutoCAD for drawing backups, SQL Server (SSMS) for database backups, a text editor for config/text backups, and so on.
Can I delete BAK files?
Usually yes, once you've confirmed the original working file is fine - they're just safety copies. Keep them if the original is missing or corrupted, since the .bak may be your only way to recover it.
How do I restore a SQL Server BAK file?
In SQL Server Management Studio: right-click Databases → Restore Database → Device → add the .bak file → restore. You can't open a SQL .bak by hand; it must be restored to a server.
How do I recover an AutoCAD drawing from a BAK file?
Make a copy of the .bak and rename its extension to .dwg, then open it in AutoCAD. The .bak is the previous saved version of the drawing.
Is it safe to change .bak to the original extension?
Yes - copy the file first (so you keep the .bak), then rename the copy's extension. Because a .bak is usually a byte-for-byte copy, renaming makes it openable again in the right program.

References

1Microsoft - Restore a database backup using SSMSlearn.microsoft.com
2Autodesk - Recover a drawing from a .bak filewww.autodesk.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.DATProgram Data File (generic)
6.M4AMPEG-4 Audio File
7.MDMarkdown Document
8.TMPTemporary File
9.BINCD/DVD Disc Image (BIN/CUE)
10.ICSiCalendar data file

Related extensions

.BUPDVD IFO Backup File
.SKBSketchUp Backup File
.SETMicrosoft Backup File Set
.BAK~AbiWord auto-saved document file
.BACKUPBackup File (generic)
.ASDMicrosoft Word AutoRecover Document

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z