How the Energy Converter Works
AnyTool Energy Converter performs every calculation in the browser. Each unit declares a single linear factor relative to a shared joule base — the exact number of joules in one of that unit — so any unit converts to any other through joules without an N-by-N table. The factors are the internationally-agreed definitions: a kilowatt-hour is exactly 3,600,000 J, a watt-hour 3600 J, a thermochemical calorie 4.184 J, a food Calorie (kilocalorie) 4184 J, an International Table BTU 1055.05585262 J, a therm 100,000 of those BTU, a foot-pound 1.3558179483314 J, an electronvolt 1.602176634×10⁻¹⁹ J and an erg 1×10⁻⁷ J. A value is multiplied to joules and then divided into the target unit.
- Thirteen units spanning SI, electrical, thermal and physics scales
- The joule is the shared base; each unit is one exact factor
- Conversion is value to base to value, so any unit maps to any other
- Editing either field converts both directions live
- All arithmetic is client-side JavaScript — no server round-trip
