Weight Converter
Convert between kilograms, pounds, ounces, grams, and more.
Weight Converter translates mass measurements between the most common units including kilograms, grams, milligrams, pounds, ounces, and metric tonnes. This is useful for cooking, shipping logistics, scientific measurements, and fitness tracking where different regions and contexts use different unit systems.
Enter a value in any unit and the tool converts it into all other units simultaneously. This eliminates the need to look up conversion factors or perform multi-step arithmetic — the result is instant and accurate.
The metric system (kilograms, grams) is the scientific standard and used in most countries, while pounds and ounces are common in the United States for everyday measurements. Understanding both systems is helpful when following international recipes, ordering goods from abroad, or reading nutritional information on imported products.
Frequently Asked Questions
Code Implementation
# Weight conversion functions
def kg_to_lbs(kg: float) -> float:
return kg * 2.20462
def lbs_to_kg(lbs: float) -> float:
return lbs / 2.20462
def grams_to_ounces(g: float) -> float:
return g * 0.035274
def ounces_to_grams(oz: float) -> float:
return oz / 0.035274
def kg_to_stones(kg: float) -> float:
"""1 stone = 6.35029 kg (used in UK)"""
return kg / 6.35029
def metric_tons_to_short_tons(mt: float) -> float:
"""1 metric ton = 1.10231 short tons (US)"""
return mt * 1.10231
# Examples
print(kg_to_lbs(70)) # 154.324 (typical adult weight)
print(grams_to_ounces(100)) # 3.5274
print(kg_to_stones(70)) # 11.023Comments & Feedback
Comments are powered by Giscus. Sign in with GitHub to leave a comment.