Skip to content

Name Order Swapper

Flip whole name lists between First Last and Last, First in one pass, with unsplittable lines passed through untouched and counted instead of guessed at.

Privacy: your files never leave your device. All processing happens locally in your browser.

How to use

  1. 1.Paste names, one per line, in either order or mixed.
  2. 2.Pick auto-detect or force a direction, and choose how multi-word surnames should split.
  3. 3.Review the converted and left-as-is counts, then copy the result.

About Name Order Swapper

Name Order Swapper converts lists of names between the two orders every roster, register and citation style seems to disagree about: First Last and Last, First. Paste names one per line, pick a direction or let the tool detect each line's format, and copy back the flipped list, with a count of how many lines converted and how many were left untouched.

Auto-detect, the default, reads each line on its own: a line containing a comma is treated as Last, First and flipped to natural order; a line without one is treated as First Last and flipped to surname-first. That means a mixed list, half exported from one system and half from another, normalizes in a single pass. The two forced modes are there for when you know the format: forcing comma-splitting or forcing name-order splitting, and in forced mode a line that does not match the expected shape is left exactly as it was rather than mangled.

Multi-part names are handled by an explicit switch rather than a guess. By default everything after the first word is treated as the surname, so Ada King Lovelace becomes King Lovelace, Ada; the alternative treats only the last word as the surname, giving Lovelace, Ada King. Middle initials travel with the given names either way, so Lovelace, Ada K. flips cleanly to Ada K. Lovelace. The separator defaults to a comma and space and can be customized.

What the tool refuses to do is as important as what it does. A single word, a blank line, or a comma-mode line with nothing on one side of the comma is passed through byte-for-byte and counted in a separate left-as-is total, never dropped and never guessed at. And the page is plain about the limit every name tool shares: name conventions differ across cultures, and no algorithm can identify surname boundaries in general. Suffixes are the honest example: Martin Luther King Jr. under last-word mode produces Jr., Martin Luther King, and rather than pretending otherwise, that case is recorded in the tool's own tests with both the ideal answer and the actual one, so the limitation is documented where it can be checked rather than discovered in your data.

Simple two-word names round-trip perfectly, flipping to Last, First and back reproduces the original, a property the tests pin. Converted lines have their spacing tidied to single spaces; untouched lines keep every byte. Input is capped at one million characters and processes linearly, converting a full list in milliseconds. Everything runs in your browser: name lists are exactly the kind of data you should not paste into an uploading website, and this page never uploads, stores or transmits anything.

Use it for class rosters, mailing lists, citation cleanup, contact exports, event registrations, or any spreadsheet column that arrived in the wrong order. Check the left-as-is count when you finish: it is the list of lines the tool declined to guess about, which is precisely where a human eye is worth thirty seconds.

Methodology & sources

Process each line independently: detect or force the source format, split on the first comma or on the chosen surname rule, rejoin with the configured separator, pass through anything that cannot be split cleanly with a separate count, and pin both the round-trip property and the documented suffix limitation in tests.

Frequently asked questions

What happens to names the tool cannot split?
They pass through byte-for-byte and are counted in a separate left-as-is total. A single word, a blank line or a malformed comma line is never guessed at or dropped.
How are middle names and initials handled?
They stay with the given names: Lovelace, Ada K. becomes Ada K. Lovelace. For the reverse direction, a switch controls whether everything after the first word or only the last word counts as the surname.
Does it understand suffixes like Jr. or III?
No, and the page says so plainly: suffixes are not specially detected, so Martin Luther King Jr. under last-word mode gives Jr., Martin Luther King. The case is pinned in the tool's tests with both the ideal and actual outputs, and the left-as-is philosophy means nothing is silently invented.

Text Tools guides

View all