An open API service indexing awesome lists of open source software.

https://github.com/dohliam/units

Units - a small portable unit converter
https://github.com/dohliam/units

conversion converters javascript mobile tiny-tools unit-conversion unit-converter units units-of-measurement

Last synced: 6 months ago
JSON representation

Units - a small portable unit converter

Awesome Lists containing this project

README

          

# 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.

A demo is available [here](https://dohliam.github.io/tiny_tools/units/).

## 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²
* m²
* 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³
* m³
* 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**](https://dohliam.github.io/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:

* [Compare prices](https://github.com/dohliam/compare-prices)
* [Currency table](https://github.com/dohliam/currency-table)

## Credits

* [Milligram](https://github.com/milligram/milligram) CSS by @cjpatoilo, prototyped using [dropin-minimal-css](https://github.com/dohliam/dropin-minimal-css)
* [github-corners](https://github.com/tholman/github-corners) by @tholman

## License

MIT.