A .bak file is a backup copy of another file, usually created automatically by a program when you open or edit the original
When you open a document in certain programs — Microsoft Word, text editors, configuration utilities — the program often creates a hidden copy with a .bak extension before you make any changes. If something goes wrong while you're editing, or if you save over your work by accident, that .bak file sits there as a safety net. You can rename it back to the original file type and recover what you had.
The .bak extension is just a naming convention. A file called report.docx.bak is actually a Word document; a file called config.ini.bak is a configuration file. The .bak part tells you it's a backup, not that it's a different kind of file. Different programs handle .bak files differently — some create them automatically, some only when you ask, and some don't use them at all.
Key Takeaways
- .bak files are automatic backups created by programs before you edit or save a file, letting you recover the previous version if something goes wrong.
- The .bak extension is just a label; the file underneath is still a Word document, spreadsheet, or whatever the original was.
- You can rename a .bak file back to its original name and extension to use it, but most programs do this for you through an undo or revert function.
- Older programs create .bak files more often than modern ones, which tend to use cloud storage or built-in version history instead.
- Deleting .bak files frees up disk space and won't harm your current work, but you lose the ability to recover the previous version if you need it later.
When and why programs create .bak files
A .bak file is created as a safety measure. When you open a file in a program like Notepad++, Sublime Text, or older versions of Microsoft Office, the program makes a copy of the original before you change anything. If your computer crashes, the power goes out, or you close the file without saving, that .bak copy preserves the last saved state.
Some programs create a .bak file every time you save, storing the version from before your most recent edit. Others create one only when you first open the file. A few programs let you choose in their settings whether to create backups at all. The behavior depends entirely on how the program was designed.
Older software relies on .bak files more heavily because they were written before cloud storage and automatic version history became standard. Modern programs like Google Docs or Microsoft 365 keep multiple versions on their servers automatically, so they have less need for a .bak file sitting on your computer.
How to recover a file from a .bak backup
The simplest way to recover from a .bak file is to use the program's built-in undo or revert function. In Microsoft Word, go to File > Info > Version History to see previous saves. In most text editors, Edit > Undo will step backward through your changes. These functions work without you ever touching the .bak file directly.
If you need to manually restore from a .bak file, the process is straightforward. Find the .bak file on your computer — it will be in the same folder as the original file, though it may be hidden. Right-click it, select Rename, and change the extension from .bak back to the original (for example, change letter.docx.bak to letter.docx). You now have a usable copy of the file as it was when the backup was made.
Keep in mind that restoring from a .bak file means losing any work you did after that backup was created. If you saved your document five times after the backup was made, restoring it will erase those five saves. Use this method only when you've made changes you want to undo and the undo history won't go back far enough.
Finding .bak files on your computer
.bak files are often hidden by default, so you may not see them in your file browser even though they exist. On Windows, open File Explorer, go to View, and check the box for "Hidden items" to show them. On Mac, open Finder, press Command + Shift + Period to toggle hidden files on and off.
Once you can see hidden files, .bak files appear in the same folder as the original file they back up. If you edited a document called budget.xlsx in your Documents folder, look for budget.xlsx.bak in that same Documents folder. You can also search your entire computer for "*.bak" to find all backup files at once.
Some programs store .bak files in a dedicated backup folder rather than next to the original. Check your program's settings or documentation if you can't find the backup where you expect it.
Whether to keep or delete .bak files
Keeping .bak files takes up disk space, but usually not much. A single .bak file is the same size as the original file, so if you have a 5 MB Word document, its .bak backup is also 5 MB. If you have hundreds of documents, the backups can add up, but on modern computers with terabytes of storage, this is rarely a real problem.
Delete .bak files if you want to free up space and you're confident you won't need to recover an older version of your work. Deleting them won't affect your current files or cause any problems — the .bak file is separate from the working file. Once it's gone, you lose the ability to revert to that previous version, so only delete them if you're sure you don't need them.
A practical middle ground is to delete old .bak files periodically — say, once a year — while keeping recent ones. This gives you a safety net for recent mistakes without letting backups pile up indefinitely.
The difference between .bak files and other backup methods
.bak files are a single previous version, created by the program itself. They're different from cloud backups (like OneDrive or Google Drive), which store multiple versions over time and sync across devices. They're also different from system backups (like Windows Backup or Time Machine on Mac), which copy your entire computer or hard drive at scheduled intervals.
A .bak file is useful for recovering from a recent mistake in a single document. A cloud backup is useful for accessing your files from anywhere and recovering from accidental deletion days or weeks later. A system backup is useful for recovering from a hard drive failure or major software problem. All three serve different purposes, and having all three is better than relying on any one.
Modern programs increasingly skip .bak files altogether and rely on cloud storage or built-in version history. If you use Microsoft 365, Google Workspace, or similar cloud-based tools, you get automatic version history without needing .bak files. If you use older software or work with local files, .bak files remain a useful safety feature.
Frequently Asked Questions
Can I delete a .bak file without hurting my current document?
Yes. The .bak file is a separate backup; deleting it does not affect your working document at all. You only lose the ability to revert to the version that was backed up. Your current file remains unchanged.
Why does my program create so many .bak files?
Some programs create a new .bak file every time you save, overwriting the previous one. Others create one .bak per document and keep it updated. Check your program's settings or documentation to see if you can change how often backups are created or where they're stored.
Is a .bak file the same as a .tmp file?
.bak and .tmp files serve different purposes. A .bak file is a deliberate backup of a previous version. A .tmp (temporary) file is a working copy the program uses while you're editing, and it's usually deleted when you close the program. .tmp files are not meant to be kept.
What if I can't find the .bak file I need?
Check that hidden files are visible on your computer — .bak files are often hidden by default. Also check your program's settings to see if it stores backups in a custom folder. If the file is truly gone, try using your system backup or cloud storage if you have them set up.
Do I need .bak files if I use cloud storage?
Not necessarily. Cloud services like OneDrive, Google Drive, and Dropbox keep version history automatically, so .bak files are redundant. However, having both doesn't hurt, and .bak files can be useful if you're offline or working with files that aren't synced to the cloud.