Appearance
Convert
Convert quantities in metric units to US/imperial units, and vice-versa. Supports lb↔kg, oz↔g, miles↔km, feet/yards↔m, inches↔mm/cm, °F↔°C.
Demo
Readme
Convert extension for PopClip
Convert quantities in metric units to US/imperial units, and vice-versa.
[Remote image removed]Supports the following conversions: lb↔kg, oz↔g, miles↔km, feet/yards↔m, inches↔cm, °F↔°C.
The result will be shown as the action's button title. Click the button to paste the result, or shift-click to copy it.
This is not a "scientific" converter, rather it attempts to parse the input as it might be encountered in ordinary writing, recipes, etc. Examples:
5 km
,5km
,5k
,5K
,5 kilometres
,5 kilometers
, all give the result3.1 miles
.2in
,2"
and2 inches
all give5.1 cm
.80F
,80 °F
and80 fahrenheit
all give26.7 °C
.
The output will attempt to match the number of decimal places of the input, so 5.000km
will output 3.107 miles
. (However, the output will always have at least one decimal place.)
Accepts either ,
or .
as the decimal separator in the input. The output decimal separator will be according to the current system locale.
Does not accept numbers with thousands separators in the input. (This would ne a nice improvement.)
Wikipedia links:
About
Author: Nick Moore
Requires PopClip 2023.9.
Changelog
- 29 May 2025: Added support for mm to inch conversion. Modernize code structure to use Typescript only.
- 4 Nov 2021: Updated for macOS Monterey, rewritten in TypeScript. Now displays the output in the button title itself.
- 20 Oct 2020: Fix error on newer PHP versions.
- 16 Apr 2013: Initial release (PHP).
Info
- Updated
May 29, 2025 - Version
303 - Identifier
com.pilotmoon.popclip.extension.convert
- PopClip Version
≥2023.9 - Action Type
JavaScript - License
MIT License - Source
pilotmoon/PopClip-Extensions/.../source/Convert.popclipext/