If your collecting at STP, you can use the converting constant of 22.4 litters/ One Mole. So, you would have convert ml to L and then go from there.
Also, when working with grams, you usually need to know the gas your working with. As one mole equals the atomic mass of an element in grams.