This template shows measurement quantities as primary and converted secondary units (or ranges), with optional rounding, wikilinks, abbreviation, or US spellings, and various separators including:  parentheses "( )", "or", hyphens, comma, "to" or dashes. It can help users by calculating correct conversions from one unit of measurement to another, particularly for more complex units. It's also useful by making the text adhere to the Manual of Style.

Styles include: distance "32 метр (105 ft)" and "32 метр or 105 фут"; temperature "18 °C (64 °F)"; mass "55.0 кg (121.3 lb)" or "65 to 80 кg (143 to 176 lb)"; etc. For units see: Convert/list of units.

Options include:  lk=in, abbr=on, abbr=off, sp=us, adj=on, adj=mid, disp=x, disp=table and sortable=on (explained below). By default, output is rounded to match the precision of input; alternatives include: sigfig=3 or using the end parameter, such as "|1" to show tenths or "|-2" to show full 100's, etc.

Single value:

{{convert|value|in_unit|out_unit|round_to|...}}

Range of 2 values, or set of 3 or 4 (see below for list of range options):

{{convert|val1|range|val2 |in_unit|out_unit|round_to|...}}
{{convert/3 |val1|range|val2|words|val3|in_unit|out_unit|round_to|...}}
{{convert/4|val1|words|val2|words|val3|words|val4|in_unit|out_unit|...}}
  • Optional parameters, in examples below, allow abbreviated units (abbr=on), or U.S. spellings (sp=us for meter), or hyphenation (adj=on), etc.
  • This template may in some cases directly convert to other base units, for example {{convert|29.8|km/s|mi/h}} will directly convert the km/s to mph, as in 29.8 km/s (67,000 mph).
  • For this template many levels of substitution are possible, hence doing this fully, step by step, is cumbersome. Use Special:ExpandTemplates instead.
  • The template provides some dimensional analysis to check for compatible units. The user should be careful that input and output units are compatible. Do not, for example, attempt to convert barrels to tonnes (but see {{bbl to t}}). Also beware of units with similar names; the code oz, for example, is for the avoirdupois ounce (a unit of mass), do not use this if you want fluid ounces. Note also that the code lb gives pounds mass, for pounds force use lbf.
  • This documentation page tends to lag behind in terms of what the template can do. For more details, see the talk page and its archives.

Single value

вироиш
Input Displays as
{{convert|3.21|kg|lb}} 3.21 килоgrams (7.1 lb)
{{convert|3.21|kg|lb|0}} 3.21 килоgrams (7 lb)
{{convert|10|kg|lb|disp=or}} 10 килоgrams or 22 pounds
{{convert|6|ft|5|in|m}} 6 фут 5 дюйм (1.96 м)
{{convert|10|mi}} 10 miles (16 км)
{{convert|100|mpgus}} 100 miles per US gallon (2.4 L/100 км; 120 mpg‑imp)
{{convert|120|km/h}} 120 kilometres per hour (75 mph)
{{convert|18|°C|°F}} 18 °C (64 °F)
{{convert|-15|C|F}} −15 °C (5 °F)
{{convert|9|e6USgal|abbr=off}} 9 million US gallons (34 мегаlitres)
The "e6" scales the input to millions; the "abbr=off" yields the "mega" in the output.
Scaling is only available for Single value conversions. Not all units are supported.
{{convert|1250|sqft|m2|lk=in|sigfig=2}} 1,250 square feet (120 m2)
Note 'lk=in' links only the input unit. This example is for illustration only, common units of measurement should not be linked. See: wp:overlink.
{{convert|20.5|m3|cuyd|lk=out|abbr=on}} 20.5 m3 (26.8 cu yd)
Note 'lk=out' links only the output unit, cu yd.
{{convert|641|acre|ha sqmi|lk=on}} 641 acres (259 ha; 1.002 sq mi)
Note 'lk=on' links all units. Per guidelines, common units should not be linked. See: wp:overlink.
{{convert|641|acre|ha sqmi|2|lk=on}} 641 acres (259.40 ha; 1.00 sq mi)
Although 640 acres equals 1 square mile; 641 acres rounded to two decimal places equals 1.00 sq mi.

Range of 2 values

вироиш
Note: not yet operational for all units and it may be necessary to enter as "convert/2" rather than simply "convert"
Input Displays as
{{convert|60|and|170|kg|lb}} 60 and 170 килоgrams (130 and 370 lb)
{{convert|60|to|170|kg|lb}} 60 to 170 килоgrams (130 to 370 lb)
{{convert|60|to(-)|170|kg|lb}} 60 to 170 килоgrams (130–370 lb)
{{convert|60|-|170|kg|lb}} 60–170 килоgrams (130–370 lb)
{{convert|41|to|50|F|C}} 41 to 50 °F (5 to 10 °C)
{{convert|-10|to|-20|C|F}} −10 to −20 °C (14 to −4 °F)
{{convert|41|-|50|F|K}} 41–50 °F (278–283 K)
{{convert|60|by|120|ft|m}} 60 by 120 фут (18 by 37 м)
{{convert|60|x|120|m|ft|abbr=on}} 60 м × 120 м (200 ft × 390 ft)
{{convert|60|+/-|10|m|ft}} 60 ± 10 метр (197 ± 33 ft)
{{convert|19|to|27|L|USgal}} 19 to 27 litres (5.0 to 7.1 US gal)
{{convert|5|to|7|L|USgal}} 5 to 7 litres (1.3 to 1.8 US gal)
{{convert|4|-|9|L|USgal|abbr=off}} 4–9 litres (1.1–2.4 US gallons)

The following conversions are currently not available as a range of values:

  • Some imperial and US gallon-based units
  • Other fuel-consumption units, except "mpg" or "L100km" shown above.
  • Large scale units (e3, e6, e9)
  • Combination-based units (ft&in, st&lb, lb&oz) due to complexity of the conversion.

Range/set of 3 or 4 values

вироиш
Note: not yet operational for all units
Input Displays as
{{convert |60|by|100|by|120|m|ft}} 60 by 100 by 120 метр (200 by 330 by 390 ft)
{{convert/3 |60|x|100|x|120|m|ft|abbr=mos}} 60 m × 100 m × 120 м (200 ft × 330 ft × 390 ft)
{{convert/3 |60|-|70|-|80|kg|lb}} 60–70–80 килоgrams (130–150–180 lb)
{{convert/4 |60|-|70|-|80|-|90|kg|lb}} 60–70–80–90 килоgrams (130–150–180–200 lb)
{{convert/3 |60|to|80|or|85|m|ft}} 60 to 80 or 85 метр (200 to 260 or 279 ft)
{{convert/3 |11|by|15|rarely|16|ft|m}} 11 by 15 rarely 16 фут (3.4 by 4.6 rarely 4.9 м)
{{convert/3 |41|to|50|to|60|F|C}} 41 to 50 to 60 °F (5 to 10 to 16 °C)
{{convert/4 |2|to|12|, in summer|25|to|36|C|F}} 2 to 12, in summer 25 to 36 °C (36 to 54, in summer 77 to 97 °F)
{{convert/3 |41|-|50|almost|51|F|K}} 41–50 almost 51 °F (278–283 almost 284 K)

For {{convert/3}} or {{convert/4}}, the separator words can be any text.

Parameters

вироиш
Parameters
Use US spelling attach |sp=us   to show "meter" rather than "metre" (etc.)
Make units linked attach |lk=on   to link all units (default: lk=off)
attach |lk=in   to link only the input units
attach |lk=out  to link only the output units
(The manual of style suggests that you should not link common units of measurement).
Use the adjective form, or insert mid-text words attach |adj=on (e.g. "190-foot (58 m) bridge" instead of "190 feet...").
This produces the adjective form, as the unit name in the singular with a hyphen (according to the Manual of Style).

attach |adj=mid (e.g. "190-foot bridge (58 m)" as: |adj=mid|bridge

or "190-foot-long bridge (58 m)" as: |adj=mid|-long bridge

Note 1: Any rounding-parameter should follow the mid-text: "text|0".
Note 2: For adj=mid, must specify both input & output unit-codes.

For example, to convert feet, use "ft|m" or "ft|0":
  • {{convert|9|ft|m|adj=mid|-long}} → 9-foot-long (2.7 m)
To default the output unit-code, set parameter 3 to: 0.
Abbreviate units, or not attach |abbr=on    to show unit symbols
attach |abbr=off   to show all unit names in full words
attach |abbr=in    to abbreviate input units
attach |abbr=out   to abbreviate output units
attach |abbr=~      to show input unit symbol in result
attach |abbr=values to suppress unit names & show only values. So, {{convert|6|mi|abbr=values}} gives: 6 (9.7).
Change "( )" to display other separators attach |disp=or to put "or" between units.
The default value is:  disp=b for brackets/parentheses.
Change "( )" to customized separators attach |disp=x| (begin | end) to show "xx (begin yy end)" See example 1
attach |disp=x|; to show "xx; yy" See example 2
attach |disp=x| (same as |) to show "xx (same as yy)". See example 3
Example 1: {{convert|9|km|mi|disp=x| [|]}}9 kilometres [5.6 mi] (note space before [|)
Example 2: {{convert|9|km|mi|disp=x|; }}9 kilometres; 5.6 mi
Example 3: {{convert|10|km|mi|disp=x| (about |)}}10 kilometres (about 6.2 mi) (note spaces used within the code).
Display output only attach |disp=output only to show result number & unit
attach |disp=output number only to show just number
Note when using "disp=output only" then the unit name can still be shown as full words by abbr=off or linked by lk=on.
Example: {{convert|7500|acre|m2|disp=output only }} → 30,000,000 m2
Display units inverted as reverse order attach |disp=flip  to reverse the order & show output unit first.
So, {{convert|6|km|disp=flip}} shows "3.7 miles (6 km)".
To get symbol "mi" use abbr=in, to abbreviate the input unit (left-side unit).
Display unit name (only) attach |disp=unit to show the unit name for a symbol
The unit name will be plural when the amount is not 1, or hyphenated when adj=on. So, {{convert|2|cuyd|disp=unit}} shows "cubic yards" plural.
Display amounts as table cells attach |disp=table (or |disp=tablecen) Note: For use in tables, the template must start on a new line after a pipe. Only the number will be displayed unless you set |abbr=on, |lk=on, |lk=in or |lk=out. Example: here
Round to a specified number of significant figures attach |sigfig={some integer greater than zero}. In the case of temperatures Celsius or Fahrenheit this refers to the difference with the absolute-zero temperature. For example, at room temperature two significant digits means rounded to tens of degrees.
Round by 5 attach |disp=5  to round the output amount to the nearest 5 units. Not supported for all options.
Let Convert decide the unit to convert to skip the precision parameter (the 3rd or 4th unnamed parameter) e.g. {{convert|100|km|ft}} gives 100 километр (330,000 ft) and {{convert|100|km}} gives 100 километр (330,000 ft).
Display input value with a fraction {{convert|3/8|in|mm|3|abbr=on}} → 38 in (9.525 мм) or {{convert|11+1/4|in|cm|2|abbr=on}} → 11 14 in (28.58 см)

For negative amounts, use two minus signs (hyphens): -11-1/4.

Generate a hidden sort key for use with a sortable table attach |sortable=on to generate a hidden sort key so that sortable tables will sort correctly. This uses {{ntsh}} to generate a sort key from the first numeric value. It ignores any additional values, ie, if you use 6|ft|2|in as the value, it will only use the 6 for the sort key. This will cause numeric values to sort in numeric order, ie: 5, 10, 15 instead of 10, 15, 5.

Parameters still under construction

вироиш
Parameters still under construction. May not work in all situations
disp=5[note 1] The output will be rounded to the nearest 5 units. Might not work when linking unit names.
disp=tablecen[note 1] Similar to disp=table except that the values with be centered within the column. See the tables at La Nouvelle branch, BM-21 Grad for in use examples.
abbr=in Abbreviates only the input unit.
abbr=out Abbreviates only the output unit.
disp=br This separates input and output units with a forced line break. This can be useful in tables with limited horizontal space.
disp=sqbr Shows square brackets "[ ]" instead of parentheses "( )" in output. Example: 55 miles [89 km]. This option can be used in direct quotes, to show conversions in editorial brackets. See: attach |disp=x|[|], above, as another way of showing brackets "[ ]".
  1. 1.0 1.1 This is a limited, temporary option, until an alternative can be implemented.

Convert supports four types of rounding:

Rounding to a given precision
Specify the desired precision with the fourth unnamed parameter (or third unnamed parameter if the "convert to" parameter is omitted; or fifth unnamed parameter if a range is specified; or fourth unnamed parameter again if a range is specified and the "convert to" parameter is omitted; needs to be replaced with a "precision" named parameter). The conversion is rounded off to the nearest power of 110 this number. For instance, if the result is 8621 and the round number is '-2', the result will be 8600. If the result is '234.0283043' and the round number is '0', the result will be 234.
Rounding to a given number of significant figures
Specify the desired number of significant figures using |sigfig={some integer greater than zero} as noted above.
Default rounding
If neither the desired precision nor the desired number of significant figures is specified, the conversion will be rounded either to precision comparable to that of the input value (the number of digits after the decimal point—or the negative of the number of non-significant zeroes before the point—is increased by one if the conversion is a multiplication by a number between 0.02 and 0.2, remains the same if the factor is between 0.2 and 2, is decreased by 1 if it is between 2 and 20, and so on) or to two significant figures, whichever is more precise. An exception to this is temperature, wherein the conversion will be rounded either to precision comparable to that of the input value or to that which would give three significant figures when expressed in kelvins, whichever is more precise.
Examples of default rounding
Input Displays as Note
{{convert|550|ft|m|0}} 550 фут (168 м) Approximate value is 167.64 m
{{convert|550|ft|m}} 550 фут (170 м) Rounds to 170, when approximate value is 167.64 m
{{convert|500|ft|m|0}} 500 фут (152 м) Approximate value is 152.4 m
{{convert|500|ft|m}} 500 фут (150 м) Rounds to 150, when approximate value is 152.4 m

Units supported

вироиш

The table below lists units supported by template {{convert}}. The list is not complete—more complete lists are linked for each dimension. A complete list is at the full list of units.

Explanation - unit codes

The {{convert}} template uses unit-codes, which are similar to (but not necessarily exactly the same as) the usual written abbreviation for a given unit. These 'unit-codes' are given in column 3 of the following tables, and are accepted as input by the {{convert}} template as the second and third unnamed parameters. For example, {{convert|100|kg|lb}} produces "100 килоgrams (220 lb)" and {{convert|100|lb|kg}} produces "100 pounds (45 кg)"

Some units have alternative unit-codes; these are shown in brackets in column 3, e.g. °F (F): either may be entered for Fahrenheit (but not lower-case f).

The unit-codes should be treated as case-sensitive, especially in cases like {{convert|100|Mm|mm}}, which produces "100 мегаметр (1.0×1011 мм)".

The output of {{convert}} can display multiple converted units, if further unit-codes are specified after the second unnamed parameter (without the | separator). Typical combination output units are listed below in column 7. For example, {{convert|55|nmi|km mi}} produces "55 nautical miles (102 км; 63 mi)", and {{convert|1|oz|ozt g gr}} produces "1 ounce (0.91 ozt; 28 g; 440 gr)".

Abridged list of units supported by {{Convert}}

Explanation
system unit unit-
code
symbol or
abbrev.
notes sample default
conversion
combination
output units
the system(s) to which the unit belongs units listed by name unit-code to use in template symbols shown in output other notes about the units sample of the default conversion for the unit output codes for multiple conversions

AREA
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
SI square килоmetre km2 кm2 US spelling: square kilometer
1.0 кm2 (11,000,000 sq ft)
  • km2 sqmi
square metre m2 m2 US spelling: square meter
1.0 m2 (11 sq ft)
  • m2 sqft
square сантиmetre cm2 сm2 US spelling: square centimeter
1.0 сm2 (0.0011 sq ft)
  • cm2 sqin
square миллиmetre mm2 мm2 US spelling: square millimeter
1.0 мm2 (1.1×10−5 sq ft)
  • mm2 sqin
non-SI metric hectare ha ha 1.0 ha (2.5 acres)
Imperial
&
US customary
square mile sqmi sq mi 1.0 sq mi (2.6 кm2)
  • sqmi km2
acre acre (none) 1.0 acre (0.40 ha)
square yard sqyd sq yd 1.0 sq yd (0.84 m2)
square foot sqft
(sqfoot)
sq ft long code "sqfoot" outputs square foot (and never feet) 1.0 sq ft (0.093 m2)
  • sqft m2 (sqfoot m2)
square inch sqin sq in 1.0 sq in (6.5 сm2)
  • sqin cm2
Other square nautical mile sqnmi sq nmi 1.0 sq nmi (3.4 кm2; 1.3 sq mi)
dunam dunam (none) For alternative spellings and definitions see the full list 1.0 dunam (0.0010 кm2; 0.00039 sq mi)
tsubo tsubo (none) 1.0 tsubo (3.3 m2)

DENSITY
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
Metric kilogram per cubic metre kg/m3 kg/m3 1.0 kg/m3 (1.7 lb/cu yd)
  • kg/m3 lb/ft3 (kg/m3 lb/cuft)
  • kg/m3 lb/yd3 (kg/m3 lb/cuyd)
gram per cubic metre g/m3 g/m3 1.0 g/m3 (0.0017 lb/cu yd)
  • g/m3 kg/m3
  • g/m3 lb/ft3 (g/cm3 lb/cuft)
  • g/m3 lb/yd3 (g/cm3 lb/cuyd)
Imperial
&
US customary
pound per cubic foot lb/ft3 lb/cu ft 1.0 lb/cu ft (0.016 g/сm3)
  • lb/ft3 kg/m3 (lb/cu ft g/m3)
  • lb/ft3 g/m3 (lb/cu ft g/m3)
pound per cubic yard lb/yd3 lb/cu yd 1.0 lb/cu yd (0.59 kg/m3)
  • lb/yd3 kg/m3 (lb/cuyd kg/m3)
  • lb/yd3 g/m3 (lb/cuyd g/m3)

ENERGY
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
SI гигаjoule GJ ГJ 1.0 ГJ (240,000,000 cal)
мегаjoule MJ МJ 1.0 МJ (240,000 cal)
килоjoule kJ кJ 1.0 кJ (240 cal)
гектоjoule hJ гJ 1.0 гJ (24 cal)
декаjoule daJ даJ 1.0 даJ (2.4 cal)
joule J J 1.0 J (0.24 cal)
детсиjoule dJ дJ 1.0 дJ (0.024 cal)
сантиjoule cJ сJ 1.0 сJ (0.0024 cal)
миллиjoule mJ мJ 1.0 мJ (0.00024 cal)
микроjoule µJ (uJ) мкJ 1.0 мкJ (2.4×10−7 cal)
наноjoule nJ нJ 1.0 нJ (2.4×10−10 cal)
cgs megaerg Merg Merg 1.0 Merg (0.10 J)
kiloerg kerg kerg 1.0 kerg (0.10 мJ)
erg erg (none) 1.0 erg (0.10 мкJ)
Watt-hour multiples terawatt-hour TWh TWh 1.0 TWh (3.6 ПJ)
TW.h TW·h
gigawatt-hour GWh GWh 1.0 GWh (3.6 ТJ)
GW.h GW·h
megawatt-hour MWh MWh 1.0 MWh (3.6 ГJ)
MW.h MW·h
kilowatt-hour kWh kWh 1.0 kWh (3.6 МJ)
kW.h kW·h
watt-hour Wh Wh 1.0 Wh (3.6 кJ)
W.h W·h
Electron-
volt
multiples
gigaelectronvolt GeV GeV 1.0 GeV (0.16 нJ)
megaelectronvolt MeV MeV 1.0 MeV (0.16 пJ)
kiloelectronvolt keV keV 1.0 keV (0.16 фJ)
electronvolt eV eV 1.0 eV (0.16 аJ)
millielectronvolt meV meV 1.0 meV (0.16 зJ)
Calorie multiples calorie Cal Cal The thermo-chemical calorie is the default definition. For others, see the full list. 1.0 Cal (4.2 кJ)
megacalorie Mcal Mcal 1.0 Mcal (4.2 МJ)
kilocalorie kcal kcal 1.0 kcal (4.2 кJ)
calorie cal cal 1.0 cal (4.2 J)
millicalorie mcal mcal 1.0 mcal (4.2 мJ)
pound/
ounce
-foot/
inch-hour-minute-second
foot-poundal ftpdl ft·pdl 1.0 ft·pdl (0.042 J)
foot-pound force ftlbf ft·lbf 1.0 ft·lbf (1.4 J)
ftlb-f ft·lbf
inch-pound force inlbf in·lbf 1.0 in·lbf (110 мJ)
inlb-f in·lbf
inch-ounce force inozf in·ozf 1.0 in·ozf (7.1 мJ)
inoz-f in·ozf
horsepower-hour hph hp·h 1.0 hp·h (0.75 kWh)
British thermal unit British thermal unit Btu Btu The International Steam Table British thermal unit is used. For others, see the full list. 1.0 Btu (1.1 кJ)
BTU BTU
TNT-based units gigatonne of TNT GtTNT (none) 1.0 gigatonne of TNT (4.2 ЭJ)
gigaton of TNT GtonTNT (none)
megatonne of TNT MtTNT (none) 1.0 megatonne of TNT (4.2 ПJ)
megaton of TNT MtonTNT Mt
kilotonne of TNT ktTNT (none) 1.0 kilotonne of TNT (4.2 ТJ)
kiloton of TNT ktonTNT kt
tonne of TNT tTNT (none) 1.0 tonne of TNT (4.2 ГJ)
ton of TNT tonTNT (none)
Other
Hartree Eh Eh 1.0 Eh (27 eV)
rydberg Ry Ry 1.0 Ry (14 eV)
tonne of oil equivalent toe toe 1.0 toe (42 ГJ)
barrel of oil equivalent BOE BOE 1.0 BOE (6.1 ГJ)
cubic foot of natural gas cuftnaturalgas (cufootnaturalgas) Unit-code cufootnaturalgas will show "cubic foot of natural gas" if plural. 1.0 cubic foot of natural gas (1.1 МJ)
litre-atmosphere latm l·atm 1.0 l·atm (100 J)
Latm L·atm
imperial gallon-atmosphere impgalatm imp gal·atm 1.0 imp gal·atm (460 J)
US gallon-atmosphere USgalatm
(usgalatm)
US gal·atm 1.0 US gal·atm (380 J)
U.S.galatm
(usgalatm)
U.S. gal·atm

FORCE
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
SI гигаnewton GN ГN Allows triple output units. See: full list. 1.0 ГN (220,000,000 lbf)
  • GN LT-f
  • GN LTf
  • GN ST-f
  • GN STf
мегаnewton MN МN Allows triple output units. See: full list. 1.0 МN (220,000 lbf)
  • MN LT-f
  • MN LTf
  • MN ST-f
  • MN STf
килоnewton kN кN Allows triple output units. See: full list. 1.0 кN (220 lbf)
  • kN LT-f
  • kN LTf
  • kN ST-f
  • kN STf
newton N N 1.0 N (0.22 lbf)
  • N lb-f
  • N lbf
  • N oz-f
  • N ozf
миллиnewton mN мN 1.0 мN (0.00022 lbf)
  • mN oz-f
  • mN ozf
  • mN gr-f
  • mN grf
микроnewton µN (uN) мкN 1.0 мкN (2.2×10−7 lbf)
  • µN gr-f
  • µN grf
наноnewton nN нN 1.0 нN (2.2×10−10 lbf)
  • nN gr-f
  • nN grf
cgs megadyne Mdyn Mdyn 1.0 Mdyn (2.2 lbf)
kilodyne kdyn kdyn 1.0 kdyn (0.036 ozf)
dyne dyn
(dyne)
dyn 1.0 dyn (0.016 grf)
millidyne mdyn mdyn 1.0 mdyn (1.6×10−5 grf)
Metric gravitational units tonne-force t-f tf 1.0 tf (9.8 кN; 0.98 LTf; 1.1 STf)
tf tf
kilogram-force kg-f kgf 1.0 kgf (9.8 N; 2.2 lbf)
kgf kgf
gram-force g-f gf 1.0 gf (9.8 мN; 0.035 ozf)
gf gf
milligram-force mg-f mgf 1.0 mgf (9.8 мкN; 0.015 grf)
mgf mgf
Avoirdupois-based units poundal pdl pdl 1.0 pdl (0.14 N)
long ton-force LT-f LTf 1.0 LTf (10.0 кN)
  • LT-f ST-f
LTf long ton-force
  • LTf STf
short ton-force ST-f STf 1.0 STf (8.9 кN)
  • ST-f LT-f
STf short ton-force
  • STf LTf
pound-force lb-f lbf 1.0 lbf (4.4 N)
lbf lbf
grain-force gr-f grf 1.0 grf (640 мкN)
grf grf

LENGTH
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
SI мегаметр Mm Мм US spelling: megameter
1.0 Мм (3,280,839 ft 11 in)
километр km км US spelling: kilometer
1.0 км (3,280 ft 10 in)
  • km mi
метр m м US spelling: meter
1.0 м (3 ftin)
  • m ft
  • m ftin
сантиметр cm см US spelling: centimeter
1.0 см (0.39 in)
  • cm in
миллиметр mm мм US spelling: millimeter
1.0 мм (0.039 in)
  • mm in
микрометр µm (um) мкм US spelling: micrometer
1.0 мкм (3.9×10−5 in)
нанометр nm нм US spelling: nanometer
1.0 нм (3.9×10−8 in)
non-SI metric ångström Å
(angstrom)
Å 1.0 Å (3.9×10−9 in)
Imperial
&
US customary
mile mi mi 1.0 mi (1.6 км)
  • mi km
furlong furlong (none) 1.0 furlong (660 ft; 200 м)
chain chain (none) 1.0 chain (66 ft; 20 м)
rod rd rd For other names of this unit see the full list. 1.0 rd (17 ft; 5.0 м)
fathom fathom (none) fathom ≡ 6 ft 1.0 fathom (6.0 ft; 1.8 м)
yard yd yd assumes the international definition 1.0 yd (0.91 м)
фут ft (foot) ft long code "foot" outputs foot (and never feet) 1.0 ft (0.30 м)
  • ftin (feet and inches)
  • ft m (foot m)
дюйм in in 1.0 in (25 мм)
  • in cm
  • in mm
Other nautical mile nmi nmi the international standard nautical mile
For other nautical miles see the full list.
1.0 nmi (1.9 км; 1.2 mi)
parsec pc pc 1.0 pc (3.3 ly)
light-year ly ly 1.0 ly (63,000 AU)
astronomical unit AU AU 1.0 AU (150,000,000 км; 93,000,000 mi)

MASS
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
SI килоgram kg кg Allows triple output units. See: full list. 1.0 кg (35 oz)
  • kg lb
  • kg st
gram g g 1.0 g (0.035 oz)
  • g oz
миллиgram mg мg 1.0 мg (3.5×10−5 oz)
  • mg gr
микроgram µg (ug) мкg 1.0 мкg (3.5×10−8 oz)
non-SI metric tonne t t Allows triple output units. See: full list. 1.0 t (0.98 long tons; 1.1 short tons)
  • t LT
  • t ST
metric ton MT t
  • MT LT
  • MT ST
Avoirdupois long ton LT (none) 2,240 lb
used mostly in the British Commonwealth.
Allows triple output units. See: full list.
1.0 long ton (1.0 t)
  • LT t
  • LT MT
  • LT ST
long ton long ton
short ton ST (none) 2,000 lb
used mostly in the US.
Allows triple output units. See: full list.
1.0 short ton (0.91 t)
  • ST t
  • ST MT
  • ST LT
short ton short ton
stone st st 14 lb
used mostly in the British Commonwealth except Canada.
Allows triple output units. See: full list.
1.0 st (14 lb; 6.4 кg)
  • st kg
  • st lb
pound lb lb Allows triple output units. See: full list. 1.0 lb (0.45 кg)
  • lb kg
  • lb st
ounce oz oz 1.0 oz (28 g)
  • oz g
drachm drachm (none) 1.0 drachm (1.8 g)
drachm dram (none)
grain gr gr equivalent to the troy grain 1.0 gr (0.065 g)
Troy troy ounce ozt ozt 1.0 ozt (1.1 oz; 31 g)
other carat carat (none) 1.0 carat (0.20 g)

SPEED
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
SI metre per second m/s m/s US spelling: meter per second
1.0 m/s (3.3 ft/s)
  • m/s ft/s (m/s foot/s)
non-SI metric kilometre per hour km/h km/h US spelling: kilometer per hour
1.0 km/h (0.62 mph)
  • km/h mph
Imperial
&
US customary
mile per hour mph mph 1.0 mph (1.6 km/h)
  • mph km/h
  • mph kn
foot per second ft/s (foot/s) ft/s long code "foot/s" outputs foot per second (and never feet) 1.0 ft/s (0.30 m/s)
  • ft/s m/s
Maritime units knot kn (knot) kn 1.0 kn (1.9 km/h; 1.2 mph)
  • kn mph

TEMPERATURE
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
SI K K K Allows triple output units. See: full list. 1.0 K (−272.15 °C; −457.87 °F)
  • K °C (K C)
  • K °R (K R)
  • K °F (K F)
°C °C (C) °C 1.0 °C (33.8 °F)
  • °C K (C K)
  • °C °R (C R)
  • °C °F (C F)
Imperial
&
US customary
°R °R (R) °R 1.0 °R (0.556 K; −458.670 °F; −272.594 °C)
  • °R K (R K)
  • °R °C (R C)
  • °R °F (R F)
°F °F (F) °F 1.0 °F (−17.2 °C)
  • °F K (F K)
  • °F °C (F C)
  • °F °R (F R)
Celsius change C-change Used for temperature intervals instead of actual temperatures
Example:  {{convert|5|C-change|0}} warmer
Result: 5 °C (9 °F) warmer
Fahrenheit change F-change Used for temperature intervals instead of actual temperatures
Example:  {{convert|10|F-change|0}} colder
Result: 10 °F (6 °C) colder

TORQUE
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
Industrial
SI newton metre Nm N·m Triple combinations are also possible. See the full list. 1.0 N·m (0.74 lbf·ft)
  • Nm kg.m
  • Nm lb.ft
Non-SI metric kilogram metre kg.m kg·m 1.0 kg·m (9.8 N·m; 7.2 lb·ft)
  • kg.m Nm
  • kg.m lb.ft
Imperial
&
US customary
pound force-foot lb.ft lb·ft 1.0 lb·ft (1.4 N·m)
  • lb.ft Nm
  • lb.ft kg-m
Scientific
SI newton metre N.m N·m Triple combinations are also possible. See the full list. 1.0 N·m (0.74 lbf·ft)
  • N.m kgf.m
  • N.m lbf.ft
Non-SI metric kilogram force-metre kgf.m kgf·m 1.0 kgf·m (9.8 N·m; 7.2 lbf·ft)
  • kgf.m N.m
  • kgf.m lbf.ft
Imperial
&
US customary
pound force-foot lbf.ft lbf·ft 1.0 lbf·ft (1.4 N·m)
  • lbf.ft N.m
  • lbf.ft kgf.m

VOLUME
(Full list)
system unit unit-
code
abbrev-
iation
notes sample default
conversion
combination
output units
SI cubic metre m3 m3 US spelling: cubic meter
one kilolitre
1.0 m3 (35 cu ft)
cubic сантиmetre cm3 сm3 US spelling: cubic centimeter
one millilitre
1.0 сm3 (3.5×10−5 cu ft)
cc cc
cubic миллиmetre mm3 мm3 US spelling: cubic millimeter
1.0 мm3 (3.5×10−8 cu ft)
non-SI metric килоlitre kl кl US spelling: kiloliter
one cubic metre
1.0 кl (220 imp gal; 260 US gal)
kL кL
litre l l US spelling: liter
one cubic decimetre
Allows triple output units. See: full list.
1.0 l (0.22 imp gal; 0.26 US gal)
  • l impgal
  • l USgal
  • l U.S.gal
  • l USdrygal
  • l U.S.drygal
L L
  • L impgal
  • L impqt
  • L USgal
  • L U.S.gal
  • L USdrygal
  • L U.S.drygal
сантиlitre cl сl US spelling: centiliter
1.0 сl (0.0022 imp gal; 0.0026 US gal)
cL сL
миллиlitre ml мl US spelling: milliliter
one cubic centimetre
1.0 мl (0.00022 imp gal; 0.00026 US gal)
  • ml impoz
  • ml USoz
  • ml U.S.oz
mL мL
  • mL impoz
  • mL USoz
  • mL U.S.oz
Imperial
&
US customary
cubic yard cuyd cu yd 1.0 cu yd (0.76 m3)
cubic foot cuft (cufoot) cu ft long code "cufoot" outputs cubic foot (and never feet) 1.0 cu ft (0.028 m3)
cubic inch cuin cu in 1.0 cu in (16 сm3)
Imperial imperial barrel impbbl imp bbl 36 imp gal 1.0 imp bbl (160 l; 36 imp gal; 43 US gal)
imperial bushel impbsh imp bsh 8 imp gal 1.0 imp bsh (36 l; 8.0 imp gal; 8.3 US dry gal)
impbu imp bu
imperial gallon impgal imp gal 4.54609 litres by definition, also
4 imp qt or 8 imp pt or 160 imp fl oz
Allows triple output units. See: full list.
1.0 imp gal (4.5 l; 1.2 US gal)
  • impgal l
  • impgal L
  • impgal USgal
  • impgal U.S.gal
  • impgal USdrygal
  • impgal U.S.drygal
imperial quart impqt imp qt 1/4 imp gal or 40 imp fl oz 1.0 imp qt (1,100 мl; 38 US fl oz)
imperial pint imppt imp pt 1/8 imp gal or 20 imp fl oz 1.0 imp pt (0.57 l)
imperial fluid ounce impoz (impfloz) imp fl oz 1/160 imp gal 1.0 imp fl oz (28 мl; 0.96 US fl oz)
  • impoz USoz
  • impoz U.S.oz
  • impoz ml
  • impoz mL
US customary
liquid measure
US barrel USbbl US bbl 31½ US gal
used for liquids except for oil and beer (see the full list)
1.0 US bbl (120 l; 32 US gal; 26 imp gal)
U.S.bbl U.S. bbl
barrel oilbbl bbl 42 US gal 1.0 bbl (0.16 m3)
US beer barrel USbeerbbl
(usbeerbbl)
US bbl 1.0 US bbl (120 l; 31 US gal; 26 imp gal)
U.S.beerbbl
(usbeerbbl)
U.S. bbl
US gallon USgal US gal 231 cubic inches by definition, also
4 US qt or 8 US pt or 128 US fl oz
Allows triple output units. See: full list.
1.0 US gal (3.8 l; 0.83 imp gal)
  • USgal l
  • USgal L
  • USgal impgal
U.S.gal U.S. gal
  • USgal l
  • USgal L
  • USgal impgal
US quart USqt US qt 1/4 US gal or 32 US fl oz 1.0 US qt (950 мl)
U.S.qt U.S. qt
US pint USpt US pt 1/8 US gal or 16 US fl oz 1.0 US pt (0.47 l; 0.83 imp pt)
U.S.pt U.S. pt
US fluid ounce USoz
(USfloz)
US fl oz 1/128 US gal 1.0 US fl oz (30 мl)
  • USoz ml
  • USoz mL
  • USoz impoz
U.S.oz
(U.S.floz)
U.S. fl oz
  • U.S.oz ml
  • U.S.oz mL
  • U.S.oz impoz
US customary
dry measure
US dry barrel USdrybbl US dry bbl 105/32 US bsh 1.0 US dry bbl (0.12 m3)
U.S.drybbl U.S. dry bbl
US bushel USbsh US bsh 2150.42 cubic inches by definition 1.0 US bsh (35 l; 8.0 US dry gal; 7.8 imp gal)
U.S.bsh U.S. bsh
US bushel USbu US bu 2150.42 cubic inches by definition 1.0 US bu (35 l; 8.0 US dry gal; 7.8 imp gal)
U.S.bu U.S. bu
US dry gallon USdrygal US dry gal 1/8 US bsh
Allows triple output units. See: full list.
1.0 US dry gal (4.4 l)
  • USdrygal l
  • USdrygal L
  • USdrygal impgal
U.S.drygal U.S. dry gal
  • U.S.drygal l
  • U.S.drygal L
  • U.S.drygal impgal
US dry quart USdryqt US dry qt 1/32 US bsh 1.0 US dry qt (1,100 мl)
U.S.dryqt U.S. dry qt
US dry pint USdrypt US dry pt 1/32 US bsh 1.0 US dry pt (550 мl)
U.S.drypt U.S. dry pt

PRESSURE
unit unit-
code
abbrev-
iation
sample default
conversion
гигаpascal GPa ГPa 1.0 ГPa (150,000 psi)
мегаpascal MPa МPa 1.0 МPa (150 psi)
килоpascal kPa кPa 1.0 кPa (0.15 psi)
гектоpascal hPa гPa 1.0 гPa (0.015 psi)
pascal Pa Pa 1.0 Pa (0.00015 psi)
миллиpascal mPa мPa 1.0 мPa (1.5×10−7 psi)
millibar mbar mbar 1.0 mbar (1.0 гPa)
mb mb
decibar dbar dbar 1.0 dbar (10 кPa)
bar bar (none) 1.0 bar (100 кPa)
kilobarye kBa kBa 1.0 kBa (1.0 гPa)
barye Ba Ba 1.0 Ba (0.10 Pa)
standard atmosphere atm atm 1.0 atm (100 кPa)
torr Torr Torr 1.0 Torr (0.13 кPa)
millimetre of mercury mmHg mmHg 1.0 mmHg (0.13 кPa)
inch of mercury inHg inHg 1.0 inHg (3.4 кPa)
pound per square inch psi psi 1.0 psi (6.9 кPa)
FUEL EFFICIENCY
unit unit-
code
notes combinations
kilometres per litre km/l (km/L) Use km/L to get "km/L"
  • km/l mpgimp
  • km/l mpgus
litres per 100 kilometres l/100 km (L/100 km) Use L/100 km to get "L/100 km"
  • l/100 km mpgimp
  • l/100 km mpgus
litres per kilometre l/km (L/km) Use L/km to get "L/km"
  • l/km impgal/mi
  • l/km usgal/mi
miles per imperial gallon mpgimp
  • mpgimp mpgus
miles per US gallon mpgus (mpgUS, mpgU.S.) Use mpgUS to get "US"

Use mpgU.S. to get "U.S."
mpgus will give "U.S." if spelling is
set to US & "US" otherwise

  • mpgus mpgimp
imperial gallons per mile impgal/mi
  • impgal/mi
US gallons per mile usgal/mi (USgal/mi, U.S.gal/mi) As above with the us vs US vs U.S.
  • usgal/mi
The mpgUS, mpgU.S., USgal/mi vs U.S.gal/mi, km/L, L/100 km and L/km variants work within combinations also (making 36 combinations in total).
POWER
Watts, kilowatts, milliwatts, etc. are supported. As is horsepower (English & metric). Use standard abbreviations as input code (lowercase hp for horsepower, for example)
POPULATION DENSITY
unit unit-
code
notes combinations
inhabitants per square kilometre PD/sqkm PD stands for population density, i.e. humans (inhabitants)
  • PD/sqkm PD/sqmi
per square kilometre /sqkm Used when the word 'inhabitants' would be inappropriate.
  • /sqkm /sqmi
inhabitants per hectare PD/ha
  • PD/ha PD/acre
per hectare /ha
  • /ha /acre
inhabitants per square mile PD/sqmi PD stands for population density, i.e. humans (inhabitants)
  • PD/sqmi PD/sqkm
per square mile /sqmi Used when the word 'inhabitants' would be inappropriate.
  • /sqmi /sqkm
inhabitants per acre PD/acre
  • PD/acre PD/ha
per acre /acre
  • /acre /ha
COST PER UNIT MASS
unit unit-
code
notes combinations
dollars per pound $/lb "$" can mean US$, HK$, etc.
  • (none)
dollars per kilogram $/kg
  • (none)
dollars per troy ounce $/ozt 12 troy ounces in 1 troy pound
  • (none)

TemplateData

вироиш
This is the TemplateData documentation for this template used by VisualEditor and other tools.

Convert/old

Converts measurements to other units.

Template parameters

ПараметрТавзеҳотTypeStatus
value1

the value to convert

Numberoptional
from unit2

Lineoptional
to units3

Lineoptional
precision or suffix4

significant digits after decimal dot or, if negative, exponent of ten

Numberoptional
link unitslk

“on” all, “in” input, “out” output or “off” no units

Пешфарз
off
Lineoptional
abbreviationabbr

show “on” unit symbols, “off” all unit names in full words, “in” abbreviated input units, “out” abbreviated output units or “values” no unit names

Lineoptional
spellingsp

“us” US

Lineoptional
adjectiveadj

adjective form (singular unit name appended by hyphen) “on” or “mid” to put conversion at end

Lineoptional
conversiondisp

show conversion … “or” after ‘or’, “b” in parentheses, “x” with custom prefix and suffix, “table”/“tablecen”, “output only” alone, “output number only” alone and without unit, “flip” first, “unit” not at all but input unit; if the value is a number it is used as precision

Пешфарз
b
Lineoptional
significant figuressigfig

number that sets the number of significant figures

Numberoptional
sort keysortable

“on” generate a hidden sort key

Lineoptional