Browser-based contact cleanup · .vcf files are read here, never sent

Merge and Dedupe vCards

Combine several .vcf exports (vCard 2.1, 3.0 or 4.0, including quoted-printable text), find the same person by normalised phone number, email or similar name, choose which value wins on each conflict, and save one clean vCard or CSV.

Contact files

Drop one or more .vcf files

Up to 30 files of 20 MB each

Merge and Dedupe vCards by Phone, Email and Name

Operator: Abdulla Al Fahad. How tools are built and checked

After a phone upgrade, an Outlook export and an old address book, the same John Smith exists three times: once with (415) 555-2671, once as +1-415-555-2671 and once as Jon. Drop the .vcf files here and the page groups contacts that share a phone number once both are normalised, an email address, or a similar name, then shows each group with the reason it matched so you can confirm it before anything merges.

Key features

  • Reads several .vcf files in vCard 2.1, 3.0 and 4.0, including quoted-printable text with a CHARSET, folded lines and embedded photos
  • Phone numbers compared in E.164 form through libphonenumber-js, with a default country for numbers written without +
  • Email matched case-insensitively, names matched with a Jaro-Winkler similarity you set
  • Per-group control: untick a contact that does not belong, turn a group off, or pick which value wins on a conflict
  • Writes vCard 3.0 or 4.0 with proper folding, or a CSV
  • Phone data (about 40 KB compressed) is fetched only when the page opens

How contacts are matched and merged

Each file is decoded as UTF-16 when it has a byte-order mark, as UTF-8 when valid, and as Windows-1252 otherwise. Lines are unfolded, and a vCard 2.1 quoted-printable value that continues after a trailing = is joined, then decoded with the property's CHARSET. Up to 30 files of 20 MB are read, with up to 20,000 contacts from each.

Properties the page does not model, such as X- fields and IMPP, are carried through unchanged. Apple's item groups and their X-ABLabel names are folded into the phone, email or URL type.

On the way out, backslash, semicolon and comma are escaped inside values, so an address line such as Suite 5; Floor 2 or a family name that contains a semicolon stays in its own field when the file is read again.

Line breaks and other control characters are removed from every value, including labels, birthdays, UIDs and photo links, and a parameter that contains a colon, semicolon or comma is written in double quotes, so a crafted label cannot start a new property or a new card.

How it works

Phone numbers that libphonenumber accepts as valid are keyed by country code and national number, so (415) 555-2671 with the United States selected and +1-415-555-2671 are the same key; numbers it rejects fall back to their digits if there are at least seven. For names, each name is lower-cased, stripped of accents, punctuation and titles such as Dr, and its words are sorted, so Smith, John equals John Smith, and groups are linked when similarity reaches the threshold. Contacts with a single-word name match only on an identical name.

Common use cases

  • A founder merges a phone export of 1,850 contacts with a Gmail export of 2,300 and finds 412 duplicate groups, most matched by email, and exports one vCard of about 3,700 contacts.
  • A parent finds that a shared home landline joins two family members into one group, unticks the second person, and the group merges only the genuine duplicate.
  • An office manager merges a Windows-1252 file with accented names and a UTF-8 file, and gets one UTF-8 vCard in which every name reads correctly.
  • A sales rep keeps both versions of a contact's job title by choosing the newer one in the conflict list while the phone numbers from both are combined.

How to use this tool

  1. Drop one or more .vcf files, or press Load example.
  2. Choose what counts as a duplicate, the country for local numbers, and the name similarity.
  3. Press Find duplicates and read each group's reasons; untick contacts that are different people.
  4. For every conflict (name, organisation, title, birthday, nickname) pick the value to keep, or leave the most complete contact to decide.
  5. Choose vCard 3.0 or 4.0, whether to keep photos and whether to write phones as +E.164, and check the preview.
  6. Download the .vcf, and the CSV if you want a spreadsheet copy.

Example

Two contacts from different files, country set to United States

John Smith, ORG Acme Corp, TEL;TYPE=CELL (415) 555-2671
Jon Smith, ORG Acme Corporation, TEL;CELL;VOICE +1-415-555-2671, TEL;HOME 415.555.0188 (vCard 2.1)

Group reason and the merged card (vCard 4.0, +E.164 option on)

same phone +14155552671; name conflict John Smith / Jon Smith; organization conflict Acme Corp / Acme Corporation
FN:John Smith
ORG:Acme Corp
TEL;TYPE=cell,voice:+14155552671
TEL;TYPE=home:+14155550188

Common pitfalls

Matching is transitive: if A shares a phone with B and B shares an email with C, all three land in one group. The reasons line shows each link, so look at it before you accept a large group.

Fuzzy names raise false matches among short or common names; at 0.85 expect more, and at 1.00 only names that are identical once accents, titles and word order are ignored will match.

Unmodelled properties are copied from every merged card, so conflicting values for fields such as a second X- label can both survive in the result.

Photos are the biggest part of most address-book files; vCard 3.0 writes them as base64, so keeping them makes the output large, and removing them is one checkbox.

  • Turn on the option that requires similar names for phone and email matches when a household shares a phone or a team shares a mailbox; it stops the group from chaining different people together.

Common errors and how to fix them

"contacts.vcf does not look like a vCard file: there is no BEGIN:VCARD near the start."
The file is not a vCard export, or it is compressed or encrypted. Open the contacts app's export again and choose vCard (.vcf).
"phone.vcf: the last card has no END:VCARD and was skipped."
The file was cut off. The cards before the break are still read; re-export to recover the last one.
"phone.vcf: a BEGIN:VCARD appeared before the previous card ended; the unfinished card was skipped."
A card is missing its END:VCARD line, which usually means two exports were pasted together at the wrong place. Add the missing line or re-export.

Best practices

  • Merge in two passes: first with phone and email only, review, save, then add the name matcher on the cleaned file for the remaining near-duplicates.
  • Keep the original files until you have imported the merged one and spot-checked a dozen contacts that had several numbers.

How two cards become one

The most complete contact in a group, the one with the most fields filled and the longest name, is the starting point. For name, organisation, title, birthday and nickname, if the cards disagree the page lists the distinct values with their source file, and your choice replaces the default.

Everything that can legitimately appear several times is combined rather than chosen: phones are merged by their normalised number and emails by lower-cased address, with their types joined; addresses and web links are merged by their text; notes are joined unless one contains the other; categories are united. The first photo found is kept, the primary's UID is kept, and revision dates are dropped.

What the output files contain

vCard output escapes backslashes, commas, semicolons and line breaks, and folds lines at 75 bytes without splitting a UTF-8 character. Version 3.0 writes TYPE=CELL,VOICE and PREF in the type list; version 4.0 writes lower-case types and PREF=1. Every card gets an FN, falling back to the first email, phone or organisation if the name is empty.

The CSV has one row per contact with full name, first and last name, organisation, title, emails, phones, addresses, links, birthday, notes, categories and source file. Text that begins with =, +, - or @ is prefixed with an apostrophe so that a spreadsheet does not read it as a formula.

Frequently asked questions

How does this differ from converting vCard to CSV or CSV to vCard here?

Those converters change the format of one file and keep every contact. This page reads several vCard files, decides which contacts are the same person and writes one contact for each, so it is the step to take before converting.