How fun!
The "natural" way to convert bits to grams (ie not based on any specific technology) would be to combine Landauer's Principle and Mass-energy equivalence.
https://en.wikipedia.org/wiki/Landauer's_principle
However even then, you still have to choose a temperature (eg STP) which is ultimately an arbitrary choice.