How to Remove Duplicate Numbers From a Class Contact List

Text & WritingBy the FixDoks team28 Oct 20265 min readChecked 28 Oct 2026

A teacher checking a student contact list on a laptop beside a notebook.
Quick answer

Paste your contact list into a remove-duplicate-lines tool, one number per line, with trim spaces and drop empty lines on. First make every number the same format, since 9876543210, 98765 43210 and +91 9876543210 count as three different lines. Then sort the result to spot typing mistakes.

Best formatTen digits, no spaces or +91
SettingsTrim spaces, drop empty lines
Order keptFirst copy stays in place
ThenSort to spot typos

To clean a class or group contact list, paste all the numbers into a remove-duplicate-lines tool, one number per line, switch on trim spaces and drop empty lines, and copy the result. Every repeated number disappears and the first copy stays in its original place. Fix the number format first, or "98765 43210" and "9876543210" will count as two different people.

This is the job nobody plans for. A class representative collects numbers from three WhatsApp groups, a Google Form and a paper sheet. The list ends up with 40 names where 31 are real. Sending the same notice twice to the same parent is a small embarrassment. Counting 40 for a fee collection is a bigger one.

Paste your list into Remove Duplicate Lines. It can ignore case, trim spaces and drop empty lines, and it keeps the original order.

Try it here

Remove Duplicate Lines

Same settings as the full tool page.

Runs in your browser. Nothing you type is sent to our server. Open the full Remove Duplicate Lines page

Why duplicates survive a simple dedupe

A tool compares lines exactly, character by character. That is correct behaviour, but phone numbers are written in many ways. These look different to the tool even though a person sees one number.

How it was typedWhat goes wrong
9876543210Plain ten digits, the base form
98765 43210Space inside, counted as different
+91 9876543210Country code added
09876543210Leading zero added
9876543210 (trailing space)Invisible space, counted as different
Cards: 9876543210: Plain ten digits, the base form; 98765 43210: Space inside, counted as different; +91 9876543210: Country code added; 09876543210: Leading zero added; 9876543210 (trailing space): Invisible space, counted as different
Why duplicates survive a simple dedupe at a glance, from the table in this guide.Made by FixDoks from this guide

The numbers in this table are made up, only to show the pattern. The fix is the same for all of them: make every line look the same before you remove duplicates.

Step by step: clean the list in four moves

  1. Paste every list into one box, with one entry per line.
  2. Make the format identical, using find and replace to remove spaces, dashes and the +91 prefix.
  3. Run Remove Duplicate Lines with trim spaces and drop empty lines on.
  4. Sort the result A to Z or by number, then copy it back to your sheet.
Steps: Paste every list into one box, with one entry per line.; Make the format identical, using find and replace to remove spaces, dashes and the +91 prefix.; Run Remove Duplicate Lines with trim spaces and drop empty lines on.; Sort the result A
Step by step: clean the list in four moves: the steps from this guide, in order.Made by FixDoks from this guide

The order matters. If you dedupe before you fix the format, you only remove the exact repeats and keep the near repeats.

Step 1: get one entry per line

Contacts copied from a PDF or an email often arrive as one long block, or with a line break in the middle of each number. Fix that first. Our guide to removing line breaks from copied PDF text shows how to get clean lines out of messy paste.

If names and numbers sit on the same line, keep them together. "Anita Sharma 9876543210" and "Anita 9876543210" will not match, so decide whether you are cleaning by number or by name before you start. For a contact list, cleaning by number alone is usually safer, since the same parent often appears under two spellings.

Step 2: make the numbers look the same

Use find and replace to strip the characters that vary. Replace spaces with nothing. Replace dashes with nothing. Replace the "+91" with nothing if every number is Indian. Stay with the ten-digit form because it is what most people type.

Watch for numbers that begin with a 0. A leading zero is a trunk dialling habit, not part of the mobile number, so remove it as well. If you are building WhatsApp links later, the click-to-chat format wants the full international number with no zeroes, brackets or dashes, so you can add 91 in front of the clean ten digits at the end.

Step 3: remove the duplicates

Turn on three options, if the tool offers them: ignore case, trim spaces, and drop empty lines. Ignore case matters for email lists, because "Raj@school.in" and "raj@school.in" are one address. Trim spaces removes the invisible gap at the end of a line. Dropping empty lines removes the blanks left by pasting.

Because the tool keeps the first copy and the original order, your list still reads in the order people joined. That helps when the first occurrence carries a name you trust more than a later one.

Step 4: sort so mistakes are easy to spot

Open Sort Lines and sort numerically. Two numbers that differ by one digit will now sit next to each other, which is the quickest way to find a typing mistake. A number that has nine digits instead of ten also stands out at the top or bottom of a length sort. The tool can also remove duplicates and empty lines in the same step, so you can use it alone for a short list.

A worked example with made-up numbers

Say you collected 12 lines and ended with these entries, among others: 9876543210, 98765 43210, +91 9876543210, 9123456780 and another 9123456780 with a trailing space.

Without cleaning, a plain dedupe leaves all five, because only exact matches are removed. After step 2 the first three become the same ten digits, and the trailing space goes in step 3. You end with two distinct numbers, 9876543210 and 9123456780. Five lines became two, which is the real count.

Common mistakes

  • Deduping before fixing the format. The tool then keeps near repeats.
  • Mixing names and numbers on one line, so one parent stays in twice.
  • Forgetting a hidden space at the end of a pasted line.
  • Deleting a number because it looks like a repeat, when two siblings share a parent's phone. Decide beforehand whether one number means one contact.
  • Pasting a list of private numbers into any tool you do not trust. Share class contacts only with people who need them.

Keep the cleaned list safe

Save the cleaned list in a sheet before you delete the originals. Keep a copy of the raw paste in a separate file for a day, in case you need to check a name. Count the lines before and after. If you started with 40 and ended with 31, you know 9 were repeats, and you can say so if anyone asks.

Tools for this

Frequently asked questions

Why does my list still have duplicates after cleaning?

The tool compares lines exactly. A number with a space, a +91 prefix, a leading zero or a trailing space is a different line. Make the format identical first, then remove duplicates.

Does the tool keep the first or the last copy?

It keeps the original order, so the first copy of each line stays where it was. Later repeats are removed.

Can I remove duplicate email addresses the same way?

Yes. Turn on ignore case so Raj@school.in and raj@school.in count as one address, and turn on trim spaces to catch invisible gaps.

What if the same number belongs to two siblings?

Decide before you start whether one number means one contact. If you need both names, clean by number but keep the names in a separate column.

How do I sort the cleaned numbers?

Use a sort-lines tool and choose a numeric sort. Numbers that differ by one digit then sit next to each other, and a nine-digit number is easy to find.

Should I paste private contacts into an online tool?

Only paste numbers you are allowed to handle, and share the cleaned list only with people who need it. Remove the list from the page when you are done.

Sources

Rules and limits change. Always check the latest official notification or portal before you submit a form.