Skip to content

Hearthstone card search ​

The search box on the Hearthstone Cards page and in the deck builder understands a small query language. A plain word is enough to find a card by name, and fields let you ask for things like "Standard Mage spells that cost 2 or less" in one line: c:mage t:spell cost<=2 is:standard.

How search works ​

Type a query into the search box on the Cards page or in the deck builder. A query is one or more terms separated by spaces, and a card has to match every term.

  • A plain word searches card names and rules text: draw.
  • field:value searches one field: t:spell. Every field has a full name and usually a short alias, so type:spell and t:spell are the same search. Field names and values ignore upper and lower case unless this page says otherwise.

The fields, shortcuts and examples for this game are further down the page.

Matching text ​

How you write a value decides how strictly it has to match.

You typeIt matches
wordNames close to word, typos allowed, plus any card whose name or rules text contains word.
n:wordNames close to word, typos allowed.
"two words"Names or rules text containing exactly two words. Quotes turn typo tolerance off and let a value hold spaces.
field:"two words"That field contains exactly two words.
field:!valueThat field is exactly value, not just containing it.
field:/pattern/That field matches a regular expression, ignoring case: n:/^the / finds names starting with "The".

Some details:

  • Only names are typo-tolerant. Every other field matches when its value contains what you typed, so o:draw finds "draws" and "Draw 1".
  • Best matches come first. When a query has a plain word or a n: term, the closest names are listed first. A query with only fields keeps the page's normal order, and a sort you pick yourself always wins.
  • Use ! and /…/ with a field. On a plain word they compare against a card's name and rules text all at once, which rarely matches.
  • The word or is special (see below). To search for it, quote it: "or".

Combining terms ​

You typeIt means
a bBoth a and b must match.
a or bEither a or b must match. OR works too.
-aLeave out cards that match a. Works before any term or group: -t:spell, -(a or b).
(a or b) cParentheses group terms: c plus either a or b.
a b or cTerms next to each other are joined first, so this is (a b) or c. Add parentheses if not.

Comparing numbers and ranks ​

Number fields such as cost take a comparison:

OperatorMeaningExample
:Has this value: contains for text and values, equal for numberscost:3
=Equal tocost=3
!=Not equal tocost!=3
<Less thancost<3
<=Less than or equal tocost<=3
>Greater thancost>3
>=Greater than or equal tocost>=3

A field whose allowed values are listed in order, such as rarity, can be compared the same way: r>=rare finds Rare and everything ranked above it in the list shown in the fields table. A value that is not in that list never matches a comparison, though it still matches with :.

Shortcut syntax ​

is:name finds a whole kind of card in one term. not:name is the same as -is:name. If a shortcut's name has a space, quote it: is:"two words". Each game's shortcuts are listed below.

A field or shortcut the game doesn't have matches no cards, so check the spelling if a search comes back empty.

Field kinds ​

KindHow it matches
TextFree text, such as a name or rules text. : means contains (names also allow typos).
ValueOne of a set of values, such as a type or region. : means contains, so part of a value is enough. When the allowed values are listed, comparisons follow their order.
NumberA number. : means equal, and every comparison operator works.
SymbolsA mix of symbols, such as an attack cost or a card's colors. Some of these fields also take a plain number. A game with symbol fields explains them below its fields table.

Fields ​

FieldAliasesKindDescriptionValues
namenTextThe card's name. Unquoted text is typo-tolerant.Any text
texto, oracleTextRules text.Any text
typetValueCard type: minion, spell, weapon, hero or location.minion, spell, weapon, hero, location
rarityrValueRarity. Comparisons use the order free, common, rare, epic, legendary.free, common, rare, epic, legendary
sete, sValueSet code, such as CORE or TITANS. A card matches every set it was printed in.Values come from the card catalog.
costmana, mv, cmcNumberMana cost.A number
classcValueClass, such as mage or deathknight. A dual-class card matches both classes; a card with no class is neutral.deathknight, demonhunter, druid, hunter, mage, paladin, priest, rogue, shaman, warlock, warrior, neutral
attackatkNumberAttack.A number
healthhpNumberHealth of a minion, location or hero.A number
durabilitydurNumberA weapon's durability.A number
armorNumberArmor a hero card gives.A number
keywordkwValueKeyword the card has or its text mentions, with _ for spaces, such as taunt or divine_shield.Values come from the card catalog.
racetribe, miniontypeValueMinion type, such as dragon or mechanical. An Amalgam counts as every type.beast, demon, draenei, dragon, elemental, mechanical, murloc, naga, pirate, quilboar, totem, undead, all
schoolspellschoolValueSpell school, such as fire or shadow.arcane, fel, fire, frost, holy, nature, shadow
formatf, legalValueA format the card is legal in: standard or wild.standard, wild
runerunesSymbolsDeath Knight rune cost: B Blood, F Frost, U Unholy. rune:BB needs at least two Blood runes; rune<=BBU fits a deck with those runes; a number compares the total.A number, or symbols

c is short for class, not cost: write cost (or mana) for the mana cost. Keywords use _ in place of spaces, such as kw:divine_shield.

Rune symbols ​

With symbols, rune: matches any one cost on the card that contains at least the listed mix.

SymbolMeaning
BBlood
FFrost
UUnholy

Shortcuts ​

ShortcutFinds
is:neutralNeutral cards, which any class can play.
is:multiclassCards shared by two or more classes.
is:legendaryLegendary cards.
is:minionMinions.
is:spellSpells.
is:weaponWeapons.
is:heroHero cards.
is:locationLocations.
is:standardCards legal in Standard.
is:wildCards legal in Wild.
is:unreleasedAnnounced cards that are not out yet.
is:touristTourists, which let another class's cards into your deck.

Examples ​

QueryFinds
c:mage t:spell cost<=2 is:standardStandard Mage spells that cost 2 or less.
kw:taunt atk>=5 is:minionTaunt minions with 5 Attack or more.
race:dragon is:legendaryLegendary Dragons.
school:fireFire spells.
rune:BBDeath Knight cards that need at least two Blood runes.
is:neutral kw:divine_shield is:standardStandard neutral cards with Divine Shield.
o:"draw a card" c:priestPriest cards whose text says "draw a card".
t:weapon dur>=3Weapons with 3 Durability or more.
is:touristTourists.
e:CORE r:epicEpic cards from the Core set.

Turny.gg documentation