Format team roster

Turn comma-separated jersey numbers, names, and positions into a Markdown squad table.

freeworks offlinenothing uploaded
ToolTeam Roster Formatter
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Each non-empty line becomes one row under number, player, and position headings, with the number column aligned right. Pipe characters are backslash-escaped so supplied text stays inside its intended table cell.

  • The heading defaults to Team only when no team name is supplied.
  • No sport-specific jersey range, position list, uniqueness rule, or lineup order is imposed.

Worked example

Format team roster
Input
											Team name: Falcons
Players: 7, Alex Morgan, Forward
1, Sam Lee, Goalkeeper
										
Output
												# Falcons

| # | Player | Position |
|---:|---|---|
| 7 | Alex Morgan | Forward |
| 1 | Sam Lee | Goalkeeper |
											

When to use this

Club READMEs publish squads, tournament notes format registration rows, and coaching repositories share numbers and positions.

Edge cases

  • A name containing a comma, such as Alex Smith, Jr., cannot be represented faithfully by the three-field comma format.
  • A pipe in a name is escaped instead of opening an unintended fourth cell.
  • Duplicate jersey numbers stay as separate rows because uniqueness rules differ among competitions.

References