Split Full Names
Operator: Abdulla Al Fahad. How tools are built and checked
A sign-up form that asked for "Full name" leaves you with one column holding Dr. Leona M. Fairweather, Pieter de Vries and Hollis Grant, Esq. A mail merge that greets people as "Dear Ms Fairweather", a CRM import with separate first and last fields, or a deduplication pass that compares surnames all need those pieces apart. Cutting at every space gets most of them wrong: the doctor's title lands in the first-name field and "de" is split away from "Vries".
Split Full Names reads each cell as a person's name rather than as delimited text. It peels a courtesy or rank title off the front, a generational or professional suffix off the end, keeps surname particles attached to the surname, and writes five new columns: title, first_name, middle_name, last_name and suffix. Every other column and the row order stay as they were.
Key features
- Five output columns written next to the name column: title, first_name, middle_name, last_name, suffix.
- First Last or Last, First input order.
- Surname particles (van der, de la, bin, St and others) kept with the last name.
- Titles and suffixes matched with or without dots, including Ph.D. and M.D.
- A report with rows parsed, single-word names, rows to check and rows with a title or suffix, plus the first ten rows to check with their row numbers.
- The name column is picked for you: the first header containing "name", otherwise the first column.
- Up to 50,000 rows per file.
Titles are recognised only at the start of the name: Mr, Mrs, Ms, Miss, Dr, Prof, Sir, Dame, Rev, Hon, Capt, Col, Gen, Lt and Sgt, in any letter case, with or without a trailing dot. Two in a row, such as "Rev Dr", both go into the title column. The title is copied as written, so "dr." stays lower case.
Suffixes are read from the end: Jr, Sr, II, III, IV, PhD, MD, Esq, CPA, DDS and RN. Dots inside them are ignored when matching, so Ph.D. and M.D. count. A comma before a suffix is allowed ("Hollis Grant, Esq."), and stacked suffixes like "III MD" are kept together in one cell.
After the title and suffix are gone, the last word is the surname. Any of these words directly in front of it join the surname: van, der, den, von, de, del, della, di, da, dos, du, le, la, bin, al, el and St. That is how "Maria van der Berg" becomes last name "van der Berg" and "Juan Carlos de la Vega" becomes first name Juan, middle name Carlos, last name "de la Vega". The first word is always the first name, so a particle is never read at the front of a name. Hyphenated surnames such as Lee-Park are one word and stay whole.
In Last, First order the text before the first comma is the surname, as is, and the text after it holds the given names. A second comma can carry a suffix: "Okafor, Chidi, Jr.". A cell with no comma, or with a comma only before a suffix, is read First Last instead, and the report counts those rows.
How it works
Each cell has its spaces collapsed and is split at commas. In First Last order, trailing comma-separated pieces that are all suffixes are set aside. The remaining words lose any leading titles and trailing suffixes, but at least one word is always kept, so a person called "Miss" with nothing else in the cell would still get a first name.
If one word is left, it becomes the first name, except when a title came before it: "Mrs. Abebe" reads as title Mrs. and last name Abebe, because a title is normally followed by a surname. With two or more words, the tool walks back from the last word over any particles to find where the surname starts. The first word is first_name and everything between it and the surname is middle_name.
Common use cases
- Turning a webinar registration export into salutation-ready columns so an email can open with the title and surname.
- Preparing a member list for a CRM that rejects records without a separate last name.
- Reading a court or library export written as "Surname, Given names" into the first-then-last layout a spreadsheet template expects.
- Getting surnames into their own column so duplicate records like "Dr. Anil Rao" and "Anil Rao MD" can be matched.
How to use this tool
- Paste your CSV or upload a .csv file. The first row must be the header.
- Check that the Full name column picker shows the right column.
- Choose First Last or Last, First to match how the names are written.
- Clear Keep the original name column if you want only the split parts.
- Press Transform, read the counts above the output, and look at any rows listed for checking.
- Copy or download the CSV.
Example
Input CSV (First Last order)
id,full_name
1,Dr. Leona M. Fairweather
2,Pieter de Vries
3,"Hollis Grant, Esq."
4,Imani Wanjiru Kamau Otieno
5,Björk
6,Mrs. Abebe
7,Rev Samuel O. Adeyemi Sr.Output with the original column removed
id,title,first_name,middle_name,last_name,suffix
1,Dr.,Leona,M.,Fairweather,
2,,Pieter,,de Vries,
3,,Hollis,,Grant,Esq.
4,,Imani,Wanjiru Kamau,Otieno,
5,,Björk,,,
6,Mrs.,,,Abebe,
7,Rev,Samuel,O.,Adeyemi,Sr.Tips for best results
- Look at the "to check" count first. Those are names of four or more words with no particle, where the tool has no way to tell a double first name from a two-word surname.
- If the report says some rows have a comma that is not before a suffix, your file is probably in Last, First order. Switch the order and run it again.
- Leave Keep the original name column on until you have checked the output. It gives you something to compare against and to fall back on.
- If your file already has a first_name or last_name column, the tool stops and says so instead of writing a second column with the same name. Rename the old one first.
Common pitfalls
The surname rule is the last word plus any particles before it. That suits most Western European name orders and fails for others. "Imani Wanjiru Kamau Otieno" comes out as first name Imani, middle name "Wanjiru Kamau", last name Otieno, which may not be how that person's family name works. Hispanic double surnames like "García Márquez" lose their first half to the middle name unless the cell is written Last, First.
Names written family name first without a comma, which is common for Chinese, Japanese, Korean, Hungarian and Vietnamese names, are read the wrong way round. Nothing in a plain name tells the tool which order was used, so it cannot fix this for you.
Particles are matched as words, not by meaning. A middle name that happens to be "La" or "Del" is pulled into the surname, and only the particles directly before the last word join it: "Ahmed bin Salman al Saud" gives first name Ahmed, middle name "bin Salman" and surname "al Saud".
A word that matches a title at the start of the cell is always treated as a title, so a given name such as "Gen" would be moved to the title column.
Common errors and how to fix them
- Everyone's first and last names came out swapped, with the given name in last_name.
- The names are written "Surname, Given". Choose Last, First and run again. The report's comma warning points to this.
- The tool says the file already has a "last_name" column.
- Rename or remove that column first. The tool will not overwrite existing data or create two columns with the same name.
- The wrong column was split.
- The picker chooses the first header with "name" in it, which can be company_name or username. Pick the full-name column from the list.
- The file is rejected as too large.
- The limit is 50,000 rows. Split the file into parts with a row-based splitter, run each part, and join the results afterwards.
Best practices
- Run a sample of your real data first and read every row in the check list before trusting the whole file.
- Keep the original column in the export you send on, so anyone downstream can see where each part came from.
- For lists with many family-name-first names, ask the source for separate fields instead of reconstructing them.
- Use title and suffix as written for display, and normalise them separately if a system needs a fixed set of values.
What the report counts mean
Rows parsed is every row whose name cell was not blank. Single-token counts names that ended up with one name word after titles and suffixes were removed; that includes mononyms like Björk and title-plus-surname cells like "Mrs. Abebe". Rows to check are names of four or more words where no particle was found in front of the surname. Rows with a title or suffix tells you how many cells had either one stripped off.
Blank name cells are counted separately and get five empty columns, so the row still lines up with the rest of the file.
Why it does not guess more cleverly
Getting "Mary Ann Lou Jones" right needs knowledge about that particular person: whether Mary Ann is one given name, whether Lou is a middle name or part of the surname. No word list answers that reliably, and a confident wrong split is worse than a flagged one. The tool applies one rule the same way to every row and tells you which rows the rule is weakest on.
- Predictable: the same input always gives the same split.
- Reviewable: rows with four or more words and no particle are listed with their row numbers.
- Reversible: keep the original column and nothing is lost.
Frequently asked questions
Does it handle "Smith, John" in the same file as "John Smith"?
Yes, with Last, First chosen. Cells with a comma are read surname first. Cells without one, and cells whose only comma comes before a suffix such as "John Smith, Jr.", fall back to First Last and are counted in the report.
Why did "Mr. Smith" go into last_name and not first_name?
A single word after a title is almost always a surname, so the tool puts it there. A single word with no title, such as Zendaya, goes into first_name.
Can I add my own titles, suffixes or particles?
Not at the moment. The lists are fixed. A word that is not on them is treated as an ordinary name word.
Are accented and non-Latin letters kept?
Yes. Names are split at spaces and commas only, so letters such as ö, ñ or ł pass through unchanged. Matching titles and particles ignores letter case.