1. Back up contacts
Export your contacts to a file or sync them to your account before merging, so you can restore them if something goes wrong.
2. Use the merge tool
Use your phone's duplicate finder or the contacts app's merge option. Review each suggestion, because some people share similar names.
3. Clean up accounts
Remove contacts stored in accounts you no longer use. Keep one trusted account as the main address book to prevent duplicates coming back.