How to Convert Grams to Moles?

In order to convert grams to moles you need to know what substance you are working with because moles are calculated using molecular mass which will in turn tell you how many grams are in a mole of that substance.