Question: how to pair bluetooth headphones to imac?
Answer: Make sure the device is turned on and discoverable (see the device's manual for details).
On your Mac, choose Apple menu > System Preferences, then click Bluetooth. ... 
Select the device in the list, then click Connect.