Play Mafia Online: Free AI-Powered Game for Any Group Size
Mafia (also known as Werewolf) is the classic social deduction game where a secret mafia hides among innocent townspeople. Now you can play it online with AI — no physical cards, no human moderator, no minimum player count. Here's everything you need to know.

What is the Mafia Game?
Mafia is a social deduction party game invented in the 1980s by psychology student Dmitry Davidoff. A small group of mafia members hides among innocent townspeople. During the day, everyone debates and votes to eliminate one suspect. At night, the mafia secretly chooses a victim. The town wins by eliminating all mafia; the mafia wins by outnumbering the town.
It's a game of lying, reading people, and persuasion. The mafia must bluff their way through accusations, while the townspeople try to piece together clues to find the killers before it's too late.
👥
3+ players
⏱️
30–45 min
🎯
Social Deduction
🧠
Strategic
Mafia Roles Explained
A standard Mafia game includes these roles:
Townsperson
TownNo special ability. Your power is observation and persuasion. Spot the mafia through their behavior and vote them out.
Mafia
MafiaEach night, choose a townsperson to eliminate. During the day, blend in and deflect suspicion. You know who the other mafia members are.
Detective
TownEach night, investigate one player to learn their true role. Use this knowledge carefully — if the mafia figures out who you are, you're the next target.
Doctor
TownEach night, protect one player from elimination. You can save yourself once. A well-timed save can turn the game around.
Godfather
MafiaThe mafia leader. Appears innocent when investigated by the Detective. Must coordinate with other mafia to eliminate key town roles.
On TextGame.ai, the AI Game Master assigns roles secretly at the start — you don't need to deal cards or have a moderator.
How to Play Mafia — Rules
- 1
Setup
Roles are assigned secretly. Each player sees only their own role. Mafia members learn who the other mafia are.
- 2
Night Phase
Everyone 'closes their eyes.' The Mafia chooses a victim. The Detective investigates one player. The Doctor protects one player. All choices are secret.
- 3
Day Phase
The victim is announced (unless saved by the Doctor). All living players discuss — who's acting suspicious? Who defended the victim? Who's been too quiet?
- 4
Vote
Players vote to eliminate one suspect. The eliminated player's role is revealed. Was the town right, or did they just lose an ally?
- 5
Repeat
Night and day alternate until either all Mafia are eliminated (Town wins) or Mafia equal or outnumber Townspeople (Mafia wins).
Mafia vs Werewolf — What's the Difference?
Mafia and Werewolf are essentially the same game with different themes. Mafia uses a city/crime setting (townspeople vs mafia); Werewolf uses a village setting (villagers vs werewolves). The core mechanics — hidden roles, night kills, day votes, special roles like Detective/Seer and Doctor — are identical.
If you know how to play one, you know how to play the other. On TextGame.ai, you can try both: Mafia and Werewolf. Browse more social deduction games or see our best social deduction games list.
How to Play Mafia Online with AI
Traditionally, Mafia needs 6+ people in the same room with a human moderator. That's hard to organize. With TextGame.ai, you can play anytime:
AI Game Master runs all phases — night actions, day discussion, voting, reveals. No human moderator needed.
AI players fill empty seats. Play with 2 friends and AI fills the rest. Or play solo against a full table of AI.
Invite with a link. Friends join in their browser — no app, no sign-up for guests.
AI characters have voices and unique personalities. They argue, accuse, defend, and bluff — just like real players.
Strategy Tips
As a Townsperson
- Watch voting patterns. Mafia often vote together or avoid voting for each other.
- Note who accuses whom. Mafia sometimes throw early suspicion on townspeople to divert attention.
- Pay attention to silence. A player who says very little might be mafia trying not to draw attention.
- Protect the Detective. If someone claims Detective, think about whether mafia would take that risk before dismissing them.
As Mafia
- Participate actively. Silent mafia get caught. Accuse others, ask questions, look engaged.
- Don't defend your partner. If another mafia is accused, don't jump to their defense too quickly.
- Create confusion. Suggest multiple suspects. Make the town split their votes.
- Eliminate the Detective early. If you suspect someone is the Detective, target them at night before they expose you.
Frequently Asked Questions
How many people do you need to play Mafia?
Traditionally 6–12. On TextGame.ai, you can start with just 1–2 humans — AI characters fill the rest of the seats. You can add as many players as you like.
Can I play Mafia alone?
Yes! On TextGame.ai, the AI fills every other seat with unique characters that have their own strategies. It's a full game even with just you.
Is Mafia the same as Werewolf?
They're extremely similar — both are social deduction games with hidden roles and day/night cycles. Mafia uses a city theme while Werewolf uses a village theme. The core mechanics are the same. We have both: Mafia and Werewolf.
Is Mafia free to play online?
Yes. On TextGame.ai, you can play Mafia online for free with an AI Game Master and AI players. No subscription required.
🎩 Play Mafia Online Now
AI Game Master. AI players. No moderator needed. Start a game in 30 seconds.
Play Mafia Free