Skip to content

Magic: The Gathering card search ​

The search box on the Magic: The Gathering 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 "green creatures with mana value 2 or less" in one line: t:creature c:g mv<=2. Players who know Scryfall will recognize most of it, but only the fields and shortcuts on this page work.

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
typetTextType line, supertypes and subtypes included: t:legendary, t:elf. Every face of a multi-face card counts.Any text
texto, oracleTextRules text, on every face of the card.Any text
rarityrValueRarity of the card's default printing. Comparisons use the order of the allowed values.common, uncommon, rare, mythic, special, bonus
sete, sValueSet code of the card's default printing, such as dmu or mh3. A reprinted card matches only that one set. e:dmu also matches codes that contain dmu; e:!dmu matches the set exactly.Values come from the card catalog.
colorcSymbolsColors, as the letters W U B R G: c:wu is at least white and blue, c=r is exactly red. A colorless card never matches; use is:colorless.Symbols
identityidSymbolsColor identity (the colors in the cost and rules text), as letters, compared like color. A colorless card never matches.Symbols
manamSymbolsMana cost symbols, such as m:{2}{W}{W}. Generic mana and hybrid, Phyrexian or colorless symbols need braces: m:{3}, m:{W/U}, m:{C}.Symbols
mvcmc, manavalueNumberMana value (converted mana cost). Lands and other cards with no mana cost have 0.A number
powerpowNumberPower. A value such as * is not a number and never matches.A number
toughnesstouNumberToughness. A value such as * is not a number and never matches.A number
loyaltyloyNumberStarting loyalty of a planeswalker. A value such as X is not a number and never matches.A number
keywordkwValueKeyword ability, such as flying, ward or "first strike".Values come from the card catalog.
formatf, legalValueA format the card is legal in, such as standard or modern. A card restricted to one copy counts as legal. standard_future is Standard plus announced cards bound for a Standard set.standard, pioneer, modern, legacy, vintage, pauper, commander, standard_future

t: searches the whole type line as text, so t:legendary, t:creature and t:elf all work, and t:"legendary creature" needs the words in that order. Keywords use Scryfall's names; quote the ones with a space, such as kw:"first strike".

A card in the catalog stands for every printing of it, but set and rarity read only its default printing (game.defaultPrintingId in the card data). A card reprinted in many sets is found under one of them.

Shortcuts ​

ShortcutFinds
is:splitSplit cards, such as Fire // Ice.
is:legendaryLegendary cards: Legendary on the type line of any face.
is:colorlessCards with no colors.
is:multicolored, is:multicolorCards with two or more colors.
is:landLands: Land on the type line of any face, so a spell with a land back face counts.
is:creatureCreatures: Creature on the type line of any face, so artifact creatures and adventure creatures count.
is:dfcCards with more than one face: double-faced cards, and also split, adventure and flip cards.
is:unreleasedAnnounced cards that are not out yet.
is:collectibleCards you can put in a deck (leaves out tokens).

Colors and mana cost ​

c (color), id (color identity) and m (mana cost) compare symbols rather than text or numbers.

Colors ​

Colors are the letters W (white), U (blue), B (black), R (red) and G (green), in any order and either case. Full color names don't work: c:white finds nothing.

You typeIt finds cards whose colors are
c:wuAt least white and blue: white-blue, Esper, five-color.
c>=wuThe same as c:wu.
c=wuExactly white and blue.
c<=wuOnly white, only blue, or white and blue.
c<wuOnly white or only blue.
c>wuWhite, blue and at least one more color.
c!=wuAnything except exactly white and blue.

Colorless cards have no colors, so they never match c or id, not even c<=wu or c!=wu. Find them with is:colorless, and add them to a color search with or: (c<=wu or is:colorless).

id works the same way on a card's color identity, the colors in its cost and rules text. id<=wu lists the cards a white-blue Commander deck can run, apart from those with a colorless identity.

A double-faced card's colors are the colors of both faces together.

Mana cost ​

m matches the symbols in a card's mana cost, written as on the card. Colored mana can be plain letters, and everything else goes in braces:

SymbolWrite it
One colored manaW, U, B, R, G (or {W})
Generic manaThe whole number in braces: {2}, {10}
Variable manaX, or {X}
Hybrid{W/U}, {2/W}
Phyrexian{W/P}
Colorless mana{C} (a plain C works too)

Some details:

  • Generic mana is one symbol, not a count. {2} matches a cost with {2} in it, not one with {3}, and {1}{1} is not the same as {2}. To search by total cost, use mv.
  • A digit outside braces is a count. m:2W means two white mana, the same as m:WW, not "two generic and one white".
  • A plain number never matches. m:3 finds nothing; write mv=3 for mana value 3, or m:{3} for a cost with {3} in it.

The comparison operators compare the mix of symbols:

You typeIt finds a mana cost that is
m:{2}{W}{W}At least {2}{W}{W}, possibly with more symbols.
m>={2}{W}{W}The same as m:.
m={2}{W}{W}Exactly {2}{W}{W}.
m<={2}{W}{W}Made only of symbols from the list: {W}, {2}{W} and more.
m!={2}{W}{W}Anything except exactly {2}{W}{W}.

A card with more than one face matches when its full cost or any one face's cost fits. A split card's full cost is both halves together: Fire // Ice is {1}{R}{1}{U}.

Examples ​

QueryFinds
t:creature c:g mv<=2Green creatures with mana value 2 or less.
c=r t:instantMono-red instants.
c:wuCards that are at least white and blue, including three-color ones.
is:legendary t:creature id=wubLegendary creatures with exactly a white, blue and black color identity.
m=UUCards that cost exactly two blue mana, like Counterspell.
m:{X}Cards with X in their mana cost.
m:{W/U}Cards with a white-blue hybrid symbol in their cost.
kw:flying pow>=4Flyers with 4 power or more.
t:instant o:"draw a card"Instants whose text says "draw a card".
r:mythic e:!mh3Mythic rares whose default printing is in Modern Horizons 3.
is:colorless t:artifact mv<=2Colorless artifacts with mana value 2 or less.
bonecrushrBonecrusher Giant, despite the typo.

Turny.gg documentation