{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/energy-conversion-calculator/schema.json",
  "title": "Energy Conversion Calculator inputs",
  "description": "Convert energy between joules, watt-hours, calories, BTU, foot-pounds, and electronvolts.",
  "type": "object",
  "properties": {
    "value": {
      "title": "Energy",
      "type": "number",
      "default": 1,
      "x-step": 0.000001
    },
    "fromUnit": {
      "title": "From unit",
      "type": "string",
      "default": "kWh",
      "enum": [
        "J",
        "kJ",
        "cal",
        "kcal",
        "Wh",
        "kWh",
        "BTU",
        "ftlb",
        "eV"
      ],
      "x-optionLabels": {
        "J": "Joule (J)",
        "kJ": "Kilojoule (kJ)",
        "cal": "Calorie (cal)",
        "kcal": "Kilocalorie (kcal)",
        "Wh": "Watt-hour (Wh)",
        "kWh": "Kilowatt-hour (kWh)",
        "BTU": "BTU (IT)",
        "ftlb": "Foot-pound force (ft·lbf)",
        "eV": "Electronvolt (eV)"
      }
    },
    "toUnit": {
      "title": "To unit",
      "type": "string",
      "default": "MJ",
      "enum": [
        "J",
        "kJ",
        "MJ",
        "cal",
        "kcal",
        "Wh",
        "kWh",
        "BTU",
        "ftlb",
        "eV"
      ],
      "x-optionLabels": {
        "J": "Joule (J)",
        "kJ": "Kilojoule (kJ)",
        "MJ": "Megajoule (MJ)",
        "cal": "Calorie (cal)",
        "kcal": "Kilocalorie (kcal)",
        "Wh": "Watt-hour (Wh)",
        "kWh": "Kilowatt-hour (kWh)",
        "BTU": "BTU (IT)",
        "ftlb": "Foot-pound force (ft·lbf)",
        "eV": "Electronvolt (eV)"
      }
    }
  },
  "required": [
    "value",
    "fromUnit",
    "toUnit"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "1.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/energy-conversion-calculator/",
    "queryExample": "https://askcalculators.com/calculator/energy-conversion-calculator/?value=1&fromUnit=kWh&toUnit=MJ",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "joules = value × joules-per-source-unit; result = joules ÷ joules-per-target-unit"
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/energy-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 energy",
        "type": "number",
        "x-format": "number",
        "x-digits": 10,
        "x-primary": true
      },
      "joules": {
        "title": "Equivalent joules",
        "type": "number",
        "x-format": "number",
        "x-digits": 6
      }
    }
  }
}
