FANDOM


[edit] [purge] Template-info.svg Template documentation

The following documentation is transcluded from Template:Convert/doc.

Usage

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 "( )", slash, "or", hyphens, comma, "to" or dashes. Styles include: distance "32 metres (105 ft)" and "32 metres or 105 ft"; temperature "18 °C (64 °F)" or "18 °C/64 °F"; weight "55.0 kg (121 lb)" or "65 to 80 kg (140 to 180 lb)"; etc. For units see: Convert/list of units.

Options include: lk=in, abbr=on, abbr=none, 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|...}}
  • Numbers must be entered in unformatted form (without commas). Values output by the template will be displayed formatted and with a true minus sign where appropriate. To specify with commas, re-code a number as {{formatnum:9,000,500|R}} (becomes 9000500).
  • Optional parameters, in examples below, allow abbreviated units (abbr=on), or US spellings (sp=us for meter), or slash separation (disp=s), or hyphenation (adj=on), etc.
  • For this template many levels of substitution are possible, hence doing this fully, step by step, is cumbersome. Use Special:ExpandTemplates instead.
  • The template has no in-built capacity for dimensional analysis. It is therefore up to the user to ensure that most 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.
  • An attempt to convert a unit to itself (e.g. km to km), will result in a template loop.
  • The range functionality is not fully implemented for all units, so experimentation may be required.
  • This documentation page tends to lag behind in terms of what the template can do. For details see the talk page and its archives.

Examples

Single value

InputDisplays as
{{convert|3.21|kg|lb}}3.21 kilograms (7.1 lb)
{{convert|3.21|kg|lb|0}}3.21 kilograms (7 lb)
{{convert|10|kg |lb |disp=or}}10 kilograms or 22 lb
{{convert|6|ft|5|in|m}}6 feet 5 inches (1.96 m)
{{convert|10|mi}}10 miles (16 km)
{{convert|100|mpgus}}100 miles per US gallon (2.4 L/100 km; 120 mpg-imp)
{{convert|120|km/h}}120 kilometres per hour (75 mph)
{{convert|-1|°C|°F}}−1 °C (30.2 °F)
{{convert|0|°C|°F}}0 °C (32 °F)
{{convert|0.01|°C|°F}}0.01 °C (32.02 °F)
{{convert|18|°C|°F}}18 °C (64 °F)
{{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|km2 sqmi|lk=on}}641 acres (2.594 km2; 1.0016 sq mi)
Note 'lk=on' links all units. Per guidelines, common units should not be linked. See: wp:overlink.
{{convert|641|acre|km2 sqmi|2|lk=on}}641 acres (2.59 km2; 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
InputDisplays as
{{convert|60|and|170|kg|lb}}60 and 170 kilograms (130 and 370 lb)
{{convert|60|to|170|kg|lb}}60 to 170 kilograms (130 to 370 lb)
{{convert|60|to(-)|170|kg|lb}}60 to 170 kilograms (130 to 370 lb)
{{convert|60|-|170|kg|lb}}60–170 kilograms (130–370 lb)
{{convert|41|to|50|C|F}}41 to 50 °C (106 to 122 °F)
{{convert|41|to|50|F|C}}41 to 50 °F (5 to 10 °C)
{{convert|41|-|50 |F|K}}41–50 °F (278–326 K)
{{convert|60|x|120|m|ft}}60 by 120 metres (200 {{{uu}}}  ft × {{{3}}} {{{uu}}}  ft)
{{convert|60|+/-|10|m|ft}}60 ± 10 metres (200 ± 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|abbr=mos}}5 litres to 7 litres (1.3 to 1.8 US gal)
{{convert|4|-|9|L|USgal|abbr=none}}4–9 litres (1.1–2.4 US gallons)
{{convert|30|-|40|mpg}}Template error: Use mpgus for miles per US gallon or mpgimp for miles per imperial gallon.
{{convert|7|-|9|L100km}}Template error: use L/100 km not L100km. See {{convert/L100km}}

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
InputDisplays as
{{convert/3 |2|x|4|x|6|m|ft}}2×4×6 metres (6.6×13×20 ft)
{{convert/3 |60|-|70|-|80|kg|lb}}60–70–80 kilograms (130–150–180 lb)
{{convert/4 |60|-|70|-|80|-|90|kg|lb}}60–70–80–90 kilograms (130–150–180–200 lb)
{{convert/3 |60|to|80|or|85|m|ft}}60 to 80 or 85 metres (200 to 260 or 279 ft)
{{convert/3 |11|by|15|rarely|16|ft|m}}11 by 15 rarely 16 feet (3.4 by 4.6 rarely 4.9 m)
{{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/4}}, the separator words can be any text. For {{convert/3}}, the first separator word must be x, and, or, to, -, or by.

Parameters

Parameters
Use US spelling attach |sp=us
Make units wikilinked 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. "The 190-foot (58 m) bridge" as opposed to "The 190 feet..."). This produces the adjective form—the unit name in the singular with a hyphen (according to the Manual of Style).
attach |adj=mid (e.g. "The 190-foot bridge (58 m)" as: |adj=mid|bridge, or "The 190-foot-long bridge (58 m)" as: |adj=mid|-long bridge)
         Any rounding-parameter should follow the mid-text: "text|0".
Abbreviate units, or not attach |abbr=on       to show unit symbols          (default: abbr=off)
attach |abbr=none   to show all unit names in full words
attach |abbr=in       to abbreviate input units
attach |abbr=out     to abbreviate output units
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=comma    to put comma, not brackets/parentheses
attach |disp=or          to put "or" between units
attach |disp=s (or |disp=/) for slash (e.g. 190 foot/58 metre). 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=none, or linked by lk=on.
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.2 mi (6 kilometres)".
To get symbol "km" use abbr=in, to abbreviate the input 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|kn}} gives 100 kilometres (190,000 kn) and {{convert|100|km}} gives 100 kilometres (62 mi).
Display input value with a fraction {{convert|3/8|in|mm|3|abbr=on}} 3+8{{{4}}} in (9.525 mm) or {{convert|11+1/4|in|cm|2|abbr=on}}11+1+4{{{4}}} in (28.58 cm)

For negative amounts, use 2 minus signs: -11-1/4.

Generate a hidden sort key for use with a sortable table attach |sortable=on to generate a hidden sort key (in the form of <span style="display:none">00000005</span>) so that sortable tables will sort correctly. This takes the first numeric value and left pads it with zeros to 16 places. 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
Round by 5 attach |disp=5  to round output to nearest 5 units. Might not work when linking unit names.
disp=tablecenSimilar 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.
disp=commaSimilar to disp=s except the two values will be separated by a comma, for situations where the first value is already within parentheses. See the Geography tables on Labrador for an example.
abbr=inAbbreviates only the input unit.
abbr=outAbbreviates only the output unit.
abbr=commaAbbreviates (removes) commas. This is a limited, temporary option, until comma=off can be implemented. For ranges, using abbr=comma conflicts with internal options, so instead, append "nocomma" to a range-word: tonocomma, bynocomma, andnocomma, -nocomma & xnocomma.
abbr=mosFor ranges, abbreviates with the input unit repeated, twice. Not to be confused with the specifications at MOS:NUM#Conventions.
disp=brFor using [brackets] instead of (parentheses), this would be best used when measurements are written within an existing set of (parentheses). It is grammatically correct and avoids double parentheses: )). Must use |abbr=on to force all units abbreviated, otherwise units are not abbreviated. Example: 55 miles [89 kilometres]. SEE attach |disp=x| above as another way of fully implementing brackets [].

Rounding

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 <code>|sigfig={some integer greater than zero} as noted above.
Combine both of the above
If both the desired precision and the desired number of significant figures are specified, the conversion will be rounded to the least precise of these.
Default rounding
If neither the desired precision nor the desired number of significant figures are specified, the conversion will be rounded either to a comparable precision as 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 the most 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 the most precise.

Units supported

See also: Convert/list of units

The table below lists units supported by this template. It is divided up according to the quantity being measured. Not all supported units are listed here; there are links to complete lists for each quantity.

The codes listed in the code column (column 3) are accepted as input by the template. These can be used as the second or third unnamed parameter. For some units there exist alternative codes. These are listed in brackets and have been incorporated to make the code more flexible for editors, e.g. °F or F may be entered.

The codes listed in the combinations column (column 7) can be used to produce multiple conversions. They can only be used as the third unnamed parameter, e.g. {{convert|55|nmi|km mi}} produces "55 nautical miles (102 km; 63 mi)".

Abridged list of units supported by {{Convert}}
Explanation
system unit unit-
code
symbol or
abbrev.
notes conversion factor 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 conversion factors used to convert to and from the SI base unit output codes for multiple conversions


LENGTH
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion
factor/m
combination output units
SI megametre Mm Mm US spelling: megameter
Expression error: Unexpected < operator.
kilometre km km US spelling: kilometer
Expression error: Unexpected < operator.
  • km mi
metre m m US spelling: meter
Expression error: Unexpected < operator.
  • m ft
  • m ftin
centimetre cm cm US spelling: centimeter
Expression error: Unexpected < operator.

</small>

  • cm in
millimetre mm mm US spelling: millimeter
Expression error: Unexpected < operator.

</small>

  • mm in
micrometre μm (um) µm US spelling: micrometer
Expression error: Unexpected < operator.

</small>

nanometre nm nm US spelling: nanometer
Expression error: Unexpected < operator.

</small>

non-SI metric ångström Å
(angstrom)
Å Expression error: Unexpected < operator.
Imperial
&
US customary
mile mi mi Expression error: Unexpected < operator.
  • mi km
furlong furlong Expression error: Unexpected < operator.
chain chain Expression error: Unexpected < operator.
rod rd rd For other names of this unit see the full list. Expression error: Unexpected < operator.

</small>

fathom fathom assumes 1 fathom ≡ 6 ft Expression error: Unexpected < operator.
yard yd yd assumes the international definition Expression error: Unexpected < operator.

</small>

foot ft (foot) ft Code "foot" will show "foot" if plural. Expression error: Unexpected < operator.
  • ftin (feet and inches)
  • ft m (foot m)
inch in in Expression error: Unexpected < operator.

</small>

  • in cm
  • in mm
Other nautical mile nmi nmi the international standard nautical mile
For other nautical miles see the full list.
Expression error: Unexpected < operator.
parsec pc pc Expression error: Unexpected < operator.

light-year ly ly Expression error: Unexpected < operator.

astronomical unit AU AU Expression error: Unexpected < operator.

</small>


AREA
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/m2 combinations
SI square kilometre km2 km2 US spelling: square kilometer
Expression error: Unexpected < operator.
  • km2 sqmi
square metre m2 m2 US spelling: square meter
Expression error: Unexpected < operator.

</small>

  • m2 sqft
square centimetre cm2 cm2 US spelling: square centimeter
Expression error: Unexpected < operator.

</small>

  • cm2 sqin
square millimetre mm2 mm² US spelling: square millimeter
Expression error: Unexpected < operator.

</small>

  • mm2 sqin
non-SI metric hectare ha ha Expression error: Unexpected < operator.
Imperial
&
US customary
square mile sqmi sq mi Expression error: Unexpected < operator.
  • sqmi km2
acre acre acres Expression error: Unexpected < operator.
square yard sqyd sq yd Expression error: Unexpected < operator.

</small>

square foot sqft
(sqfoot)
sq ft Code "sqfoot" will show "square foot" if plural. Expression error: Unexpected < operator.
  • sqft m2 (sqfoot m2)
square inch sqin sq in Expression error: Unexpected < operator.

</small>

  • sqin cm2
Other square nautical mile sqnmi sq nmi Expression error: Unexpected < operator.
dunam dunam For alternative spellings and definitions see the full list Expression error: Unexpected < operator.
tsubo tsubo Expression error: Unexpected < operator.


VOLUME
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/m3 combinations
SI cubic metre m3 m3 US spelling: cubic meter
one kilolitre
Expression error: Unexpected < operator.
cubic centimetre cm3 cm3 US spelling: cubic centimeter
one millilitre
Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

cubic millimetre mm3 mm³ US spelling: cubic millimeter
Expression error: Unexpected < operator.

</small>

non-SI metric kilolitre kl kl US spelling: kiloliter
one cubic metre
Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltab

litre l l US spelling: liter
one cubic decimetre
Allows triple output units. See: full list.
Expression error: Unexpected < operator.
  • l impgal
  • l USgal
  • l U.S.gal
  • l USdrygal
  • l U.S.drygal

Template:Convert/list of units/rowaltab

  • L impgal
  • L USgal
  • L U.S.gal
  • L USdrygal
  • L U.S.drygal
centilitre cl cl US spelling: centiliter
Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltab

millilitre ml ml US spelling: milliliter
one cubic centimetre
Expression error: Unexpected < operator.
  • ml impoz
  • ml USoz
  • ml U.S.oz

Template:Convert/list of units/rowaltab

  • mL impoz
  • mL USoz
  • mL U.S.oz
Imperial
&
US customary
cubic yard cuyd cu yd Expression error: Unexpected < operator.
cubic foot cuft (cufoot) cu ft Code "cufoot" will show "cubic foot" if plural. Expression error: Unexpected < operator.

</small>

cubic inch cuin cu in Expression error: Unexpected < operator.

</small>

Imperial imperial barrel impbbl imp bbl 36 imp gal Expression error: Unexpected < operator.
imperial bushel impbsh imp bsh 8 imp gal Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

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.
Expression error: Unexpected < operator.
  • impgal l
  • impgal L
  • impgal USgal
  • impgal U.S.gal
  • impgal USdrygal
  • impgal U.S.drygal

Template:Convert/list of units/rowImp

imperial pint imppt imp pt 1/8 imp gal or 20 imp fl oz Expression error: Unexpected < operator.
imperial fluid ounce impoz (impfloz) imp fl oz 1/160 imp gal Expression error: Unexpected < operator.

</small>

  • 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)
Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltab

barrel oilbbl bbl 42 US gal Expression error: Unexpected < operator.
US beer barrel USbeerbbl
(usbeerbbl)
US bbl Expression error: Unexpected < operator.

Template:Convert/list of units/rowbraltab

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.
Expression error: Unexpected < operator.
  • USgal l
  • USgal L
  • USgal impgal

Template:Convert/list of units/rowaltabUSer

  • USgal l
  • USgal L
  • USgal impgal

Template:Convert/list of units/rowUSre Template:Convert/list of units/rowaltabUSer Template:Convert/list of units/rowUSre Template:Convert/list of units/rowaltabUSer Template:Convert/list of units/rowbrUSre

  • 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 Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltabUSer

US bushel USbsh US bsh 2150.42 cubic inches by definition Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab Template:Convert/list of units/rowaltab Template:Convert/list of units/rowaltabUSer

US dry gallon USdrygal US dry gal 1/8 US bsh
Allows triple output units. See: full list.
Expression error: Unexpected < operator.
  • USdrygal l
  • USdrygal L
  • USdrygal impgal

Template:Convert/list of units/rowaltabUSer

  • U.S.drygal l
  • U.S.drygal L
  • U.S.drygal impgal

Template:Convert/list of units/rowUSre Template:Convert/list of units/rowaltabUSer

US dry pint USdrypt US dry pt 1/32 US bsh Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltabUSer


SPEED
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/(m/s) combinations
SI metre per second m/s m/s US spelling: meter per second
Expression error: Unexpected < operator.
  • m/s ft/s (m/s foot/s)
non-SI metric kilometre per hour km/h km/h US spelling: kilometer per hour
Expression error: Unexpected < operator.
  • km/h mph
Imperial
&
US customary
mile per hour mph mph Expression error: Unexpected < operator.
  • mph km/h
  • mph kn
foot per second ft/s (foot/s) ft/s Code "foot/s" will show "foot per second" if plural. Expression error: Unexpected < operator.

</small>

  • ft/s m/s
Maritime units knot kn (knot) kn Expression error: Unexpected < operator.
  • kn mph


FORCE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/N combination output units
SI giganewton GN GN Allows triple output units. See: full list. Expression error: Unexpected < operator.
  • GN LT-f
  • GN LTf
  • GN ST-f
  • GN STf
meganewton MN MN Allows triple output units. See: full list. Expression error: Unexpected < operator.

</small>

  • MN LT-f
  • MN LTf
  • MN ST-f
  • MN STf
kilonewton kN kN Allows triple output units. See: full list. Expression error: Unexpected < operator.

</small>

  • kN LT-f
  • kN LTf
  • kN ST-f
  • kN STf
newton N N Expression error: Unexpected < operator.

</small>

  • N lb-f
  • N lbf
  • N oz-f
  • N ozf
millinewton mN mN Expression error: Unexpected < operator.

</small>

  • mN oz-f
  • mN ozf
  • mN gr-f
  • mN grf

Template:Convert/μN

  • μN gr-f
  • μN grf
nanonewton nN nN Expression error: Unexpected < operator.

</small>

  • nN gr-f
  • nN grf
cgs megadyne Mdyn Mdyn Expression error: Unexpected < operator.
kilodyne kdyn kdyn Expression error: Unexpected < operator.

</small>

dyne dyn
(dyne)
dyn Expression error: Unexpected < operator.
millidyne mdyn mdyn Expression error: Unexpected < operator.

</small>

Metric gravitational units tonne-force t-f tf Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltab

kilogram-force kg-f kgf Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

gram-force g-f gf Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

milligram-force mg-f mgf Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

Avoirdupois-based units poundal pdl pdl Expression error: Unexpected < operator.
long ton-force LT-f LTf Expression error: Unexpected < operator.

  • LT-f ST-f

Template:Convert/list of units/rowaltab

  • LTf STf
short ton-force ST-f STf Expression error: Unexpected < operator.

</small>

  • ST-f LT-f

Template:Convert/list of units/rowaltab

  • STf LTf
pound-force lb-f lbf Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

grain-force gr-f grf Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltab


ENERGY
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/J combinations
SI gigajoule GJ GJ Expression error: Unexpected < operator.
megajoule MJ MJ Expression error: Unexpected < operator.

</small>

kilojoule kJ kJ Expression error: Unexpected < operator.

</small>

hectojoule hJ hJ Expression error: Unexpected < operator.

</small>

decajoule daJ daJ Expression error: Unexpected < operator.

</small>

joule J J Expression error: Unexpected < operator.

</small>

decijoule dJ dJ Expression error: Unexpected < operator.

</small>

centijoule cJ cJ Expression error: Unexpected < operator.

</small>

millijoule mJ mJ Expression error: Unexpected < operator.

</small>

Template:Convert/μJ

nanojoule nJ nJ Expression error: Unexpected < operator.

</small>

cgs megaerg Merg Merg Expression error: Unexpected < operator.
kiloerg kerg kerg Expression error: Unexpected < operator.

</small>

erg erg erg Expression error: Unexpected < operator.

</small>

Watt-hour multiples terawatt-hour TWh TWh Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltab

gigawatt-hour GWh GWh Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

megawatt-hour MWh MWh Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

kilowatt-hour kWh kWh Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltab

watt-hour Wh Wh Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

Electron-
volt
multiples
gigaelectronvolt GeV GeV Expression error: Unexpected < operator.

megaelectronvolt MeV MeV Expression error: Unexpected < operator.

</small>

kiloelectronvolt keV keV Expression error: Unexpected < operator.

</small>

electronvolt eV eV Expression error: Unexpected < operator.

</small>

millielectronvolt meV meV Expression error: Unexpected < operator.

Calorie multiples

Template:Convert/list of units/rowuninotetop Template:Convert/list of units/rownonote Template:Convert/list of units/rownonote Template:Convert/list of units/rownonote Template:Convert/list of units/rownonote

pound/
ounce
-foot/
inch-hour-minute-second
foot-poundal ftpdl ft·pdl Expression error: Unexpected < operator.
foot-pound force ftlbf ft·lbf Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

inch-pound force inlbf in·lbf Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

inch-ounce force inozf in·ozf Expression error: Unexpected < operator.

Template:Convert/list of units/rowaltab

horsepower-hour hph hp·h 2,684,519.537696172792
British thermal unit

Template:Convert/list of units/rowuninotetopwaltab Template:Convert/list of units/rowaltab

TNT-based units

Template:Convert/list of units/rowprimenametopNa Template:Convert/list of units/rowaltnameNa Template:Convert/list of units/rowprimenameNa Template:Convert/list of units/rowaltname Template:Convert/list of units/rowprimenameNa Template:Convert/list of units/rowaltname Template:Convert/list of units/rowprimenameNa Template:Convert/list of units/rowaltnameNa

Other
Hartree Eh Eh Expression error: Unexpected < operator.

rydberg Ry Ry Expression error: Unexpected < operator.

</small>

tonne of oil equivalent toe toe Expression error: Unexpected < operator.

</small>

barrel of oil equivalent BOE BOE Expression error: Unexpected < operator.

</small>

cubic foot of natural gas cuftnaturalgas (cufootnaturalgas) Unit-code cufootnaturalgas will show "cubic foot of natural gas" if plural. 1,055,055.85262
litre-atmosphere latm l·atm Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab Template:Convert/list of units/rowImp

US gallon-atmosphere USgalatm
(usgalatm)
US gal·atm Expression error: Unexpected < operator.

Template:Convert/list of units/rowbraltab


TEMPERATURE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion
to kelvin
combinations
SI kelvin K K Allows triple output units. See: full list. [K]
  • K °C (K C)
  • K °R (K R)
  • K °F (K F)
degree Celsius °C (C) °C ([°C]+273.15)
  • °C K (C K)
  • °C °R (C R)
  • °C °F (C F)
Imperial
&
US customary

Template:Convert/list of units/rowtempT

  • °R K (R K)
  • °R °C (R C)
  • °R °F (R F)
degree Fahrenheit °F (F) °F (([°F]+459.67)/1.8)
  • °F K (F K)
  • °F °C (F C)
  • °F °R (F R)
Celsius changeC-change Example:  {{convert|5|C-change}}
Fahrenheit changeF-change Example:  {{convert|10|F-change}}


MASS
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/kg combination output units
SI kilogram kg kg Allows triple output units. See: full list. Expression error: Unexpected < operator.
  • kg lb
  • kg st
gram g g Expression error: Unexpected < operator.
  • g oz
milligram mg mg Expression error: Unexpected < operator.

</small>

  • mg gr
microgram μg (ug) µg Expression error: Unexpected < operator.

</small>

non-SI metric tonne t t Allows triple output units. See: full list. Expression error: Unexpected < operator.
  • t LT
  • t ST

Template:Convert/list of units/rowaltname

  • MT LT
  • MT ST
Avoirdupois long ton LT 2,240 lb
used mostly in the British Commonwealth.
Allows triple output units. See: full list.
Expression error: Unexpected < operator.
  • LT t
  • LT MT
  • LT ST

Template:Convert/list of units/rowaltabNa

short ton ST 2,000 lb
used mostly in the US.
Allows triple output units. See: full list.
Expression error: Unexpected < operator.
  • ST t
  • ST MT
  • ST LT

Template:Convert/list of units/rowaltabNa

stone st st 14 lb
used mostly in the British Commonwealth except Canada.
Allows triple output units. See: full list.
Expression error: Unexpected < operator.
  • st kg
  • st lb
pound lb lb Allows triple output units. See: full list. Expression error: Unexpected < operator.
  • lb kg
  • lb st
ounce oz oz Expression error: Unexpected < operator.
  • oz g

Template:Convert/list of units/rowprimenameNa Template:Convert/list of units/rowaltnameNa

grain gr gr equivalent to the troy grain Expression error: Unexpected < operator.
Troy troy ounce ozt ozt Expression error: Unexpected < operator.
other carat carat Expression error: Unexpected < operator.


TORQUE
(Full list)
system unit unit-
code
abbrev-
iation
notes conversion factor/N·m combinations
Industrial
SI newton metre Nm N·m Triple combinations are also possible. See the full list. 1
  • Nm kg-m
  • Nm ft-lb
Non-SI metric kilogram-meter kg-m kg-m 9.80665
  • kg-m Nm
  • kg-m ft-lb
Imperial
&
US customary
foot-pound ft-lb ft-lb 1.3558
  • ft-lb Nm
  • ft-lb kg-m
Scientific
SI newton metre N-m N·m Triple combinations are also possible. See the full list. 1
  • N-m kgf-m
  • N-m lbf-ft
Non-SI metric kilogram-force meter kgf-m kgf·m 9.80665
  • kgf-m N-m
  • kgf-m lbf-ft
Imperial
&
US customary
pound-foot lbf-ft lbf·ft 1.3558
  • lbf-ft N-m
  • lbf-ft kgf-m
PRESSURE
unit unit-
code
abbrev-
iation
conversion factor/Pa
gigapascal GPa GPa Expression error: Unexpected < operator.
megapascal MPa MPa Expression error: Unexpected < operator.
kilopascal kPa kPa Expression error: Unexpected < operator.
hectopascal hPa hPa Expression error: Unexpected < operator.

</small>

pascal Pa Pa Expression error: Unexpected < operator.

</small>

millipascal ‎mPa‎ mPa Expression error: Unexpected < operator.

</small>

millibar mbar mbar Expression error: Unexpected < operator.

</small>

Template:Convert/list of units/rowaltab

decibar ‎dbar dbar Expression error: Unexpected < operator.

</small>

bar bar bar Expression error: Unexpected < operator.

</small>

kilobarye kBa kBa Expression error: Unexpected < operator.

</small>

barye ‎Ba Ba Expression error: Unexpected < operator.

</small>

standard atmosphere atm atm Expression error: Unexpected < operator.

</small>

torr Torr Torr Expression error: Unexpected < operator.

</small>

millimetre of mercury mmHg mmHg Expression error: Unexpected < operator.

</small>

inch of mercury inHg inHg Expression error: Unexpected < operator.
pound per square inch psi psi (444,822,161.52605
/ 64,516)
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 (lower case 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)

Examples

See also

  • {{Convinfobox}} for use in infoboxes
  • {{Bbl to t}} for converting barrel of oil to tonnes
  • {{CwtQtrLb to kg}} for converting long hundred weights, quarters and pounds into kilograms
  • {{Decdeg}} for converting degrees, minutes and seconds to decimal degrees
  • {{HMS2Deg}} for converting hour angles, given in hours, minutes and seconds, to decimal degrees
  • {{Height}} for converting and displaying a person's height
  • {{Miles-chains}} for converting miles and chains to kilometres linking "chains"
  • {{Pop density}} for converting a population and area to a density
  • {{Inflation}} for calculating inflation of Consumer Price Index related prices
  • {{Metricate}}
  • {{RailGauge}} for converting rail (track) gauges
  • {{Convert/scale}} with custom formula for converting any linearly related units
  • Bug 235: Auto unit conversion
This page uses content from the English language Wikipedia. The original content was at Template:Convert. The list of authors can be seen in the page history. As with this Familypedia wiki, the content of Wikipedia is available under the Creative Commons License.
Community content is available under CC-BY-SA unless otherwise noted.