Mafia Role Assigner

Deal secret roles to players.

Loading tool…

How to use Mafia Role Assigner

  1. Enter the number of players, or tick the option to type player names.
  2. Adjust the Mafia, Detective, and Doctor counts, or press "Use suggested".
  3. Press "Assign roles" to shuffle roles across all players.
  4. Pass the device around — each player taps their name to reveal, then taps again to hide before passing on.
Try next →Team GeneratorSplit names into random teams.

About Mafia Role Assigner

The Mafia Role Assigner deals out secret roles for a game of Mafia (also known as Werewolf). Enter the number of players or a list of names, adjust the suggested counts for Mafia, Detective, and Doctor (everyone else fills in as Villagers), and it shuffles the roles fairly across everyone. A built-in pass-and-play reveal lets each player tap their own name to see their secret role, then tap again to hide it before passing the device on.

It is completely free, needs no sign-up, and runs entirely in your browser. Roles are shuffled locally with your browser's cryptographic random generator, so nothing is uploaded or saved.

Frequently asked questions

Is the Mafia Role Assigner free?
Yes, it is completely free with no sign-up or download. Start a new game and re-assign roles as often as you like.
How does the pass-and-play reveal work?
After roles are assigned, each player taps their own name to privately reveal their role, then taps again to hide it before handing the device to the next player.
Is the role assignment private?
Yes. Everything happens locally in your browser. No names or roles are ever uploaded, stored, or shared.
How many Mafia should I have?
A good rule of thumb is about one Mafia per three to four players, plus one Detective and one Doctor. The tool suggests balanced counts and lets you edit them.
What do the roles do?
Mafia secretly eliminate a player each night, the Detective investigates one player to learn if they are Mafia, the Doctor protects one player, and Villagers vote by day to find the Mafia.
Can I use real player names?
Yes. Tick the names option and enter one name per line, or just use a number and the tool labels players as Player 1, Player 2, and so on.