Raffle Generator
Paste or import one entry per line, list the prizes or set Winners, and press Draw: nobody is named twice, and the result carries the time and a SHA-256 hash of the list.
Press Draw and the winners appear here, with the time and the hash of the list.
Check a list
What a draw gives you
A raffle drawn from a list leaves two questions afterwards: who won, and whether the list was changed once the result was known.
Draw answers the first by taking each winner, then each alternate, as one random ticket among those left; a person who is named leaves the draw with all their tickets. For the second, the result shows the local and UTC time of the draw, the number of lines, people and tickets, and a SHA-256 hash of the list. The list, the draw and the certificate stay in this browser tab.
Three winners and two alternates from 30 lines
This example uses its own list of 30 lines, longer than the 10 sample names in the Entries box. Bella, Kofi and Priya are typed more than once, so 26 people hold 30 tickets.
30 lines, 26 people, 30 tickets
| Place | Entry | Tickets |
|---|---|---|
| Winner 1 | Zoe | 1 |
| Winner 2 | Bella | 3 |
| Winner 3 | Alex | 1 |
| Alternate 1 | Eli | 1 |
| Alternate 2 | Uma | 1 |
A sample from this generator; press Draw for new results.
How to run the draw
- Paste your entries into the Entries box, one per line, over the sample names. Or press Import CSV, or paste cells copied from a spreadsheet: the first column is the entry, and a second column headed Tickets, Entries or Chances gives that entry more tickets.
- Under Duplicate lines, choose Count as extra tickets when each line is a ticket bought, or Count once when each person should have one chance.
- Type the Prizes in the order they should be drawn, one per line, or set Winners. Set Alternates for prizes that go unclaimed; they are drawn after the winners, in order.
- Type a Raffle name if you want it on the certificate. Tick Reveal one winner at a time to read the winners out one by one, then press Draw.
- Press Download PNG or Copy as text to keep the certificate, and publish the hash with the list so anyone can test it under Check a list.
What the hash proves, and what it does not
SHA-256 is the hash function of the US standard FIPS 180-4: it turns any text into a 256-bit digest, shown here as 64 hex characters. This page computes it in your browser with crypto.subtle.digest from the Web Cryptography API.
Before hashing, each line is trimmed, empty lines are dropped, and the lines are joined with a line feed and encoded as UTF-8. The same entries therefore give the same hash on any device, while a changed letter, an extra line or a new order gives a different one.
The hash shows which list was used. It does not prove that the draw was random, and it does not cover the settings, so publish the number of winners and the duplicate rule next to it.
Same names, different hash
Each list is hashed the way this page hashes entries: one name per line, no line break at the end. The table shows the first 16 of the 64 hex characters.
Scroll the table sideways for more columns.
| List, one name per line | Lines | SHA-256, first 16 characters |
|---|---|---|
| Ann, Ben, Cara | 3 | d6b9581a546c7068 |
| Ben, Ann, Cara | 3 | 7d94e7715cf51ee0 |
| Ann, Ben, Cara, Ann | 4 | 1b796e31973784c5 |
| Anne, Ben, Cara | 3 | 2dbd4a436d6ae6f4 |
Source: SHA-256 (NIST FIPS 180-4) of the example lists, computed on this site.
Example: what extra tickets are worth
Fifty lines, one winner. A name on 1 line wins with chance 1/50 (2.00%). A name on 3 of the 50 lines wins with chance 3/50 (6.00%) when Duplicate lines is set to Count as extra tickets.
Switch to Count once and the same list holds 48 people with one ticket each, so that name drops to 1/48 (2.08%).
With 2 winners, and if everyone else holds one ticket, the name with 3 tickets is among the winners with chance 144/1225 (11.76%), a little under double the single-prize chance: once it wins, its other tickets leave the draw.
Chance to win by tickets held, 50 tickets in all
Everyone else holds one ticket; a winner's other tickets leave the draw before the next winner is drawn.
Scroll the table sideways for more columns.
| Tickets held | 1 winner | Percent | 2 winners | Percent |
|---|---|---|---|---|
| 1 | 1/50 | 2.00% | 1/25 | 4.00% |
| 2 | 1/25 | 4.00% | 97/1225 | 7.92% |
| 3 | 3/50 | 6.00% | 144/1225 | 11.76% |
| 4 | 2/25 | 8.00% | 38/245 | 15.51% |
| 5 | 1/10 | 10.00% | 47/245 | 19.18% |
Computed exactly on this site: exact count of ways to draw the winners.
Example: winners and alternates
120 people with one ticket each, 3 winners and 2 alternates. Each person is a winner with chance 1/40 (2.50%) and is named at all, as winner or alternate, with chance 1/24 (4.17%).
Example: does the order of the prizes matter?
Prizes are drawn from the top of the Prizes box down: the first line goes to the first person drawn, the next line to the next person. With 40 people holding one ticket each and 3 prizes, each person wins the first prize with chance 1/40 (2.50%) and the third prize with the same 1/40 (2.50%), so order does not favour anyone. A person wins one of the 3 prizes with chance 3/40 (7.50%).
Extra tickets change that. Hold 3 of 50 tickets, while everyone else holds one ticket, and you win the first prize with chance 3/50 (6.00%) but the second with 141/2450 (5.76%): the second prize is drawn only after someone else has taken the first, and your 3 tickets can win only once.
Announcing the winners
A result is easier to accept when people saw the rules before the draw and can check the list after it:
- Before the draw, post the prizes in the order they will be drawn, the number of alternates, the duplicate rule and the list hash.
- Draw where people can watch. Full screen shows the results in large type, and Reveal one winner at a time lets you read the prizes out one by one.
- Read each winner as the entry appears in the list. If entries are full names or e-mail addresses, announce a first name and an initial, and contact the winner in private.
- Publish the certificate from Download PNG or Copy as text: it holds the time in UTC, the number of lines, people and tickets, the hash, and every winner and alternate in order.
- If a winner cannot be reached or turns the prize down, offer it to Alternate 1, then Alternate 2, and post the change where you posted the result.
Frequently asked questions
What is an alternate?
A backup winner. Alternates are drawn after the winners, in order, from the people left, so Alternate 1 is offered a prize first if a winner cannot be reached or turns it down.
Can one person win two prizes?
Not in one draw: a person leaves the draw with all their tickets as soon as they are named. To allow it, run a separate draw for each prize with the full list.
How can entrants check the hash themselves?
Share the list and the hash. Anyone can paste the list into Check a list on this page, on their own device, and compare the result with the published hash.
Should the hash be published before or after the draw?
Before is stronger: post the hash when entries close, then draw. Nobody can add or remove a line after that without the hash changing.
Why does my hash differ from another tool's?
Hashes match only for exactly the same text. This page trims each line, drops empty lines and joins them with a single line feed, with no line break at the end; a tool that keeps spaces or adds a final line break hashes different text.
Can I import entries from a spreadsheet?
Yes. Import CSV reads the first column as the entry and a second column as tickets only when its heading says Tickets, Entries or Chances, so a row with Ann and 3 becomes three lines. A column headed Age or ID is not read, and numbers without a heading bring up a question first. Pasted spreadsheet cells are read the same way.
In what order are the prizes drawn?
Top to bottom: the first line of Prizes goes to the first person drawn, the second line to the next. A line such as 3 x Gift card counts as three prizes, so three different people win one each.
Can I reveal the winners one at a time?
Tick Reveal one winner at a time before you press Draw. The whole draw is made at that moment, and Next winner then shows the winners in order, so a pause between them cannot change who wins.