|

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

QuestionAnswer
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 versionFile nameDefault folder
Windows 10Windows.edbC:\ProgramData\Microsoft\Search\Data\Applications\Windows
Windows 11Windows.dbC:\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.

  1. Windows now stores both file properties and the persistent indexes inside the one database file.
  2. 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.

  1. Open the folder shown above in File Explorer.
  2. Right-click Windows.edb (or Windows.db) and choose Properties.
  3. 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 itemsWhat Microsoft says
Under 30,000Typical user computer
Up to about 300,000Power user computer
Over 400,000Performance problems may begin and the database grows considerably
1 millionUpper 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.

  1. Open Settings > Privacy & security > Searching Windows.
  2. Under Find my files, choose Classic to index Documents, Pictures, Music and the desktop instead of the whole PC.
  3. Select Customize search locations, then Modify.
  4. 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.

  1. In the Indexing Options box, select Advanced and open the File Types tab.
  2. Pick a file type in the list.
  3. Under How should this file be indexed, choose Properties only.
  4. 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 versionPath to Rebuild
Windows 11Settings > Privacy & security > Searching Windows > Advanced indexing options > Advanced > Rebuild
Windows 10Settings > 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.

Sc config wsearch start=disabled
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.

Leave a Reply

Your email address will not be published. Required fields are marked *