Metrication Browser Add-On Test Page


Lengths / Distance

Inches

Test ValueOriginal Test ValueTarget ValueResult
3 x 5 x 2 inches3 x 5 x 2 i​nches76.2 x 127 x 50.8 millimetres
3 x 5 x 2 in3 x 5 x 2 i​n76.2 x 127 x 50.8 mm
3" x 5" x 2"3​" x 5​" x 2​"76.2 mm x 12.7 cm x 50.8 mm
The dimensions were 3 ²⁹⁄₃₂" x 5" x 2".The dimensions were 3 ²⁹⁄₃₂​" x 5​" x 2​".The dimensions were 99.2 mm x 12.7 cm x 50.8 mm.
The dimensions were 3 ⅓" x 5" x 2".The dimensions were 3 ⅓​" x 5​" x 2​".The dimensions were 84.7 mm x 12.7 cm x 50.8 mm.
I used 9 inch nails in the roof.I used 9 i​nch nails in the roof.I used 22.86 centimetre nails in the roof.
The nail was 1 inch in length.The nail was 1 i​nch in length.The nail was 25.4 millimetres in length.
We were walking in water 5 inches deep.We were walking in water 5 i​nches deep.We were walking in water 12.7 centimetres deep.
There are 12 inches in 1 foot.There are 12 i​nches in 1 f​oot.There are 30.48 centimetres in 30.48 centimetres.
5.5 inches5.5 i​nches13.97 centimetres
5.5"5.5​"13.97 cm
5.5”5.5​”13.97 cm
5 1/2 inches5 1/2 i​nches13.97 centimetres
5 1/2"5 1/2​"13.97 cm
5 ½ inches5 ½ i​nches13.97 centimetres
5½ inches5½ i​nches13.97 centimetres
5 ½"5 ½​"13.97 cm
5 ½ in5 ½ i​n13.97 cm
5 ½ in.5 ½ i​n.13.97 cm.
Version 2.5 installedVersion 2.5 i​nstalledVersion 2.5 installed
38 involved38 i​nvolved38 i​nvolved
-⅘ inches-⅘ i​nches-20.3 millimetres
+⅘ inches+⅘ i​nches20.3 millimetres
10 inches10 i​nches25.4 centimetres
10 Inches10 I​nches25.4 Centimetres
10 INCHES10 I​NCHES25.4 CENTIMETRES
1/4-inch to 3/4-inch1/4-i​nch to 3/4-i​nch6.4-millimetres to 19.1-millimetres
¼"¼​"6.4 mm
In 1981 there were 4. In 1989 there were 7.I​n 1981 there were 4. I​n 1989 there were 7.I​n 1981 there were 4. I​n 1989 there were 7.
She said "I prefer number 50".False positive expected.She said "I prefer number 1.3 m.
I saw 12 inchworms yesterday.I saw 12​ in​chworms yesterday. (Test false positive.)I saw 12​ i​nchworms yesterday.
13 inch.13​ i​nch.33.02 centimetre.
in March 2018, in the wakein March 2018, i​n the wake (Test false positive)in March 2018, i​n the wake
“as early as 2021,”“as early as 2021​,​” (Test false positive)“as early as 2021​,​”
25 5/8 x 59 inches25 5/​8 x 5​9 i​nches0.7 x 1.5 metres

Feet and Inches

Test ValueOriginal Test ValueTarget ValueResult
My friend is 5 feet 11¾ inches tallMy friend is 5 f​eet 11¾ i​nches tallMy friend is 1.8 metres tall
My friend is 5 feet 11 3/4 inches tallMy friend is 5 f​eet 11 3/4 ​inches tallMy friend is 1.8 metres tall
My friend is 5 feet 11 3/4 inches tallMy friend is 5 f​eet 11 3/4 i​nches tallMy friend is 1.8 metres tall
5 foot 7 inches5 f​oot 7 i​nches1.7 metres
5 foot 7⅜ inches5 f​oot 7⅜ i​nches1.7 metres
5 foot 75 f​oot 71.7 metres
5 feet 7 inches5 f​eet 7 i​nches1.7 metres
4 feet 1 inch4 f​eet 1 i​nch1.2 metres
5' 7⅜"5​' 7⅜​"1.7 m
5' 75​' ​7​1.7 m
5' 7⅜5​' ​7⅜​1.7 m
5'7"5​'​7​"1.7 m
5’7”5​’​7​”1.7 m
5'75​'​7​1.7 m
5ft7in5​ft7​in1.7 m
5 ft 7 in5 f​t 7 i​n1.7 m
5ft 7in5f​t 7i​n1.7 m
5ft75f​t71.7 m
5 ft 75 f​t 71.7 m
5ft 75f​t 71.7 m
with 5ft, 7 other optionswith 5f​t, 7 other optionswith 1.5m, 7 other options

Feet

Test ValueOriginal Test ValueTarget ValueResult
½ foot½ f​oot15.24 centimetres
½'½​'15.24cm
½ ft½ f​t15.24 cm
1 foot1 f​oot30.48 centimetres
1'1​'30.48cm
1 ft1 f​t30.48 cm
2 feet2 f​eet60.96 centimetres
2'2​'60.96cm
2’2​’60.96cm
2 ft2 f​t60.96 cm
1,000 feet1,000 f​eet305 metres
1,000 feet1,000 f​eet305 metres
2,000 feet2,000 f​eet610 metres
5,000 feet5,000 f​eet2 kilometres
10,000 feet10,000 f​eet3,048 metres
35,000 feet35,000 f​eet10,668 metres
Over 50'sOver 50​'s (false positive on apostrophe)Over 50​'s
5 footballs were reported lost.5​ fo​otballs were reported lost. (Test false positive)5​ fo​otballs were reported lost.
≈1,000 feet≈1,000 f​eet≈305 metres

Yards

Test ValueOriginal Test ValueTarget ValueResult
1 yard1 y​ard91.44 centimetres
1 yd1 y​d91.44 cm
2 yards2 y​ards1.8 metres
2 yd2 y​d1.8 m
2 yds2 y​ds1.8 m
2, 3, 4, 5 and 6 yards2, 3, 4, 5 and 6 y​ards1.8, 2.7, 3.7, 4.6 and 5.5 metres
8 yardsticks were on backorder.8 y​ardsticks were on backorder. (Test false positive)8 y​ardsticks were on backorder.

Miles (Statute)

Test ValueOriginal Test ValueTarget ValueResult
½ mile½ m​ile805 metres
½mi½m​i805m
½ mi½ m​i805 m
1 mile1 m​ile1.6 kilometres
1 statute mile1 s​tatute mile1.6 kilometres
1 mi1 m​i1.6 km
2 miles2 m​iles3.2 kilometres
2 statute miles2 s​tatute miles3.2 kilometres
2 mi2 m​i3.2 km
mile: 12m​ile: 12kilometre: 19.3
mile 12m​ile 12kilometre 19.3
miles 12, 15 and 18m​iles 12, 15 and 18kilometres 19.3, 24.1 and 29

Nautical Miles

½ nautical mile½ na​utical mile926 metres
½nm½n​m926m
½ nm½ n​m926 m
1 nautical mile1 n​autical mile1.9 kilometres
1 nm1 n​m1.9 km
1 nmi1 n​mi1.9 km
2 nautical miles2 n​autical miles3.7 kilometres
2 nm2 n​m3.7 km
2 nmi2 n​mi3.7 km

Weight

Tons

Test ValueOriginal Test ValueTarget ValueResult
¼ ton¼ t​on227 kilograms
½ ton½ t​on454 kilograms
1 ton1 t​on907 kilograms
2 tons2 t​ons1.8 tonnes
100 tons100 t​ons91 tonnes
100 tonnes100 t​onnes (False positive)100 t​onnes

Stones

Test ValueOriginal Test ValueTarget ValueResult
¼ stone¼ s​tone1.6 kilograms
½ stone½ s​tone3.2 kilograms
1 stone1 s​tone6.4 kilograms
2 stones2 s​tones13 kilograms
100 stones100 s​tones635 kilograms

Stones and Pounds

Test ValueOriginal Test ValueTarget ValueResult
1 stone 5 pounds1 s​tone 5 p​ounds8.6 kilograms
12 stone 10 pounds12 s​tone 10 p​ounds81 kilograms
12 stone 1012 s​tone 1081 kilograms

Pounds

Test ValueOriginal Test ValueTarget ValueResult
½ pound½ p​ound226.8 grams
1 pound1 p​ound453.6 grams
2 pounds2 p​ounds907.2 grams
2 lb2 l​b907.2 g
2 lbs2 l​bs907.2 g
5 pounding drums5 p​ounding drums5 p​ounding drums
1lb1l​b453.6g
2lbs2l​bs907.2g

Ounces

Test ValueOriginal Test ValueTarget ValueResult
1 ounce1 o​unce28.3 grams
1 oz1 o​z28.3 g
1oz1​oz28.3g
7 ounces7 o​unces198.4 grams
7 ozs7 o​zs198.4 g
7ozs7​ozs198.4g
1, 4 & 9 oz1, 4 & 9 o​z28.3, 113.4 & 255.1 g
1, 4 & 9 ounces1, 4 & 9 o​unces28.3, 113.4 & 255.1 grams

Area

Square Inches

Test ValueOriginal Test ValueTarget ValueResult
0.5 square inches0.5 square i​nches3.2 s​quare centimetres
1 square inch1 square i​nch6.5 s​quare centimetres
0.05 square inches0.05 square i​nches32.3 s​quare millimetres
8 square inches8 square i​nches51.6 s​quare centimetres

Square Feet

Test ValueOriginal Test ValueTarget ValueResult
200 square feet200 s​quare f​eet19 s​quare metres
200 sq. ft.200 s​q. f​t.19 sqm.
200 ft².20​0 f​t​².19 sqm.
200 sqft.20​0 s​qft.19 sqm.

Acres

Test ValueOriginal Test ValueTarget ValueResult
¼ acre¼ a​cre1,012 s​quare metres
1 acre1 a​cre4,047 s​quare metres
12 acres12 a​cres4.9 hectres

Squares (Construction)

Test ValueOriginal Test ValueTarget ValueResult
1 square is 100 square feet1 s​quare is 100 s​quare f​eet9.3 s​quare metres is 9.3 s​quare metres
The house was 78 squares.The house was 78 sq​uares.The house was 725 s​quare metres.

Volume

Fluid Ounces

Test ValueOriginal Test ValueTarget ValueResult
1 fluid ounce1 f​luid o​unce30 millilitres
1 us fluid ounce1 u​s f​luid o​unce30 millilitres
1 uk fluid ounce1 u​k f​luid o​unce28 millilitres
1 imperial fluid ounce1 i​mperial f​luid o​unce28 millilitres
2 fluid ounces2 f​luid o​unces59 millilitres
8¾ fluid ounces8¾ f​luid o​unces259 millilitres
400 fluid ounces400 f​luid o​unces12 litres
From 3 to 17 fluid ouncesFrom 3 to 17 f​luid o​uncesFrom 89 to 503 millilitres
5, 30, 200 and 400 fluid ounce options5, 30, 200 and 400 f​luid o​unce options0.1, 0.9, 6 and 12 litre options
5; 30; 200 and 400 fluid ounce options5; 30; 200 and 400 f​luid o​unce options0.1; 0.9; 6 and 12 litre options

Gallons

Test ValueOriginal Test ValueTarget ValueResult
¼ gallon¼ g​allon946 millilitres
1 gallon1 g​allon3.8 litres
3 gallons3 g​allons11.4 litres
3 us gallons3 u​s g​allons11.4 litres
3 uk gallons3 u​k g​allons13.6 litres
3 imperial gallons3 i​mperial g​allons13.6 litres
0.264172052358148 US gallons0.264172052358148 U​S g​allons1 litre
1 imperial gallon is equal to 1.20095 us gallons1 i​mperial g​allon is equal to 1.20095 u​s g​allons4.5 litres is equal to 4.5 litres

Miscellaneous Units

Temperature

Test ValueOriginal Test ValueTarget ValueResult
78° fahrenheit78​° f​ahrenheit26° celsius
78 degrees fahrenheit78 d​egrees f​ahrenheit26 degrees celsius
78 degrees f78 deg​rees f26 degrees celsius
78 degrees F78 deg​rees F26 degrees celsius
78°F78​°F26°C
78°f78​°f26°C
78° f78​° f26°C
1 degree fahrenheit1 d​egree f​ahrenheit-17 degrees celsius
-1 degree fahrenheit-1 d​egree f​ahrenheit-18 degrees celsius
minus 1 degree fahrenheitminus 1 d​egree f​ahrenheitminus -17 degrees celsius
minus 100 degrees fahrenheitminus 100 d​egrees f​ahrenheitminus 38 degrees celsius
-100 degrees fahrenheit-100 d​egrees f​ahrenheit-73 degrees celsius
32° f32​° f0°C
−40° F−40​° F-40°C
-40°F-40​°F-40°C
40°F40​°F4°C

Fuel Consumption

Test ValueOriginal Test ValueTarget ValueResult
10 miles per gallon10​ m​iles p​er g​allon24 litres/100 kilometres
10 miles to the gallon10 m​iles to the gallon24 litres/100 kilometres
10 miles/gallon10 m​iles/gallon24 litres/100 kilometres
10 miles\gallon10 m​iles\gallon24 litres/100 kilometres
10½ miles per gallon10½​ m​iles per gallon22 litres/100 kilometres
Between 10 and 12 miles per gallonBetween 10​ and 12​ m​iles per gallonBetween 24 and 20 litres/100 kilometres
Option of: 10, 12 and 16 miles per gallonOption of: 10​, 12​ and 16​ m​iles per gallonOption of: 23.5, 19.6 and 14.7 litres/100 kilometres
10 mpg10​ m​pg24 l/100km
10⅔ mpg10⅔​ m​pg22 l/100km
10 2/3 mpg10​ 2​/​3​ m​pg22 l/100km
between 10 & 13 mpgbetween 10​ & 13​ mp​gbetween 24 & 18 l/100km
9mpg9​m​pg26 l/100km
5, 6, 7 as well as 9 mpg5​, 6​, 7​ as we​ll as 9​ m​pg47, 39, 34 as well as 26 l/100km

Energy

Test ValueOriginal Test ValueTarget ValueResult
1 calorie1 c​alorie4 kilojoules
800 calories800 c​alories3,347 kilojoules
800-calorie800-c​alorie3,347-kilojoule

Miscellaneous Testing

Singular Form

Test ValueOriginal Test ValueTarget ValueResult
mile 27m​ile 27kilometre 43.5
We stopped overnight at mile 32We stopped overnight at m​ile 32We stopped overnight at kilometre 51.5
It was exactly 1 mile longIt was exactly 1 m​ile longIt was exactly 1.6 kilometres long
We stopped overnight at mile 32 and restedWe stopped overnight at m​ile 32 and restedWe stopped overnight at kilometre 51.5 and rested
We stopped overnight at mile 32 to restWe stopped overnight at m​ile 32 to restWe stopped overnight at kilometre 51.5 to rest
We needed to reach mile 32 or abandon the tripWe needed to reach m​ile 32 or abandon the tripWe needed to reach kilometre 51.5 or abandon the trip
We went on a 27 mile hikeWe went on a 27 m​ile hikeWe went on a 43.5 kilometre hike
They were wearing 40 gallon hatsThey were wearing 40 g​allon hatsThey were wearing 151 litre hats
I used 9 inch nails in the roofI used 9 i​nch nails in the roofI used 22.86 centimetre nails in the roof
They had a 8 pound childThey had a 8 p​ound childThey had a 3.6 kilogram child
The ball was fumbled at the 10 yard lineThe ball was fumbled at the 10 y​ard lineThe ball was fumbled at the 9.1 metre line
She knitted a 7 foot scarfShe knitted a 7 f​oot scarfShe knitted a 2.1 metre scarf
An 8 ounce glass shattered on the floor.An 8 o​unce glass shattered on the floor.
(Grammar note: "An 226.8 gram glass" An/A)
An 226.8 gram glass shattered on the floor.
Walk ¼ mile to your friend's houseWalk ¼ m​ile to your friend's houseWalk 402 metres to your friend's house

Test False Positive Lat/Long Degrees & Feet/Inches

Test ValueOriginal Test ValueTarget ValueResult
Tropic of Capricorn: 23°26'Tropic of Capricorn: 23​°26​'Tropic of Capricorn: 23​°26​'
Tropic of Capricorn: 23° 26'Tropic of Capricorn: 23​° 26​'Tropic of Capricorn: 23​° 26​'
lat 42° 15’ 30" Nlat 42​° 15​’ 30​" Nlat 42​° 15​’ 30​" N
lat 18° 40’ 16" Slat 18​° 40​’ 16​" Slat 18​° 40​’ 16​" S
long 89° 17’ 45" Wlong 89​° 17​’ 45​" Wlong 89​° 17​’ 45​" W
long 20° 19’ 22" Elong 20​° 19​’ 22​" Elong 20​° 19​’ 22​" E

Scaling Tests

[3 x 15 x 29 inches] should all use the same units because they are part of a group.
[3" x 5" x 40"] should use individual units because they are detected separetly.

Test with various HTML tags

Test with "20<br>miles<br>"
20
miles
Test with "20&nbsp;<br>miles<br>"
20 
miles
Test with "20<b>miles</b>"
20miles
Test with "20&nbsp;<b>miles</b>"
20 miles

Test CSS Margin Causing Illusion of Spaces

Test with <span style="margin-right: 7px;">
20miles
Test with <span style="padding-right: 7px;">
20miles
More investigation is required becaue it seems that the SPANs within the metrication hotspot prevent the margin/padding styles from being applied.
Test with <div style="margin-right: 7px; display: inline-block;">
20
miles
Test with <div style="padding-right: 7px; display: inline-block;">
20
miles
End test with <div>

Test HTML Comment Detection

Well-formed comment. Should show nothing. ==>
Malformed comment. Should show something. ==> start commentend 20 miles comment--> End comment testing.

Test with two spaces.

We hiked 20 miles.
20 miles.
20  miles. (Non-breaking spaces)

Test fractions.

We walked 14 mile and stopped.
<small><sup>1</sup><big>⁄</big><sub>4</sub></small> mile
14 mile
Test ValueOriginal Test ValueTarget ValueResult
¼ mile¼ m​ile402 metres
½ mile½ m​ile805 metres
¾ mile¾ m​ile1.2 kilometres
⅐ mile⅐ m​ile230 metres
⅑ mile⅑ m​ile179 metres
⅒ mile⅒ m​ile161 metres
⅓ mile⅓ m​ile536 metres
⅔ mile⅔ m​ile1.1 kilometres
⅕ mile⅕ m​ile322 metres
⅖ mile⅖ m​ile644 metres
⅗ mile⅗ m​ile966 metres
⅘ mile⅘ m​ile1.3 kilometres
⅙ mile⅙ m​ile268 metres
⅚ mile⅚ m​ile1.3 kilometres
⅛ mile⅛ m​ile201 metres
⅜ mile⅜ m​ile604 metres
⅝ mile⅝ m​ile1 kilometre
⅞ mile⅞ m​ile1.4 kilometres
-⅞ mile-⅞ m​ile-1.4 kilometres
1⅞ miles1⅞ m​iles3 kilometres
-1⅞ miles-1⅞ m​iles-3 kilometres
1.875 miles1.875 m​iles3 kilometres
-1.875 miles-1.875 m​iles-3 kilometres
1 7/8 miles1 7/8 m​iles3 kilometres
1 7/8 miles1&nbsp;7/8 m​iles3 kilometres

Test Pseudo-Units.

A fictitious imperial unit 'qtestq' is converted into an equally fictitious SI unit 'qresultq'. This is to test the corrent evaluation of the input imperial unit prior to its conversion to metric.

Test ValueOriginal Test ValueTarget ValueResult
¼ qtestq¼ qtest​q0.25 qresultq
½ qtestq½ qtest​q0.5000000000000000000 qresultq
¾ qtestq¾ qtest​q0.75 qresultq
⅐ qtestq⅐ qtest​q0.142857142857143 qresultq
⅑ qtestq⅑ qtest​q0.111111111111111 qresultq
⅒ qtestq⅒ qtest​q0.1000000000000000000 qresultq
⅓ qtestq⅓ qtest​q0.333333333333333 qresultq
⅔ qtestq⅔ qtest​q0.666666666666667 qresultq
⅕ qtestq⅕ qtest​q0.2000000000000000000 qresultq
⅖ qtestq⅖ qtest​q0.4000000000000000000 qresultq
⅗ qtestq⅗ qtest​q0.6000000000000000000 qresultq
⅘ qtestq⅘ qtest​q0.8000000000000000000 qresultq
⅙ qtestq⅙ qtest​q0.166666666666667 qresultq
⅚ qtestq⅚ qtest​q0.833333333333333 qresultq
⅛ qtestq⅛ qtest​q0.125 qresultq
⅜ qtestq⅜ qtest​q0.375 qresultq
⅝ qtestq⅝ qtest​q0.625 qresultq
⅞ qtestq⅞ qtest​q0.875 qresultq
-1 qtestq-1 qtest​q-1 qresultq
-0.5 qtestq-0.5 qtest​q-0.5000000000000000000 qresultq
½ qtestq½ qtest​q0.5000000000000000000 qresultq
-½ qtestq-½ qtest​q-0.5000000000000000000 qresultq
1½ qtestq1½ qtest​q1.5000000000000000000 qresultq
-1½ qtestq-1½ qtest​q-1.5000000000000000000 qresultq
1 1/2 qtestq1 1/2 qtest​q1.5000000000000000000 qresultq

Test Dynamic Content.

The following content is created dynamically via JavaScript when the page loaded.

Test ValueOriginal Test ValueTarget ValueResult
20 m​iles32.2 kilometres

Make a free website with Yola