{
  "entity_type": "unit_conversion_page",
  "id": "grams-to-mg",
  "name": "Grams to Milligrams",
  "title": "Grams to Milligrams Converter (g to mg)",
  "description": "Convert grams to milligrams: 1 g = 1000 mg. Exact conversion factor, formula, 22-row table and worked examples, with JSON API and MCP access.",
  "quantity": "mass",
  "quantity_name": "Mass",
  "base_unit": "kg",
  "from_unit": {
    "symbol": "g",
    "display": "g",
    "name": "grams",
    "singular": "gram"
  },
  "to_unit": {
    "symbol": "mg",
    "display": "mg",
    "name": "milligrams",
    "singular": "milligram"
  },
  "linear": true,
  "factor": 1000,
  "inverse_factor": 0.001,
  "formula": "milligrams = grams × 1000",
  "reverse_formula": "grams = milligrams × 0.001",
  "unit_relation": "1 g = 1000 mg",
  "examples": [
    {
      "value": 5,
      "result": 5000,
      "text": "5 g = 5000 mg"
    },
    {
      "value": 12.5,
      "result": 12500,
      "text": "12.5 g = 12500 mg"
    },
    {
      "value": 100,
      "result": 100000,
      "text": "100 g = 100000 mg"
    }
  ],
  "table": [
    {
      "g": 1,
      "mg": 1000
    },
    {
      "g": 2,
      "mg": 2000
    },
    {
      "g": 3,
      "mg": 3000
    },
    {
      "g": 4,
      "mg": 4000
    },
    {
      "g": 5,
      "mg": 5000
    },
    {
      "g": 6,
      "mg": 6000
    },
    {
      "g": 7,
      "mg": 7000
    },
    {
      "g": 8,
      "mg": 8000
    },
    {
      "g": 9,
      "mg": 9000
    },
    {
      "g": 10,
      "mg": 10000
    },
    {
      "g": 15,
      "mg": 15000
    },
    {
      "g": 20,
      "mg": 20000
    },
    {
      "g": 25,
      "mg": 25000
    },
    {
      "g": 30,
      "mg": 30000
    },
    {
      "g": 40,
      "mg": 40000
    },
    {
      "g": 50,
      "mg": 50000
    },
    {
      "g": 75,
      "mg": 75000
    },
    {
      "g": 100,
      "mg": 100000
    },
    {
      "g": 200,
      "mg": 200000
    },
    {
      "g": 250,
      "mg": 250000
    },
    {
      "g": 500,
      "mg": 500000
    },
    {
      "g": 1000,
      "mg": 1000000
    }
  ],
  "faq": [
    {
      "q": "How many milligrams are in one gram?",
      "a": "1 g = 1000 mg. The factor comes from the SI definitions of both units (NIST SP 811 / BIPM), so it is exact or correct to at least 10 significant figures."
    },
    {
      "q": "What is the formula to convert grams to milligrams?",
      "a": "Multiply the value in grams by 1000: milligrams = grams × 1000. For example, 5 g = 5000 mg."
    },
    {
      "q": "How do I convert milligrams back to grams?",
      "a": "Multiply by the inverse factor 0.001 (grams = milligrams × 0.001), or use the milligrams-to-grams page."
    }
  ],
  "sources": [
    {
      "name": "NIST Special Publication 811 – Guide for the Use of the International System of Units (SI), Appendix B conversion factors",
      "url": "https://www.nist.gov/pml/special-publication-811",
      "type": "standard",
      "retrieved_at": "2026-09-24"
    },
    {
      "name": "BIPM – The International System of Units (SI Brochure, 9th edition)",
      "url": "https://www.bipm.org/en/publications/si-brochure",
      "type": "standard",
      "retrieved_at": "2026-09-24"
    },
    {
      "name": "Wikipedia – Conversion of units",
      "url": "https://en.wikipedia.org/wiki/Conversion_of_units",
      "type": "reference",
      "retrieved_at": "2026-09-24"
    }
  ],
  "freshness": {
    "type": "static",
    "max_age_seconds": null,
    "note": "Fixed conversion factors (NIST/BIPM definitions); results never go stale."
  },
  "api": {
    "convert": "https://tttkmbb.com/api/v1/convert?value=5&from_unit=g&to_unit=mg",
    "calculator": "https://tttkmbb.com/api/v1/calculate/mass?value=5&from_unit=g&to_unit=mg",
    "mcp_tool": "convert_units",
    "mcp_arguments": {
      "value": 5,
      "from_unit": "g",
      "to_unit": "mg"
    }
  },
  "links": {
    "html": "https://tttkmbb.com/conversion/grams-to-mg",
    "markdown": "https://tttkmbb.com/conversion/grams-to-mg.md",
    "json": "https://tttkmbb.com/conversion/grams-to-mg.json",
    "reverse": "https://tttkmbb.com/conversion/mg-to-grams",
    "quantity_converter": "https://tttkmbb.com/conversion/mass",
    "units": "https://tttkmbb.com/api/v1/units?quantity=mass"
  },
  "timestamp": "2026-09-24"
}