Windows Search query builder
Last updated: · built and maintained by the FileLocator team
File Explorer's search box understands a hidden query language — datemodified:today, *.pptx, size:large — but nobody remembers the exact spelling. Pick what you're looking for below and copy a query that works, along with the same search for Everything and PowerShell.
Ready-made queries
The searches people run most, ready to paste into File Explorer's search box. The Everything column is the same search in Everything, which answers instantly across every drive.
By file type and day
| What you want | File Explorer | Everything |
|---|---|---|
| Word files edited today | *.docx datemodified:today | ext:docx dm:today |
| Word files edited yesterday | *.docx datemodified:yesterday | ext:docx dm:yesterday |
| Word files edited this week | *.docx datemodified:this week | ext:docx dm:thisweek |
| Excel files edited today | *.xlsx datemodified:today | ext:xlsx dm:today |
| Excel files edited yesterday | *.xlsx datemodified:yesterday | ext:xlsx dm:yesterday |
| Excel files edited this week | *.xlsx datemodified:this week | ext:xlsx dm:thisweek |
| PowerPoint files edited today | *.pptx datemodified:today | ext:pptx dm:today |
| PowerPoint files edited yesterday | *.pptx datemodified:yesterday | ext:pptx dm:yesterday |
| PowerPoint files edited this week | *.pptx datemodified:this week | ext:pptx dm:thisweek |
| PDFs saved today | *.pdf datemodified:today | ext:pdf dm:today |
| PDFs saved yesterday | *.pdf datemodified:yesterday | ext:pdf dm:yesterday |
| PDFs saved this week | *.pdf datemodified:this week | ext:pdf dm:thisweek |
Any file, by date
| What you want | File Explorer | Everything |
|---|---|---|
| Anything changed today | datemodified:today | dm:today |
| Any document changed today | kind:document datemodified:today | ext:docx;xlsx;pptx;pdf;txt dm:today |
| Files created today (downloads, copies) | datecreated:today | dc:today |
| Files created yesterday | datecreated:yesterday | dc:yesterday |
| Changed last week | datemodified:last week | dm:lastweek |
| Changed this month | datemodified:this month | dm:thismonth |
| Changed on or after 30 August 2026 | datemodified:>=8/30/2026 | dm:>=2026-08-30 |
| Changed during August 2026 | datemodified:8/1/2026..8/31/2026 | dm:2026-08-01..2026-08-31 |
| Empty files changed this week | size:empty datemodified:this week | size:0 dm:thisweek |
| Big videos from this year | *.mp4 size:>500MB datemodified:this year | ext:mp4 size:>500mb dm:thisyear |
| Outlook emails saved today | *.msg datemodified:today | ext:msg dm:today |
Need something the tables don't cover? Use the builder above — every combination of date, type, size and text is supported.
What each operator does
datemodified:— when the file's contents were last saved. The one you want nine times out of ten.modified:works too.datecreated:— when this copy of the file arrived on this disk. Downloads and copied files show today's date here even if they were written years ago.dateaccessed:— when the file was last opened. Unreliable: Windows often skips updating it to save disk writes.*.pptx— a filename wildcard: any name ending in.pptx.ext:.pptxdoes the same job.kind:— a family of formats:kind:document,kind:picture,kind:video,kind:music. Handy when you don't know the exact extension.size:— either a named bucket (empty0 KB,tinyup to 16 KB,small16 KB–1 MB,medium1–128 MB,large128 MB–1 GB,huge1–4 GB,giganticover 4 GB) or a comparison likesize:>10MB.content:— words inside the file. Put phrases in quotes:content:"quarterly budget". Fast in indexed folders, slow everywhere else.>=,<and..— comparisons and ranges for dates and sizes:datemodified:>=8/30/2026,datemodified:8/1/2026..8/31/2026.
Separate operators with a space and Windows joins them with an implicit AND; order doesn't matter. For OR, NOT and the rest of the language, see our Windows Search syntax cheat sheet.
Why doesn't my query work?
- A space after the colon.
datemodified: todayis read as an empty filter plus the word "today". Writedatemodified:todaywith no gap. (The space insidethis weekis fine — it belongs to the value.) - The date is in the wrong order. Explorer reads typed dates using your Windows region setting.
8/30/2026works on a US PC; on a UK or European PC you need30/8/2026, and8/30/2026either fails or matches nothing. The builder's Your date order option switches between the two. - You're searching somewhere that isn't indexed. Outside indexed locations (by default your user folders), Explorer opens every file one by one, so a search of This PC or a network drive can crawl. Search the folder you actually saved into, add the location to the index, or use Everything — our slow search fixes cover the details.
- Windows isn't in English. On some non-English installations the operator names are localised, so the English keywords may not be recognised. If a query is ignored, build it with the Search options menu in Explorer once, then look at what Windows types into the box for you — that's the spelling your system expects.
yesterdaymeans the calendar day. It's not "the last 24 hours". A file saved before and after midnight only matchestoday. When in doubt, usethis weekand sort by date.
FAQ
How do I search for files modified today in File Explorer?
Click the search box in the top-right of any File Explorer window, type datemodified:today and press Enter. Add a file type to narrow it, for example *.docx datemodified:today or kind:document datemodified:today.
How do I find files created in the last hour?
File Explorer's typed dates only go down to whole days, so the closest it gets is datecreated:today sorted by Date created. For an exact one-hour window use PowerShell: Get-ChildItem -Recurse -File | Where-Object { $_.CreationTime -ge (Get-Date).AddHours(-1) }. Everything also accepts hour-based values, such as dc:last2hours.
What is the difference between datemodified and datecreated?
datemodified is when a file's contents were last saved. datecreated is when that copy of the file appeared on this disk, so a file you copied or downloaded today is created today even if it was last edited years ago. Use datecreated to find downloads and copies, datemodified to find files you worked on.
How do I search for files after a specific date?
Use a comparison operator: datemodified:>=8/30/2026 finds everything modified on or after 30 August 2026. Type the date in your Windows region's order, so on a UK or European PC it's datemodified:>=30/8/2026. For a range use two dots: datemodified:8/1/2026..8/31/2026.
How do I find empty files in Windows?
Type size:empty into the File Explorer search box. Combine it with a date to find recent zero-byte files, for example size:empty datemodified:this week. In Everything the equivalent is size:0.
Tired of waiting for Explorer?
We tested 10 search tools that find any file — by date, name or contents — in under a second.
keep exploring
Related reading
Find files modified today or yesterday
Every way to search by date on Windows, Mac and Linux — plus what to do when timestamps lie.
Windows Search syntax cheat sheet
The full operator list: AND, OR, NOT, wildcards, kind:, size: and more, with examples.
Everything review
The free tool that runs the Everything queries above instantly across every drive.