Interactive Tournament Bracket Widget for Your Website
Describe your tournament and the AI builds an embeddable bracket: 4 to 64 teams, seeds, byes, logos, your colours. Readers click teams to make their picks. You enter the results after each game, and every page with the bracket updates.
7 picks to go.
Example teams. Click a team, or Tab to it and press Enter, to advance it. Change an early pick and the later ones that depended on it clear.
Bracket Formats You Can Ask For
The demo above is the simplest case: eight seeded teams, single elimination. Describe a different structure in plain words and the AI builds the rounds, the matchups and the paths between them.
Single elimination, 4 to 64 teams
Lose once and you are out. The classic knockout tree: 8 teams play 7 games over 3 rounds, 64 teams play 63 games over 6. Ask for a third-place match if you want one.
Double elimination
A winners' bracket and a losers' bracket, so nobody goes home after one bad game. Common in esports and club tournaments. Say whether the grand final needs a reset match if the losers' side wins the first one.
Round robin groups into a knockout
Group tables first, where you enter scores and the widget works out points and standings, then the top teams feed a knockout bracket. This is the World Cup shape.
Byes for odd-sized fields
A knockout needs 4, 8, 16, 32 or 64 slots. With 12 teams, the top 4 seeds get a first-round bye and the other 8 play in. Tell the AI how many teams you have and who the top seeds are.
Seeding
Standard seeding (1 plays 16, 8 plays 9, and so on, so the top two can only meet in the final), your own order, or a random draw. Seeds can show next to each name, as in the demo.
Play-in games and series
A First Four-style play-in round before the main bracket, or best-of-three and best-of-seven labels on each matchup with the series score.
How to Build a Tournament Bracket Widget for a Media Site
Say you run a local news site and want a reader-voted "Best Burger in Springfield" bracket, or a playoff pick'em for the high school league. Here is the whole job, from first prompt to updating results.
1. Describe the bracket
Sign up, create a widget and paste a prompt like this one into the chat. Swap in your own tournament, teams and colours:
Build a 16-team single-elimination bracket for our "Best Burger in Springfield" reader tournament. Seed these restaurants in this order: [paste your list, 1 to 16]. Use the logos I uploaded to this project next to each name. Readers click a burger to advance it, round by round, and their picks stay saved in their browser. When they reach a champion, show a form for their name and email and save the whole bracket as one entry. Use our colours, navy #0b3d91 and gold #f2b705. On screens under 640px wide, show one round at a time with Previous and Next buttons.When the AI finishes, the first version appears in the preview. Click through it as a reader would before you change anything.
2. Add the teams and logos
Paste the entrants as a list in seed order, one per line. For logos, upload the images to the project's files and ask for them by name: "use rovers.png for the Rovers". If you don't have logos, ask for coloured initials badges instead, which stay readable at 64 teams.
3. Decide what readers can do
- Results only. The bracket shows the real results and nobody can click it. Good for a playoff tracker in a sports section.
- Pick'em. Readers fill in their own bracket, as in the demo. Their picks are saved in their browser, so the bracket is still filled in when they come back to the article. Add a submit form if you want entries: each one lands in the widget's built-in data table, where you can read them or download a CSV.
- Reader voting. Each matchup becomes a vote and the widget keeps a tally. You close the round and advance the winners yourself, which fits "best of" editorial tournaments that run a round a week.
4. Embed it in the article
Publish, and MightyWidgets gives you two lines of HTML with your widget's ID filled in:
<script src="https://cdn.mightywidgets.com/load.js" async></script>
<div data-mightywidgets-id="YOUR_WIDGET_ID"></div>Paste it into the article where the bracket should appear. Use the same snippet in the preview piece, the live blog and the final recap: they all show one bracket.
5. Update results after each game
Open the widget in your dashboard and tell the AI what happened, "Stags beat Mariners 3 to 1", or edit the result yourself. Publish, and every article with the bracket shows it. If you collected pick'em entries, the widget can also show each reader how many of their saved picks were right.
The bracket does not pull live scores. MightyWidgets has no connection to sports data feeds, so results appear when you enter them. For a newsroom that is usually fine, since you are writing up every game anyway. If you need scores updating minute by minute, use a sports data provider's widget.
Making a Bracket Readable on Phones
A bracket is wide by nature: every round adds a column. A 16-team bracket needs five columns including the champion, and a phone has room for about two. There are three approaches that work, and you can ask for any of them:
- Scroll sideways. The full bracket stays intact and scrolls inside its own box, so the rest of your page doesn't. Fine up to 8 teams, and for 16 with short names. Ask for the round labels to stay visible while scrolling.
- One round at a time. Buttons or tabs for each round, showing that round's matchups as a list. This scales to 64 teams, and it is the "Round by round" view in the demo above.
- Two halves. On desktop, a mirrored bracket with the halves meeting at a final in the middle. On phones, the left half and the right half one above the other.
A good default: full bracket above 640px wide, round by round below. Put that in your prompt in those words.
Brackets Through the Year
Most bracket traffic follows the calendar. A few that come round every year, and what to ask for:
- March Madness and office pools: 64 teams plus four play-in games, in four regions. Use the round-by-round view on phones and a submit form so the pool organiser gets every entry in one CSV.
- World Cup-style tournaments: the 2026 men's World Cup ran 12 groups of four into a 32-team knockout. Ask for group tables that calculate standings from the scores you enter, feeding the knockout bracket.
- Esports and club events: usually double elimination, often best-of-three. Ask for series scores on each matchup.
- Fantasy league playoffs: 6 or 12 teams, so the top seeds get byes. Ask for team managers' names under each team.
- Editorial "best of" brackets: best burger, best album of the decade, best mascot. Reader voting, one round a week, with each week's results in a new article.
Prefer to Write the Bracket Yourself?
Here is a working single-elimination bracket in plain HTML, CSS and JavaScript, free to copy. It works with any power-of-two list of teams, clears later picks when an earlier one changes, keeps keyboard focus on the button you pressed, and announces the champion to screen readers.
<div id="bracket" class="bracket"></div>
<p id="champion" aria-live="polite">Champion: TBD</p>
<style>
.bracket { display: flex; gap: 24px; overflow-x: auto; font: 14px/1.3 system-ui, sans-serif; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 130px; }
.match { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.match button { display: block; width: 100%; padding: 8px 10px; border: 0; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.match button + button { border-top: 1px solid #ddd; }
.match button[aria-pressed="true"] { background: #7c3aee; color: #fff; font-weight: 600; }
.match button:disabled { color: #999; cursor: default; }
</style>
<script>
// Teams in seeded order (1 v 8, 4 v 5, 3 v 6, 2 v 7). Any power of two works.
const teams = ['Rovers', 'Comets', 'Foxes', 'Owls', 'Mariners', 'Rockets', 'Stags', 'Herons'];
const picks = []; // picks[round][match] = the team picked to win
for (let n = teams.length / 2; n >= 1; n /= 2) picks.push(Array(n).fill(null));
const entrants = (r, m) => r === 0
? [teams[2 * m], teams[2 * m + 1]]
: [picks[r - 1][2 * m], picks[r - 1][2 * m + 1]];
function pick(r, m, i) {
picks[r][m] = entrants(r, m)[i];
// Clear later picks that no longer have a path to that round.
for (let rr = r + 1; rr < picks.length; rr++) {
picks[rr].forEach((p, mm) => { if (p && !entrants(rr, mm).includes(p)) picks[rr][mm] = null; });
}
render();
document.querySelector('[data-key="' + r + '-' + m + '-' + i + '"]').focus();
}
function render() {
const root = document.getElementById('bracket');
root.replaceChildren();
picks.forEach((round, r) => {
const col = document.createElement('div');
col.className = 'round';
round.forEach((winner, m) => {
const match = document.createElement('div');
match.className = 'match';
entrants(r, m).forEach((team, i) => {
const b = document.createElement('button');
b.type = 'button';
b.dataset.key = r + '-' + m + '-' + i;
b.textContent = team || 'TBD';
b.disabled = !team;
b.setAttribute('aria-pressed', String(!!team && team === winner));
b.addEventListener('click', () => pick(r, m, i));
match.append(b);
});
col.append(match);
});
root.append(col);
});
const champ = picks[picks.length - 1][0];
document.getElementById('champion').textContent = 'Champion: ' + (champ || 'TBD');
}
render();
</script>What it leaves out: byes, connector lines, a phone layout, saving picks, collecting entries and updating results without editing your site's code. That is what the builder is for.
Where to Paste the Bracket
The snippet is the same everywhere. Only where it goes changes:
WordPress
Add a Custom HTML block at the spot in the article where the bracket belongs and paste the snippet. Works in the block editor and Elementor.
Ghost
Type /html in the post editor to add an HTML card, and paste the snippet into it.
Squarespace
Add a Code block and paste the snippet. Squarespace only runs scripts in Code blocks on its Core plan and above.
Wix
Add an Embed HTML element (Add, then Embed Code) and paste the snippet. Make the box tall enough for the first round.
Webflow (Code Embed element), Shopify (Custom Liquid section) and plain .html pages work the same way. Email newsletters can't run scripts, so link from the newsletter to the article with the bracket.
Prompts to Start From
Name the format, the number of teams and what readers can do. These are good starting points:
- Office pool: "A 64-team college basketball pick'em in four regions, with the First Four play-in games. Picks save in the browser, and a submit form asks for name and department."
- Club tournament: "A 12-player double-elimination bracket for our table tennis club. Top 4 seeds get byes. I'll enter the results, so no clicking for visitors."
- Esports night: "A 16-team bracket, best-of-three matches with the series score, dark theme with neon green #39ff14."
- Group stage: "Four groups of four with tables that calculate points from the scores I enter, then the top two from each group go into an 8-team knockout."
- Reader vote: "A 16-entry 'Best Album of the Decade' bracket. Readers vote on each matchup in the current round only, and they can see the vote split after they vote."
Tournament Bracket Questions
Is the tournament bracket widget free?
Yes, to start. The Free plan includes 50 credits for building and editing with AI, and your widget's first 100 loads each month are free. After that each load uses one credit; if you run out, the bracket keeps working with a small "Powered by MightyWidgets" tag. A bracket in a popular article gets a lot of page views, so check the pricing page before a big tournament.
Does the bracket update scores automatically?
No. MightyWidgets does not connect to live sports data, so the bracket shows the results you enter. After each game, edit the result in your dashboard or tell the AI who won, then publish. Every page that embeds the bracket shows the new result.
Can readers fill in their own picks, like a pick'em pool?
Yes. Readers click a team to advance it, and the widget can save their picks in their own browser so the bracket is still filled in when they come back. Those picks stay on that device: a reader who clears their browser data or switches to their phone starts again. To collect brackets, ask for a submit form at the end. Each entry is saved in the widget's data table, where you can view it or download it as a CSV.
Can the widget score reader brackets?
It can show each reader how their own saved picks compare with the results you have entered, for example "5 of 7 correct". A public leaderboard of everyone's scores is a separate job: download the submitted brackets as a CSV, score them in a spreadsheet, and post the top entries in a leaderboard widget.
What bracket sizes and formats can I make?
Single elimination from 4 to 64 teams, double elimination, round robin groups that feed a knockout, play-in games, and fields of any size using byes. Describe the format in plain words and the AI builds the rounds and matchups.
How does a tournament bracket work on a phone?
An 8-team bracket usually fits with a little sideways scrolling. From 16 teams up, ask for a round-by-round view on small screens, with Previous and Next buttons or a tab for each round, and keep the full bracket for desktop. The demo on this page has both views.
Can I add team logos and our publication branding?
Yes. Upload logos to your project and ask for them next to each team name. Give the AI your colours and it styles the bracket to match. Small square logos (around 64px) keep large brackets readable.
Can I put the same bracket in several articles?
Yes. Paste the same snippet into the preview article, the live blog and the results recap. They all show the same widget, so one update after each game changes every page.
Will search engines index the matchups in the bracket?
Don't count on it. The bracket is drawn by JavaScript after your page loads, so search engines are less dependable about crediting its text to your article. Write the key matchups and results into the article copy too.
Build Your Tournament Bracket
Describe the teams and the format, then paste the snippet into your article. Free to start.
Get Started Free

