Unit Converter

    Convert length, weight and mass, and temperature measurements instantly in your browser. Accurate bidirectional conversions with zero server uploads and full privacy.

    m
    km
    cm
    mm
    mi
    yd
    ft
    in

    How to Use

    Follow these simple steps to get the best results.

    1Select a measurement category from the top selector: Length, Weight / Mass, or Temperature.
    2Enter a number into any unit field to begin converting.
    3All other unit fields within that category update instantly in real time without needing a submit button.
    4Click the copy button on any unit field to copy the formatted conversion result to your clipboard.
    5Use the Reset button or switch categories to clear all input values and start a new conversion.

    Frequently Asked Questions

    Find answers to common questions about this tool.

    Our unit converter uses exact mathematical conversion factors and standardized thermodynamic formulas entirely inside your web browser. As you type a number into any unit field, the tool normalizes that value into a common scientific base unit (such as meters for length, kilograms for weight, and Celsius for temperature) and then simultaneously computes the corresponding values for all other units in that category. This bidirectional synchronization happens instantaneously on every keystroke without requiring any page reload or submit button.

    No. All calculations are executed 100% client-side using JavaScript in your browser. No numerical inputs, converted outputs, timestamps, or personal data are ever uploaded, recorded, or transmitted to any server. You can even disconnect your internet connection once the page is loaded and continue converting units offline with complete privacy.

    The Length category supports eight widely used units: meters (m), kilometers (km), centimeters (cm), millimeters (mm), miles (mi), yards (yd), feet (ft), and inches (in). Conversions between the International Metric System and the United States Customary / British Imperial systems use standardized international definitions, such as exactly 0.0254 meters per inch and 1,609.344 meters per mile.

    The Weight / Mass category supports six essential units: kilograms (kg), grams (g), milligrams (mg), metric tons (t), pounds (lbs), and ounces (oz). The conversions are calibrated according to the international avoirdupois pound standard, defined precisely as 0.45359237 kilograms, ensuring pinpoint accuracy for culinary, shipping, scientific, and engineering calculations.

    Temperature is unique because it relies on different zero points (scales with relative offsets) rather than simple linear ratios. The tool converts between Celsius (°C), Fahrenheit (°F), and Kelvin (K) using standard thermodynamic equations: Fahrenheit is computed as (Celsius * 9/5) + 32, while Kelvin is computed as Celsius + 273.15. Conversely, Fahrenheit is converted back to Celsius using (Fahrenheit - 32) * 5/9.

    Negative values are supported only where they are physically meaningful. For example, in temperature conversions, temperatures can drop below zero on the Celsius and Fahrenheit scales down to absolute zero (-273.15 °C or -459.67 °F). However, Kelvin cannot drop below 0 K, and measurements of length and mass cannot physically be negative, so negative inputs are automatically prevented for those fields.

    The unit converter keeps complete double-precision floating-point accuracy internally to prevent any rounding drift or cumulative inaccuracies. For the visual display, results are cleanly formatted to up to 8 decimal places while automatically trimming unnecessary trailing zeros. For very small quantities or enormous values, scientific notation is used for readability.

    Yes. Each unit field includes an integrated copy button. Clicking this button immediately copies the formatted numerical value to your clipboard, and a momentary confirmation tooltip appears so you know it is ready to paste into spreadsheets, design files, or code editors.

    How It Works

    Understand the methodology, formulas, and concepts behind this tool.

    Understanding Modern Unit Conversion and Measurement Systems

    Human civilization has relied on measurement systems for thousands of years to trade goods, build monuments, cultivate land, and navigate the oceans. In ancient times, people measured distances and weights using physical benchmarks derived from everyday life: the length of a human foot, the span of a hand, the width of a barleycorn, or the carrying capacity of an ox. While these body-based benchmarks were intuitive for local villages, they varied wildly from region to region and merchant to merchant. A merchant buying grain in one city and selling it in another frequently encountered different definitions of basic weights and measures, leading to commercial disputes, tax friction, and inefficient commerce.

    The modern era of standardized measurement began during the French Revolution in the late eighteenth century with the birth of the decimal Metric System. French scientists sought to establish an objective, universal measurement system based on natural constants rather than the arbitrary dimensions of a reigning monarch. They defined the meter as one ten-millionth of the distance from the North Pole to the Equator along the Paris meridian. This groundbreaking decimal foundation eventually evolved into the International System of Units (known globally as SI, from the French Le Systeme International d'Unites), formalized in 1875 by the Treaty of the Metre.

    Today, nearly every country in the world uses the metric system as its official standard for commerce, science, and everyday life. However, three notable nations: the United States, Myanmar, and Liberia: continue to rely primarily on the customary system derived from the historical British Imperial system. Furthermore, many industries retain traditional imperial measurements for legacy or historical reasons. For instance, global civil aviation altitude is measured almost universally in feet, maritime navigation relies on nautical miles, construction lumber in North America is measured in inches, and screen displays worldwide are marketed in diagonal inches. Because people, products, and information routinely cross international borders, converting measurements quickly and accurately between metric and imperial frameworks is an indispensable daily requirement.

    Principles of Length and Distance Conversion

    Length measures the one-dimensional spatial extent of an object or the physical separation between two points. In the modern SI framework, the meter (m) is the foundational base unit of length. In 1983, the General Conference on Weights and Measures redefined the meter with extreme scientific precision: it is the exact distance that light travels in an absolute vacuum in a time interval of 1 divided by 299,792,458 of a second. This universal physical definition ensures that the meter never drifts, expands, or shrinks regardless of environmental temperature or pressure.

    The metric system utilizes decimal powers of ten to scale length effortlessly:

    • Kilometer (km): Exactly 1,000 meters. Widely used worldwide for road distances, geographical mapping, running races, and vehicular navigation.
    • Meter (m): The SI base unit (1 meter). Standard for architectural heights, room dimensions, athletics, and scientific experiments.
    • Centimeter (cm): Exactly 0.01 meters (one hundredth of a meter). Common for measuring clothing sizes, human height, interior furnishings, and consumer goods.
    • Millimeter (mm): Exactly 0.001 meters (one thousandth of a meter). Critical for mechanical manufacturing, engineering tolerances, rainfall measurements, and precision machining.

    In contrast, the United States Customary and British Imperial systems rely on non-decimal, historical subdivisions:

    • Inch (in): Historically based on the width of a human thumb. In 1959, the International Yard and Pound Agreement defined the international inch as exactly 25.4 millimeters (0.0254 meters).
    • Foot (ft): Equal to exactly 12 inches, or 0.3048 meters. Standard across construction, real estate room dimensions, and aviation altitudes.
    • Yard (yd): Equal to exactly 3 feet or 36 inches (0.9144 meters). Commonly used in textile trade, land surveying, and American sports fields.
    • Mile (mi): Equal to 5,280 feet, 1,760 yards, or exactly 1,609.344 meters. The primary unit for highway speed limits and road distances in the United States and the United Kingdom.

    To convert between these systems, mathematicians and engineers apply precise multiplication factors. For example, converting kilometers to miles requires multiplying by approximately 0.621371 (or dividing by 1.609344). If a European driver sees a highway speed limit of 100 km/h, converting that value yields approximately 62.14 mph. Conversely, an American marathon runner aiming for a 26.2188-mile race must complete roughly 42.195 kilometers. Our unit converter performs these linear conversions instantaneously using exact ratios, avoiding cumulative precision loss.

    Mass and Weight Dynamics Across Global Systems

    In everyday conversation, the terms "mass" and "weight" are frequently used interchangeably. However, in physics and engineering, they describe two fundamentally distinct concepts:

    • Mass: An intrinsic property of physical matter that quantifies its resistance to acceleration (inertia). An astronaut with a mass of 75 kilograms on Earth maintains an identical mass of 75 kilograms on the surface of the Moon or floating in deep space.
    • Weight: The gravitational force exerted upon a given mass by an astronomical body, calculated as force equals mass multiplied by gravitational acceleration (W = m * g). That same 75-kilogram astronaut weighs roughly 735 Newtons on Earth, but only about 122 Newtons on the Moon because lunar gravity is approximately one-sixth of terrestrial gravity.

    For everyday commercial transactions on the surface of the Earth, standard gravity is treated as constant (standard g = 9.80665 m/s^2), allowing mass units to function effectively as everyday weight measurements.

    The International System of Units measures mass using the kilogram (kg). In 2019, the definition of the kilogram was revolutionized: rather than being tied to a physical metal cylinder stored in a French vault (the historical International Prototype of the Kilogram), it is now defined by fixing the numerical value of the fundamental Planck constant (h) to exactly 6.62607015 * 10^-34 joule-seconds.

    The metric mass hierarchy includes:

    • Metric Ton (t): Exactly 1,000 kilograms (1,000,000 grams). Used globally for bulk cargo, shipping containers, industrial mining, and agricultural grain yields.
    • Kilogram (kg): The SI base unit. Standard for adult body weight, grocery produce, baggage limits, and commercial freight.
    • Gram (g): Exactly 0.001 kilograms. The workhorse unit for culinary recipes, postal packages, nutrition facts labels, and laboratory reagents.
    • Milligram (mg): Exactly 0.000001 kilograms (one thousandth of a gram). Essential for pharmaceutical medications, vitamin supplements, and analytical chemistry.

    The Anglo-American avoirdupois system is based on the international pound:

    • Pound (lbs): Defined legally since 1959 as exactly 0.45359237 kilograms. It is standard for human body weight, retail meat, and domestic shipping throughout the United States.
    • Ounce (oz): Exactly one-sixteenth of an avoirdupois pound (1 lb = 16 oz), or approximately 28.349523125 grams. Used for packaged food portions, baking ingredients, and small postal items.

    Converting between kilograms and pounds is one of the most common daily calculations worldwide. One kilogram equals approximately 2.20462 pounds. When traveling internationally, a traveler packing a suitcase up to an airline baggage limit of 50 pounds must keep the weight under approximately 22.68 kilograms.

    Temperature Scales: Relative Offsets versus Proportional Factors

    Converting temperature requires a completely different mathematical approach than converting length or weight. Length and weight are ratio scales: zero meters represents zero spatial extent, and zero kilograms represents zero mass. Because the zero point is absolute, you can convert between meters and feet with a simple constant multiplier.

    Temperature scales, by contrast, are interval scales with different arbitrary starting zero points:

    • Celsius (degrees C): Developed in 1742 by Swedish astronomer Anders Celsius. He calibrated the scale between two reproducible physical transitions of pure water at standard atmospheric pressure: 0 degrees C represents the freezing point of water, and 100 degrees C represents the boiling point. The interval is divided into 100 equal degrees.
    • Fahrenheit (degrees F): Developed in 1724 by German-Dutch physicist Daniel Gabriel Fahrenheit. He established 0 degrees F using an equal ice-water-ammonium chloride brine mixture, set 32 degrees F as the freezing point of pure water, and set 212 degrees F as the boiling point. The span between freezing and boiling water covers 180 degrees.
    • Kelvin (K): Formulated in 1848 by Scottish physicist William Thomson (Lord Kelvin). It is an absolute thermodynamic temperature scale where 0 Kelvin represents Absolute Zero: the theoretical state where all classical molecular kinetic movement and thermal vibration cease. A difference of 1 Kelvin is identical in magnitude to a difference of 1 degree Celsius.

    Because the freezing point of water is 0 on the Celsius scale but 32 on the Fahrenheit scale, and because 100 Celsius degrees span the same thermal range as 180 Fahrenheit degrees (a ratio of 100/180, simplified to 5/9), converting between them requires both a multiplication factor and an addition or subtraction offset:

    • Celsius to Fahrenheit: F = (C * 9/5) + 32
    • Fahrenheit to Celsius: C = (F - 32) * 5/9
    • Celsius to Kelvin: K = C + 273.15
    • Kelvin to Celsius: C = K - 273.15
    • Fahrenheit to Kelvin: K = ((F - 32) * 5/9) + 273.15

    An interesting curiosity of these mathematical formulas occurs at exactly -40 degrees: -40 degrees Celsius is identical to -40 degrees Fahrenheit. Furthermore, while temperatures can drop far below zero on the Celsius and Fahrenheit scales (down to -273.15 degrees C or -459.67 degrees F), temperature can never drop below 0 on the Kelvin scale. Our unit converter enforces this thermodynamic law by disallowing negative inputs for Kelvin while fully supporting negative values for Celsius and Fahrenheit.

    The Cost of Unit Confusion: Lessons from History

    Accurate unit conversion is not merely a convenience; in engineering and aerospace, errors can be disastrous. The most famous example in modern history occurred in September 1999 with the loss of the NASA Mars Climate Orbiter. The spacecraft, designed to study Martian climate and meteorology, was intended to enter orbit at an altitude of 140 to 150 kilometers. Instead, it plummeted into the Martian atmosphere at an altitude of only 57 kilometers and disintegrated due to atmospheric friction.

    The subsequent investigation revealed that navigation software developed by Lockheed Martin calculated thruster impulses in United States customary units (pound-force seconds), while NASA's ground control software expected those values in metric SI units (Newton-seconds). One pound-force is equal to approximately 4.44822 Newtons. Because the conversion step was omitted, the thrusters exerted over four times more force than planned over the spacecraft's nine-month voyage, causing irreversible trajectory drift. This multi-million-dollar loss highlighted the critical necessity for unambiguous, verified, and automated unit conversion tools across science and industry.

    Precision, Internal State, and Floating-Point Integrity

    A common pitfall of online conversion utilities is cumulative rounding error. When tools repeatedly convert numbers through chained conversions (for example, converting from miles to feet, then feet to meters, then meters to kilometers), small intermediate rounding errors compound into noticeable inaccuracies.

    In modern computing, numbers are represented internally using binary 64-bit floating-point numbers following the IEEE 754 standard. Because certain decimal fractions (like 0.1 or 0.2) cannot be represented with infinite precision in binary notation, basic arithmetic operations can occasionally generate minor binary artifacts, such as 0.30000000000000004.

    Tooltri's Unit Converter solves this problem with an elegant architectural design:

    1. Direct Base Normalization: Whenever you enter a number into any unit field, our engine immediately converts that raw value into the category's primary scientific base unit (meters for length, kilograms for weight, and Celsius for temperature) in a single direct calculation step.
    2. Full Internal Precision: The tool stores this base value with full 64-bit IEEE double-precision floating-point resolution in temporary memory, without applying premature rounding.
    3. Clean Output Formatting: Each target unit calculates its display string independently from the normalized base. The results are formatted to up to 8 significant decimal places, automatically trimming redundant trailing zeros. If you type "1" in meters, kilometers displays as "0.001" rather than "0.00100000". For extremely tiny microscopic values or astronomical magnitudes, standard scientific notation is employed for optimal readability.

    Real-World Applications Across Industries

    • Software and Web Development: Responsive web design requires converting between pixels, inches, and millimeters for high-density displays, print stylesheets, and CSS media queries. Developers building global platforms frequently convert localized database metrics into international formats.
    • International Trade and Logistics: Freight forwarders calculate volumetric weight, container shipping capacities, and customs declarations across metric tons and imperial pounds to optimize air and sea transport costs.
    • Culinary Arts and Baking: Professional chefs and home bakers converting European recipes to American measurements rely on exact conversions between grams, ounces, kilograms, and pounds, where precision directly influences chemical leavening and dough consistency.
    • Architecture, Surveying, and Construction: Builders working with international CAD drawings, prefabricated components, and building materials regularly convert between millimeters, centimeters, feet, and inches to ensure structural alignment and code compliance.
    • Aviation, Marine, and Athletics: Pilots monitoring flight levels in feet convert to metric altitudes for international airspace, while runners and cyclists track pace and distance across kilometers and miles.

    Client-Side Privacy and Performance Guarantee

    Most online converters send your keystrokes to a remote web server over HTTP APIs, exposing your calculations to network latency, server tracking, and potential data leakage. If your internet connection drops while traveling or working on an airplane, traditional web utilities stop working entirely.

    Tooltri's Unit Converter is built on an uncompromising client-side philosophy:

    • Zero Server Transmission: Every calculation, conversion, formatting routine, and copy action happens exclusively inside your local browser tab using client-side JavaScript. No numbers, units, or metadata are ever transmitted to our servers.
    • Zero Latency Keystrokes: Because calculations execute locally on your device's CPU, values synchronize instantly with no perceptible delay as you type.
    • Full Offline Capability: Once the page loads in your browser, you can disconnect from Wi-Fi or cellular data. The unit converter will continue functioning at full speed without interruption.
    • Privacy-First Design: We do not require registration, login, email verification, or credit card information. You enjoy unlimited, instant, and private conversions at zero cost.

    Explore other calculators and tools to speed up your workflow.