Syncing between Imac, Macbook, Android phone and iPad

You could check out this post which shows multiple approaches with instructions to sync between devices using 3rd party services

I personally use Syncthing which is an amazing free and open source service with a lot of advanced options