> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/ladybug-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/ladybug-primer/components/4_extra/unit_converter.md).

# Unit Converter

![](/files/-Mihilz07av_pov5Msz_)

![](/files/-Mihilz2MIYZo-uwl-er) - [\[source code\]](https://github.com/ladybug-tools/ladybug-grasshopper/blob/master/ladybug_grasshopper/src//LB%20Unit%20Converter.py)

Convert a value or list of values from one unit to another.

### Inputs

* **values \[Required]**

Values to be converted from one unit type to another.

* **from\_u \[Required]**

Text indicating the units of the input \_values (eg. 'C')

* **to\_u \[Required]**

Text indicating the units of the output values (eg. 'K')

### Outputs

* **all\_u**

A text string indicating all possible units that can be plugged into \_from\_u and \_to\_u.

* **values**

The converted numerical values.
