leekangsan / units

Units - a small portable unit converter

Home Page:https://dohliam.github.io/tiny_tools/units/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Units - A small portable unit converter

Overview

This is a very small offline-first mobile-friendly unit conversion tool for the browser. There are many full featured unit converters out there, so every effort has been made to keep this as simple, fast, and portable as possible.

An demo is available here.

Usage

Select a category (e.g. Length, Mass) from the dropdown menu and then choose the from and to units.

The resulting conversion at the bottom of the page will live update as different values and units are selected.

A full list of the currently supported units is below.

Units

Time

  • milliseconds
  • seconds
  • minutes
  • hours
  • days
  • weeks
  • months
  • years
  • decades
  • centuries

Length

Metric

  • mm
  • cm
  • m

Imperial

  • in
  • ft
  • yd
  • mi

Temperature

  • °C
  • °F
  • K
  • °N

IT

  • bit
  • byte
  • KB
  • MB
  • GB
  • TB

Area

Metric

  • cm²
  • km²
  • hectare

Imperial

  • sq in
  • sq ft
  • sq mi
  • acre

Mass

Metric

  • mg
  • g
  • kg
  • ton / tonne (metric ton)

Imperial

  • oz
  • oz avoirdupois
  • lb
  • stone
  • short ton

Volume

Metric

  • litre
  • millilitre
  • cc
  • mm³
  • km³

Imperial

  • fl oz (imp)
  • teaspoon (Can)
  • tablespoon (Can)
  • cup
  • gal (imp)
  • gal (US)
  • pint (imp)
  • quart (imp)
  • cu in
  • cu ft
  • cu mi

Speed

Metric

  • m/s
  • km/h

Imperial

  • mph
  • mpm
  • mps
  • fps

See also

"Units" is part of the tiny tools series, a collection of small mobile-friendly JavaScript tools for performing common tasks in the browser.

Other tools for working with numbers and units that might also be of interest:

Credits

Milligram CSS by @cjpatoilo, prototyped using dropin-minimal-css

License

MIT.

About

Units - a small portable unit converter

https://dohliam.github.io/tiny_tools/units/

License:MIT License


Languages

Language:HTML 64.0%Language:JavaScript 36.0%