What Is Windows.edb And Why Is It So Big (2026)
Windows.edb is the database file that holds your Windows Search index.
It can grow to many gigabytes, and that is normal behavior rather than a virus.
This guide explains what the file does, how to read its real size, and how to shrink it using Microsoft’s own steps.
Table of Contents
- Quick answer
- What the Windows.edb file is
- Where the file is stored
- Why the file gets so big
- How to check the real size
- How many indexed items are too many
- Shrink it by indexing less
- Index file names only for some file types
- Rebuild the index after changing settings
- Compact the database with an offline defrag
- Outlook mail and PST files
- Can you delete Windows.edb
- Keep free space for the indexer
- If search is still slow or high on CPU
- Sources
- More Windows guides
Quick answer
| Question | Answer |
|---|---|
| What is it? | The Windows Search index database, used to return search results fast |
| Where is it? | C:\ProgramData\Microsoft\Search\Data\Applications\Windows |
| Why is it big? | It stores file properties, indexes and the contents of your files |
| Can I delete it? | Rebuild the index instead of deleting the file by hand |
| How do I shrink it? | Index fewer locations, rebuild, then run an offline defrag |
What the Windows.edb file is
Windows.edb is the database behind Windows Search.
The Windows Search service reads your files and records their names, properties and text so a search can answer in a moment instead of scanning the whole drive.
Microsoft says the index is stored locally on your PC and that apps you install may be able to read it.
Where the file is stored
By default the index database sits in the ProgramData folder on your system drive.
| Windows version | File name | Default folder |
|---|---|---|
| Windows 10 | Windows.edb | C:\ProgramData\Microsoft\Search\Data\Applications\Windows |
| Windows 11 | Windows.db | C:\ProgramData\Microsoft\Search\Data\Applications\Windows |
ProgramData is a hidden folder, so turn on hidden items in File Explorer if you cannot see it.
If you are on Windows 11 and cannot find Windows.edb, look for Windows.db in the same folder.
Why the file gets so big
Microsoft gives two reasons the file is larger on Windows 8 and later than it was on Windows 7.
- Windows now stores both file properties and the persistent indexes inside the one database file.
- Windows indexes the whole contents of files, whatever their size.
Microsoft states that neither behavior can be configured on those versions.
Microsoft also says the index is generally about 10 percent of the size of the content it covers.
Many very small files, under 4 KB, or indexed code can push the size well above that.
How to check the real size
Do not trust the Size value in File Explorer.
Microsoft explains the indexer compresses sparse database files, so Size can be inaccurate and may include space used in the past.
- Open the folder shown above in File Explorer.
- Right-click Windows.edb (or Windows.db) and choose Properties.
- Read the Size on disk value.
That number is the disk space the database actually uses.
How many indexed items are too many
The number of indexed items matters more than the number of gigabytes.
On Windows 11, open Settings > Privacy & security > Searching Windows and read the Indexed count.
On Windows 10, open Settings > Search > Searching Windows and read Indexed Items.
| Indexed items | What Microsoft says |
|---|---|
| Under 30,000 | Typical user computer |
| Up to about 300,000 | Power user computer |
| Over 400,000 | Performance problems may begin and the database grows considerably |
| 1 million | Upper limit; beyond it the indexer may fail or use high CPU, memory or disk |
Shrink it by indexing less
Microsoft says the only way to reduce the disk space is to index less content.
- Open Settings > Privacy & security > Searching Windows.
- Under Find my files, choose Classic to index Documents, Pictures, Music and the desktop instead of the whole PC.
- Select Customize search locations, then Modify.
- Clear the locations you do not need searched.
You can also choose Add an excluded folder on the same page to leave out a whole folder.
Microsoft suggests excluding folders that hold many small files.
Index file names only for some file types
You can stop the indexer from reading the text inside certain file types.
- In the Indexing Options box, select Advanced and open the File Types tab.
- Pick a file type in the list.
- Under How should this file be indexed, choose Properties only.
- Select OK, then Close.
Searches will still match file names for that type, but not the words inside the files.
Rebuild the index after changing settings
Changes only take full effect once the index is rebuilt.
| Windows version | Path to Rebuild |
|---|---|
| Windows 11 | Settings > Privacy & security > Searching Windows > Advanced indexing options > Advanced > Rebuild |
| Windows 10 | Settings > Search > Searching Windows > Advanced Search Indexer Settings > Advanced > Rebuild |
Microsoft says a rebuild can take up to 24 hours.
Searches may show incomplete results while it runs, so leave the PC on and plugged in.
Compact the database with an offline defrag
An offline defrag reclaims empty space inside the file.
Microsoft lists these commands for an administrator Command Prompt, run in this order.
Net stop wsearch
EsentUtl.exe /d %AllUsersProfile%\Microsoft\Search\Data\Applications\Windows\Windows.edb
Sc config wsearch start=delayed-auto
Net start wsearch
The first two commands stop the Windows Search service so the file is not in use.
The last two put the service back to delayed automatic start and run it again.
If sc rejects a line, add a space after the equals sign, because Microsoft’s article prints it without one.
Microsoft’s defrag steps name Windows.edb, so they are written for Windows 10; Microsoft does not list a separate Windows 11 version.
Outlook mail and PST files
Large mail stores are a common reason the file balloons.
Microsoft documents that indexing a PST file makes Windows.edb grow in proportion to the size of that PST.
It recommends having Outlook cache less mail locally, and it notes that the default Outlook sync window is one year.
A shorter sync window means fewer indexed messages and a smaller database.
Can you delete Windows.edb
Do not delete the file by hand as your first step.
Rebuilding the index from Settings is the supported way to start the database over.
Microsoft reserves clearing the contents of C:\ProgramData\Microsoft\Search\Data for a corrupted index, where the Windows Search page is greyed out, and pairs it with refreshing the operating system.
Keep free space for the indexer
The indexer needs room to work.
Microsoft says to keep more than 1 GB free, and the message Insufficient disk space to continue indexing tells you when it is short.
If your drive is nearly full, free space first, then rebuild.
You can also check and repair drive errors if index maintenance keeps failing.
If search is still slow or high on CPU
A big index can keep SearchIndexer.exe busy for hours after a rebuild.
Our guide to SearchIndexer.exe high CPU or disk usage covers that process.
If results are missing, see Windows Search not working in Windows 11.
To cut background load further, you can disable startup apps.
Sources
Steps and figures come from Microsoft: Windows.edb becomes larger than expected, Troubleshoot Windows Search performance and Search indexing in Windows.
More Windows guides
- How To Uninstall ESET From Windows Step By Step (2026)
- How To Uninstall Kaspersky Completely From Windows (2026)
- Local Security Authority Protection Is Off In Windows 11 (2026)
- How To Use Ping And Tracert In Windows 11 (2026)
- How To Change UAC Settings In Windows 11 (2026)
- How To Rip A CD To Your PC In Windows 11 (2026)
See all: Windows 11 Guides