3.1 g x 1000 = 3100 mg
3.1 g = 3100 mg
Multiply the value in grams by 1000 to get mg.
Open grams to mg converter