The operating system should recognise it automatically.
To format on a Mac, Open the Disk Utility application (Finder, Applications, Utility, Disk Utility).
Select your SD card. Select "Erase" from the menu. Then choose either "FAT" Or "Mac OS Extended" from the menu options. The latter will only work on a Mac.