This free mass converter changes milligrams (mg) into grams (g) and back again, updating live as you type. It is useful for nutrition labels, medication doses, lab work, and recipes that switch between the two metric units.
How it works
The metric prefix “milli” means one-thousandth, so the relationship is exact: 1 g = 1000 mg. The conversion is a simple power-of-ten shift:
- g = mg ÷ 1000
- mg = g × 1000
The relationship is linear, so the converter is bidirectional — edit either field and the other updates instantly.
Example
A nutrition label lists 2300 mg of sodium and you want it in grams.
2300 ÷ 1000 = 2.3 g.
| Milligrams (mg) | Grams (g) |
|---|---|
| 100 mg | 0.1 g |
| 500 mg | 0.5 g |
| 1000 mg | 1 g |
| 2300 mg | 2.3 g |
| 2500 mg | 2.5 g |
All calculations run entirely in your browser — no data is sent to any server.