If “iCloud” appears in the menu instead of “On My iPhone,” your contacts are currently being synced through your iCloud account. You’ll be able to sync them to your computer by signing into iCloud on it.
If you’re already signed in, you’ll see your Apple ID at the top of the menu, and the iCloud settings beneath. Make sure you’re signed in with the correct Apple ID.
Mac - Click the Apple menu and select System Preferences. Click the iCloud option. Sign in with your Apple ID. Toggle “Contacts” on. Windows - Download iCloud for Windows from Apple. Run the installer and log in with your Apple ID. Check the box for “Mail, Contacts, Calendars, and Tasks. “[2] X Research source