For example I know "Backup Your Mobile" on the Google Play Store does the WiFi passwords. There are likely other apps that do this.
It's ad supported so there's a ding. See if they see an unencumbered version.
Once in a while a member claims there is not a thing. What they meant was the thing wasn't free.
I have read many articles. They all say that to back up on Gmail Account and Google Drive. Then it supposedly restores the contacts and wifi passwords when logging back in with the new Android phone. But this is not the case for me. There is no problem that all the info in my Gmail Account are there. But all the wifi passwords are never restored. I have to re-enter every single one on each phone. [All the Back-up, Account Sync, Auto Restore ... are enabled.] I wonder if I missed anything about the restore procedure. All they say is to back up on the Google Drive. But no one mentions anything if or how to restore the back-up from Drive back to the new phone!
Thanks for input.