The list is shuffled with the browser’s cryptographic generator, then dealt out evenly. With weights, the teams come out at close levels.

5,000 test runs: teams 0.37 levels apart with “Balance by level”, 2.82 with a plain shuffle. Full test.
Two ways to split
Choose “Number of teams” when the pitch decides it: two sides, four relay teams. Choose “Players per team” when the activity does: groups of three for a lab, pairs for a workshop. With players per team, a remainder never becomes a one-person team.
How the split is made
The list is shuffled with the Fisher–Yates method and numbers from the browser’s cryptographic generator, then dealt to the teams in turn like cards. Every player has the same chance of landing on any team and beside any other player.
Balanced by level, from a spreadsheet
Tick “Balance by level” and each line becomes name; weight; group. Paste the columns copied from Excel or Google Sheets, or import a CSV file. Weight and group are optional, and a header line is skipped.
Weight is the player’s level, and a line with no number counts as 1. Group is what you want spread out: a position, a class, or people who should not end up together. Team sizes still differ by one at most, and each team shows the sum and the average of its weights. With one player far stronger than everyone else, no split makes the averages equal.
What it will not do for you
Without balancing by level, the split knows nothing about skill or who gets along. Need two captains? Draw them first with the name picker and take them out of the list. To decide which team kicks off, flip a coin.