DuckDuckGo search operators: full list, filters and examples

DuckDuckGo supports ten search operators: plain terms, "exact phrase", the experimental ~"phrase" for close variants, -term and +term to lower or raise a word's weight, filetype:, site:, -site:, intitle: and inurl:. You type them straight into the search box. Date, region, safe search and AI image filters are not operators; you set them in the menus below the search box or in Search Settings.
This guide lists every operator with an example, explains how reliable each one is, and covers the search filters, !bangs and URL parameters that fill the gaps the operators leave.
DuckDuckGo search operators list
DuckDuckGo's advanced search syntax consists of the operators below, as listed on the official DuckDuckGo search syntax help page. They are part of the query itself, so they work wherever a search is sent to DuckDuckGo, including the address bar of a browser that uses it as the default engine.
| Operator | Example | What it returns |
|---|---|---|
| Plain terms | cats dogs | Results about cats or dogs |
| Exact phrase | "cats and dogs" | Results for the exact phrase; related results if few or none match |
| Similar phrase (experimental) | ~"cats and dogs" | Semantically similar matches such as "cats & dogs" or "dogs and cats" |
| Minus | cats -dogs | Fewer results about dogs |
| Plus | cats +dogs | More results about dogs |
| filetype: | cats filetype:pdf | PDF documents about cats |
| site: | dogs site:example.com | Pages about dogs from example.com only |
| -site: | cats -site:example.com | Pages about cats, excluding example.com |
| intitle: | intitle:dogs | Pages with "dogs" in the title |
| inurl: | inurl:cats | Pages with "cats" in the URL |
Note the wording DuckDuckGo uses for the minus and plus operators: "fewer" and "more". They change the weight of a term rather than acting as a strict exclude or require switch, so an occasional result that still mentions the excluded word is expected behavior, not a bug.
How to use site: and -site: on DuckDuckGo
The site: operator limits DuckDuckGo results to one domain, and -site: removes one domain from the results. They are the most dependable DuckDuckGo search operators and the ones most people need day to day.
- site:ghacks.net firefox returns Firefox articles from ghacks.net only.
- firefox -site:ghacks.net returns Firefox results from everywhere except ghacks.net.
- site:github.com "release notes" filetype:html combines the domain filter with a phrase and a file type.
If you want a domain gone from every search instead of one, DuckDuckGo has a built-in block list. Click the three-dot menu next to a result from that site and select "Block this site from all results". DuckDuckGo's help page on blocking sites says you can block up to five domains and manage the list in Search Settings. A "Show all results" option at the top of the results page brings blocked sites back temporarily.
For more than five domains, -site: in the query is the only built-in route, so frequent users often keep a saved search or a browser keyword with their exclusions already typed in.
filetype:, intitle: and inurl: on DuckDuckGo
The filetype: operator restricts DuckDuckGo results to one document format, and DuckDuckGo supports five types: pdf, doc(x), xls(x), ppt(x) and html. Searches such as tax form filetype:pdf or budget template filetype:xlsx work; other extensions, for example epub or txt, are not on the supported list.
The intitle: and inurl: operators match a word in the page title or in the URL. They are useful for finding official documentation (intitle:changelog vlc), download pages (inurl:download 7-zip) or forum threads (inurl:forum windows 11 update error). Put the word directly after the colon with no space.

When an operator is recognized, DuckDuckGo has shown a short note about it at the top of the organic results, as in the screenshot above. That note is the quickest way to confirm that the engine actually read your syntax.
Do DuckDuckGo search operators still work?
Yes, DuckDuckGo search operators still work, but DuckDuckGo itself says that some of its advanced syntax "isn't operating 100% correctly on all queries". It attributes this to results coming from a variety of sources, and if a query with advanced syntax finds nothing, DuckDuckGo falls back to related results instead of an empty page.
The history explains the confusion. In April 2023 DuckDuckGo changed its syntax help page so that it listed only the site operator, and a commit in the help pages repository on GitHub confirmed the change. Shortly after, the company restored the full list and said the filters were still supported but affected by issues. The current help page lists all of the operators again and adds the experimental ~ operator.
If an operator seems to be ignored, check these points in order:
- Check whether the results actually reflect the operator (for example, only the chosen domain for site:).
- Remove spaces after colons (site:example.com, not site: example.com).
- Use straight quotes for phrases; smart quotes pasted from a word processor may not count.
- Test the operator alone, then add the other terms back one at a time.
- For strict exclusion of a whole site, prefer -site: or the block list over -term.
DuckDuckGo search filters: date, region, safe search and AI images
DuckDuckGo search filters that are not operators live in the menus below the search box and in Search Settings. They apply on top of whatever operators the query contains.
- Date: the date filter dropdown below the search box offers past day, week, month and year, plus a custom date range. There is no date operator such as before: or after:.
- Region: pick a country in Search Settings to localize results, or no region for global results. With a region set, bangs open the local version of a site where one exists.
- Safe search: choose on, moderate or off in Search Settings. For a single search, add !safeon or !safeoff to the query.
- AI images: on the Images tab, set the AI images filter to Hide, or turn on "Hide AI-Generated Images" in Search Settings. Starting searches at noai.duckduckgo.com removes AI images, Search Assist answers and Duck.ai prompts altogether.
These settings can also be fixed in a bookmark through URL parameters documented on DuckDuckGo's settings parameters page: kl sets the region (for example kl=us-en, kl=de-de or kl=wt-wt for no region) and kp sets safe search (kp=1 on, kp=-1 moderate, kp=-2 off). A bookmark such as https://duckduckgo.com/?q=%s&kl=us-en&kp=-1 keeps the same filters for every search, without cookies.
DuckDuckGo !bangs and the backslash shortcut
DuckDuckGo !bangs are shortcuts that run your search directly on another site, and they work alongside the regular operators. Typing !a usb-c hub takes you straight to Amazon's results. DuckDuckGo says there are thousands of bangs, browsable in the DuckDuckGo bang directory. Keep in mind that the search then happens on the other site, so that site's privacy policy and data collection apply, not DuckDuckGo's.
The backslash is the "feeling lucky" operator: \futurama jumps directly to the first result instead of showing a results page. It is handy for navigational searches where you already know the top result is the site you want, for example \ghacks windows.
Bangs also complement the operator list. DuckDuckGo has no date operator, so a bang to another engine is a quick fallback when a query needs syntax DuckDuckGo does not offer. Read more about how the engine itself grew in our look at DuckDuckGo's rise to 100 million daily searches.
FAQ
Does DuckDuckGo have a before: or after: date operator?
No. DuckDuckGo's syntax list has no date operator. Use the date filter dropdown below the search box, which offers preset ranges and a custom date range.
How do I make DuckDuckGo the default search engine so the operators work from the address bar?
Set DuckDuckGo as the default search engine in your browser; operators typed in the address bar are then passed to DuckDuckGo unchanged. Our guides cover changing the default search engine in Microsoft Edge and the Chrome search engine choice screen.
Is there an operator to hide AI-generated images on DuckDuckGo?
No, it is a filter, not an operator. Set the AI images filter on the Images tab to Hide, turn on the matching option in Search Settings, or search from noai.duckduckgo.com.
Related: DuckDuckGo browser search or AI homepage choice, Marginalia, a small independent search engine, Google Search without personalization
If you were allowed to narrow your search to find only what you were looking for, in many cases that would allow you to avoid ads as well, either intentionally or by accident. The reason you can’t successfully search for any specific term is this: to make certain that ads will always get through, excluding unwanted results from searches has been made impossible. I think it’s been 25 years or more since you could really expect to find what you were looking for online; it started slowly but has become much worse.
Time to stop using DDG, if for some reason you had still been willing to do that after knowing that you are literally only getting Google results even though Google has severely censored all search results for nearly a decade now.
To call ddg a “search engine” is extreme. It is nothing more than a Bing scrapper site. Seriously – compare results – they are vanilla unvarnished Bing.
@ David:
> I do granular searches. Now there’s no reason to use DuckDuckGo.
Sure there is, especially for Tor users.
Visit this if you have javascript entirely disabled (requires Tor):
https://duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion/html
As you can see, the “/html” part is mandatory if you wish to search w/ Tor w/ javascript PROPERLY DISABLED. Most other search engines do not let you search if you have javascript disabled.
It’s a Tor .onion hidden service and it works better than the other search engines who are cowards and won’t host their own Tor .onion service.
Hi, hope we can clear this up. Search Syntax filters are still available on DuckDuckGo Private Search and we’ve updated the help page to reflect that. Nothing has actually recently changed with the way they work. In fact, we recently added functionality to make site exclusion work better as described in https://duckduckgo.com/updates
Last month we temporarily updated our DuckDuckGo Search Syntax help page because we had been getting complaints from some users that they were not working consistently and wanted to get to the bottom of it, but we never actually deactivated the features themselves.
Instead of removing that information from the help page, even temporarily, we should have said we know users are having problems and we’re working to address them. That’s what the help page says now and we hope to provide an update soon.
DDG have updated their help page.
https://help.duckduckgo.com/duckduckgo-help-pages/results/syntax/
Filters have NOT been removed
Hi, hope we can clear this up. Search Syntax filters are still available on DuckDuckGo Private Search and we’ve updated the help page to reflect that. Nothing has actually recently changed with the way they work. In fact, we recently added functionality to make site exclusion work better as described in https://duckduckgo.com/updates
Last month we temporarily updated our DuckDuckGo Search Syntax help page because we had been getting complaints from some users that they were not working consistently and wanted to get to the bottom of it, but we never actually deactivated the features themselves.
Instead of removing that information from the help page, even temporarily, we should have said we know users are having problems and we’re working to address them. That’s what the help page says now and we hope to provide an update soon.
Then why has DuckDuckGo, since the beginning of it’s existence,
1) always without exception, includes webpages with the word “house” bolded in the snippet, each and every time I searched for
gingerbread -house
2) always without exception, included many results, with words bolded in their “snippets”, but with one or more words in between or with words in incorrect order, included something like “some humans like to eat beef for dinner”, each and every time I search for
“human beef”
3) very very frequently, when I search for “cats eat dinner”, will see many results for “cat eating dinner”, regardless of the fact that neither “cat” nor “eating” was a word I searched for, and I have also never added the permission to include either “cat” or “eating” via a question asking whether these words are acceptable, and I also have not included any asterisks in my search, and I have often EVEN USED QUOTATION MARKS SPECIFICALLY TO HELP ENSURE THAT I WILL NEVER SEE ANYTHING THAT SAYS “CAT EATING DINNER” BECAUSE THAT IS NOT WHAT THE FUCK I SEARCHED FOR…
…..but yet LITERALLY NEVER ONCE has DuckDuckGo returned webpages which say “cat eats dinner” -tuna, in that order, in each and every result, and also ensuring that zero webpages which contain the word “tuna” are displayed, after I searched for “cats eat dinner” in quotation marks.
….Clearly, DDG most definitely does NOT “continue” to use the functionality of operators, and does NOT allow users to make valid, legitimate searches on it’s search engine, because it is obviously impossible to “continue” doing something that you have never done in the first place.
Well, it’s about time for the cycle to start anew – seems every decade-ish there’s a hot new kid on the block. This time around whoever it winds up being won’t even have to come to with something new to encourage us to come to them – just do what the big guys *used* to do. Truly a case of “what’s old is new again.”
I do granular searches. Now there’s no reason to use DuckDuckGo.
Yes, it seems there are other changes which are not mentionned behind the scenes.
For most request, it looks like I get half of the result I got before, around ~75 by query, while it used to be more like ~150 a few days ago.
Big regression if you ask me, and this filters removal just makes no sense.
Unfortunately, I have no alternative right now, so I suppose I will continue to use DDG for most searches, with inferior results than earlier.
For advanced searches, I will have to go back to big G.
Bad times.
Google removed the ability to complete any “advanced search” in approximately 2011.
For all searches, you can use Mojeek.
There are some large changes happening in search-engine land. Just found out old timer Gigablast is gone too.
The crude truth is that Google is the best search engine ever done.
….Yes, it was; literally everyone on Earth knows that. And then, several years later, it quickly became a terrible search engine, and a scant few years after that, because the worst thing ever done due to horrifying abuses of the entire population. And then, less then a decade after that, also decided to make the search engine even worse then the already-worst, by also preventing the ability to get results after inputting some words and/or operaters that were intended to make a web search. Your comment is extremely irrelevant to this article or post, because this article or post was posted in 2023. This article or post is not actually from 2004.
That could have been argued years ago, but since Google f’d up and wiped out those capabilities it’s been annoying trash every since.
Well, worse than annoying trash since it’s been feeding me other searches because it thinks it’s users are to stupid to search for what we want instead of what it thinks is popular.
literally had Yandex give me better results sometimes. Google, like Microsoft, are resting on their laurels and have long ago stopped caring about improving things.
Sure, Google is good, but was it better 5-10 years ago? Yes much better. Sure, Windows is good, but was it better 5-10 years ago? Yes much better. Sad trend, we need innovation.
I didn’t say that Google is the best browser actually, I said that Google is the best browser “ever done”. When Google arrived to the web it become the absolute king in less than one year due its amazing algorythm. All modern search engines are trying to do the best they can learning from the best of all times. Probably DDG and Yandex are better than Google for some tasks like time based searches.
It used to be, but not anymore. DDG gets more relevant results for me. However, without the operators, I think I will “shop around”.
The crude truth was this, over decade ago, and I doubt it no longer is :
“Google policy is to get right up to the creepy line and not cross it… We don’t need you to type at all. We know where you are. We know where you’ve been. We can more or less know what you’re thinking about.”
— Eric Schmidt, former chief executive of Google, October 1st, 2010
“We can suggest what you should do next, what you care about. Imagine: We know where you are, we know what you like.“
— Eric Schmidt, former chief executive of Google, September 7th, 2010
“I actually think most people don’t want Google to answer their questions…They want Google to tell them what they should be doing next… We know roughly who you are, roughly what you care about, roughly who your friends are.“
— Eric Schmidt, former chief executive of Google, August 14th, 2010
“Your digital identity will live forever… because there’s no delete button.”
— Eric Schmidt, April 23rd, 2013, speaking to Stephen Colbert on the Colbert Report
Find out much more at [https://www.googlewatchdog.com/]
Personally, should Google Search be free of privacy intrusion I still wouldn’t use it given I deeply dislike the way it displays results. I mustn’t be the only one given dedicated scripts exist to bring some air to the display, for instance :
Google Search: interface cleanups [https://letsblock.it/filters/google-search-cleanup]
Google Search’s interface is, IMO, a total mess. As it goes they’ll soon include a soft-drinks distributor.
I use the *HELL* out of search operators (boolean logic). That the major search engines no longer allow them AND that they’re doing this without any explanation is thoroughly unacceptable. Also note that DDG is based on Microsoft’s Bing search engine.
….Then why did you wait approximately 17 years after the removal of Boolean to make this comment?
I’m guessing that the removal of search operators are being replaced by some kind of AI/ML, and they are confident that it will results in proper search results. Who knows….
Since the AI is not literally hooked into my brain by a wire, that claim makes absolutely zero sense. It’s pretty obvious that there is literally no situation whatsoever when “AI” that exists solely outside of my body only, and who’s only input is text, can magically know that if I write geocities “cats are great” mms it means that I am looking for one specific webpage only created by former friend Goshin, viewed by a total of 45 people since the day it was created, which has “cats are great” written by me in the “signatures” area, and also has a “visitor” with the screen name “mms”. That’s why I have literally never once ever, OBVIOUSLY, found the specific webpage I was looking for after the time when search engines decided to stop completing searches by moronically ignoring quotation marks. Even when it is an extremely large webpage with tens of millions of daily views or more, which is extremely easy to get certain “general topics” in Google-type search results. Because removing the ability to complete searches results in all users being unable to complete searches. Obviously.
Is this limitation just for DuckDuckGo, or is this a Bing limitation that’s going to affect all Bing-based search engines?
Search engine all suck now. I was a long time user of Startpage and loved it, however they’ve just started A/B testing a new version too and the new version (when it appears) also sucks as well. For example:
1) They used to stand out from all the other search engines, as they used Google for their search results – which I prefer over Bing-based search engines, particularly when doing more advanced searches. However, Startpage use Bing as well now, so they’ve just lost their unique advantage.
2) Article dates are now often missing from the left-hand side of the search results in the new version, so it’s not possible to see how old the article is.
3) In the new version, the search results pages are now jammed with junk, instead of just search results. So now we have to scroll through a bunch of “Images”, “News”, “Videos” sections for every search, just to get to the actual results. Web developers suck.
I was planning to move to DuckDuckGo, but not being able to use operators to narrow searches is going to be a major PITA. So, if as per the article suggests, DuckDuckGo are removing the ability to use double quotation marks (“”) to search for an exact phrase, how would someone search only for search results that contain the exact phrase, like the below hash for example?
“2d8bd7d9bb5f85ba643f0110d50cb506a1fe439e769a22503193ea6046bb87f7”
Around 2011 when the possibility to use a search engine to search for webpages was removed from Google, as well as having never existed in the first place on all two other search engines that existed, the result included every search engine that existed, because saying so is redundant.
The only search engine that I am aware of that exists now, which did not exist in 2011, and which therefore is likely to add functionality in the future if they have not been able to include it yet, is Mojeek.
It’s really strange that you “had planned to begin using DuckDuckGo instead of StartPage”, but yet you also claim that “It will be annoying to not be able to use the search engine to complete searches if you begin using DuckDuckGo”, even though StartPage also ignores minus signs and quotation marks and therefore prevents the ability to complete searches.
If you would like to search for a long string of random characters with no spaces, of course, then you can obviously do that unless the results show the need to exclude something, because nobody searches for “word”, with no other words in the box whatsoever besides “word”, yet still using quotation marks, unless they are either a) an idiot or b) are using Google during that extremely small period of time about 1-2 years when Google would add “words” and “wording” into that search if you don’t use quotation marks, but would not force you to view results that contain the latter two words.
Google removed “search by image” from it’s search engine, and also removed ability to specify custom time-frame for image results (I think it only exists for web results now) – whenever great features are taken away, I can only imagine it’s because they’re looking to sell it at a premium somehow. Is that the case here somehow? Or just incompetence?
My guess is legal exposure from piracy. Allowing a search for “{latest hot movie)” filetype:mp4 might be exposing them to more legal trouble than they care to deal with.
SanctimoniousApe
Not correct, because you can still do that… Only the final “custom” time frame is gone – you can’t specify for results from 01/01/2000 to 01/01/2010 for example – that stuff was useful and nothing to do with piracy.
I think I agree with “Anonymous” on this one…
I feel like it’s the AI boom. They want to restrict what people can look up to make harder to make databases to train neural networks. Same reason imgur removed nsfw ocntent and reddit is charging huge prices to use their apis. These companies realized they are sitting on a goldmine.
I often use filters, mostly the “exact” filter.
Playing around with my search engines I also noticed Peekier.com is gone. It now redirects to Kagi.com
Quoting the article, “DuckDuckGo is not the only search provider that is removing or reducing the impact of search filters.”
Surprising. What to expect from a search engine if not as many tools as possible to fine tune a research?
Most engines squeeze news, images and videos, may be shopping as well as maps inserts within Web results when the user wants Web results only, the other topics being available in the menu. Some engines are adding holy AI when the user expects plain, clean fine-tuned search results. What the heck is going on with search engines? Are they in the trend of making simple things complicated, adding nonsense and removing good sense?
Concerning DDG (which I call occasionally) I know that from now on I’ll have to avoid it when deep serching the Web.
“Now You: do you use search filters?”
Perhaps only the “exact terms” and the “:site” filter. The former is in DDG’s removal list, the latter still alive.
Looks like I”ll visit DDG even less than before and call increasingly SearXNG instances.
This is an extremely strange comment, because of the fact that it was posted in 2023 instead of approximately 2011 when all then-existing search engines removed the functionality of quotation marks and the minus sign, or before then when Google removed Boolean search and all other search engines went out of existence.
It seems DDG is becoming less and less of an viable option. What are your preferred alternatives nowadays?
The only search engine I am aware of the existence of which actually provides valid results is Mojeek.
how you want your search engine fam?
just fxck my shit up
Time to stop using DDG, if for some reason you had still been willing to do that after knowing that you are literally only getting Google results even though Google has severely censored all search results for nearly a decade now.
The above comment is not a reply. Please delete this comment and the one above it.
I -like the proposed change but the negative operator (the one I rely on most) is still functioning now.
…Incorrect. This article literally directly states that the minus sign was never functional on DDG in the first place.
Never used operators except for site and file type occasionally
For the love of everything dear, why, indeed, hamper a perfectly useful and often used (at least by me) feature like filters? There must be either a technical or a legal issue causing such grief…
Same. Damn!!
Well, wouldn’t “why” be the most natural question to ask here? Any thoughts on why these modifiers are being eliminated?
Searx seems better for then.
On a different note, looking at daily VPN spams reminded me of these two articles. ExpressVPN/PIA/Zenmate/Cyberghost all are owned by Kape, and Nord/Surfshark are owned by Nord.
https://www.ghacks.net/2021/09/15/is-kapes-acquisition-of-expressvpn-cause-for-concern/
https://www.cnet.com/tech/services-and-software/expressvpn-cio-among-three-facing-1-6-million-doj-fine-project-raven/