{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/cooking-conversion-calculator/schema.json",
  "title": "Cooking Conversion Calculator inputs",
  "description": "Convert common cooking volume and weight units, including optional volume-to-weight conversion by density.",
  "type": "object",
  "properties": {
    "value": {
      "title": "Amount",
      "type": "number",
      "default": 1,
      "minimum": 0,
      "x-step": 0.0001
    },
    "fromUnit": {
      "title": "From unit",
      "type": "string",
      "default": "cup",
      "enum": [
        "tsp",
        "tbsp",
        "floz",
        "cup",
        "pt",
        "qt",
        "gal",
        "ml",
        "l",
        "g",
        "kg",
        "oz",
        "lb"
      ],
      "x-optionLabels": {
        "tsp": "Teaspoon (US)",
        "tbsp": "Tablespoon (US)",
        "floz": "Fluid ounce (US)",
        "cup": "Cup (US)",
        "pt": "Pint (US)",
        "qt": "Quart (US)",
        "gal": "Gallon (US)",
        "ml": "Milliliter",
        "l": "Liter",
        "g": "Gram",
        "kg": "Kilogram",
        "oz": "Ounce (weight)",
        "lb": "Pound"
      }
    },
    "toUnit": {
      "title": "To unit",
      "type": "string",
      "default": "ml",
      "enum": [
        "tsp",
        "tbsp",
        "floz",
        "cup",
        "pt",
        "qt",
        "gal",
        "ml",
        "l",
        "g",
        "kg",
        "oz",
        "lb"
      ],
      "x-optionLabels": {
        "tsp": "Teaspoon (US)",
        "tbsp": "Tablespoon (US)",
        "floz": "Fluid ounce (US)",
        "cup": "Cup (US)",
        "pt": "Pint (US)",
        "qt": "Quart (US)",
        "gal": "Gallon (US)",
        "ml": "Milliliter",
        "l": "Liter",
        "g": "Gram",
        "kg": "Kilogram",
        "oz": "Ounce (weight)",
        "lb": "Pound"
      }
    },
    "density": {
      "title": "Ingredient density (g/mL)",
      "type": "number",
      "description": "Used only when converting between volume and weight.",
      "default": 1,
      "minimum": 0.000001,
      "x-step": 0.001
    }
  },
  "required": [
    "value",
    "fromUnit",
    "toUnit",
    "density"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "1.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/cooking-conversion-calculator/",
    "queryExample": "https://askcalculators.com/calculator/cooking-conversion-calculator/?value=1&fromUnit=cup&toUnit=ml&density=1",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "volume uses milliliters; mass uses grams; cross-dimension conversion uses mass = volume × density"
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/cooking-conversion-calculator.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "1.0.0",
      "referenceCoverage": "references-pending",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "2026-09-01",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "result": {
        "title": "Converted amount",
        "type": "number",
        "x-format": "number",
        "x-digits": 6,
        "x-primary": true
      },
      "basis": {
        "title": "Conversion basis",
        "type": "string",
        "x-format": "text"
      }
    }
  }
}
