This article was written usingmacOS 10.15 (Catalina).
How Do I Turn Off iMessage On My Mac?
You may see this option as controls in your macOS version.

In the confirmation pop-up, clickSign Outagain.
You need Do Not Disturb, a feature built into the macOS.
Learn all aboutusing Do not Disturb on a Mac.

You might see this option labeled as System prefs instead.
Move theAllow Notifications from Messagesslider to off/white.
Alternatively, this slider may be labeled Allow notifications.

How Do I Stop My iPhone From Syncing Messages to My Mac?
That’s tricky, but it can be done.
So, there’s not a single setting to stop your iPhone from syncing messages to your Mac.

That said, if you go through this, it can work.
If you’re OK with that, continue on.
To start, on the Mac, go to theMessagesapp >Preferences>iMessage.

Or, selectMessages>prefs>iMessage.
Next, ensure to only check an email address.
All of the messages sent and received on your Mac will only be tied to the email address.

Now, on your iPhone, go toSettings>Messages>Send & Receive.
In theStart New Conversations Fromsection, confirm only your phone number is checked.
To turn off the iMessage notification sound, go toSystem Preferences>NotificationsorNotifications & Focus.

From theNotificationstab, select theMessagesapp from the apps list and check the option besideAllow Notifications.
Then uncheck the box next toPlay sound for notification(s).
Liketurning off message preview on iPhones, you might hide message contents on your Mac.

OpenSystem PreferencesorSystem Settingsand selectNotificationsorNotifications & Focus>Notifications>Messages.
Look for theShow previewsdrop-down menu and selectNever.
