Playing Card

Why does a deck have 52 cards?

The standard deck of 52 has four suits of thirteen, a structure inherited from the Mamluk cards that reached Europe in the 14th century, whose suits were cups, coins, swords and polo sticks. The French adaptation of around 1480 simplified those to hearts, diamonds, clubs and spades, shapes that could be printed with a stencil rather than drawn, which is why the French pattern spread and dominates today. Court cards kept their hierarchy of king, queen and knave, with the queen a French addition -- Italian and German decks have no queen at all. The jokers are much later, added in the United States in the 1860s for the game of euchre.

About this generator

This draws from a standard 52-card deck -- the four suits of spades, hearts, diamonds, and clubs, ace through king -- shuffled fresh with the site's cryptographically secure randomness. Like Card Draw, each draw takes the next card off the top without putting it back, so cards never repeat until you reshuffle. An optional toggle adds the two Jokers for a 54-card deck.

Every result here is drawn using crypto.getRandomValues() -- the Web Crypto API's cryptographically secure randomness -- instead of Math.random(), so it's genuinely unpredictable, not just statistically random. Learn more.

What people use it for

Use it whenever you need a real playing card but don't have a deck handy -- dealing a poker or blackjack hand, picking a random card for a magic trick or a game, running a card-based drinking game, or teaching probability. Drawing several at once deals a whole hand in one tap.

How it works

The full deck is shuffled the moment the page loads (and again whenever you add or remove the Jokers). Draw flips the next card (or next several, if you've set an amount) straight off the top -- once a card is drawn it's set aside until you reshuffle, so a full pass through the deck deals every card exactly once with no repeats. Turn on "With replacement" to reshuffle the whole deck after each draw, so any card can come up again right away.

Common questions

Is it a real, complete 52-card deck?

Yes -- all 52 cards of a standard deck: spades, hearts, diamonds, and clubs, each from ace through king. Flip on "Include Jokers" to add the two Jokers for a 54-card deck.

Can the same card come up twice?

Not until you reshuffle -- a drawn card is set aside and won't appear again in the same round. Press "Reshuffle Deck" to start fresh, or turn on "With replacement" to reshuffle after every draw so any card can repeat.

Can I deal a whole hand at once?

Yes -- set an amount (up to 10) and each draw deals that many cards off the top of the deck, up to however many remain, each landing in its own card.

What happens when the deck runs out?

Draw disables itself once every card has been dealt -- tap "Reshuffle Deck" to shuffle a fresh round, or turn on "With replacement" so it never runs out.

Related Generators

Poker Hand · Card Game

All Card generators

Browse all generators