---
name: "bitmath"
section: "1"
platform: "linux"
package: "bitmath"
version: "1.3.3.1-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bitmath"
---

# bitmath(1)

command line utility for converting between prefix units

## NAME

bitmath - command line utility for converting between prefix units

## SYNOPSIS

bitmath \[--from-stdin\] \[-f IN\_UNIT\] \[-t OUT\_UNIT\] SIZE ...

## DESCRIPTION

Run it, give a number as the last parameter. Say what units you’re giving/wanting, or not.

## OPTIONS

- **--from-stdin**

  Reads number from stdin rather than the cli.

- **-f** *UNIT*, **--from** *UNIT*

  The unit you are converting from. Default is **Byte**.

**-t** *UNIT,* **--to** *'UNIT*

The unit you are converting to. The default is **auto-selected** for best human-readability.

## AUTHOR

Tim Bielawa \<timbielawa@gmail.com\>

For a complete list of contributors, please visit the GitHub charts page.

## COPYRIGHT

Copyright © 2014-2016, Tim Bielawa.

bitmath is released under the terms of the "MIT" License.

## SEE ALSO

[**units**(7)](/units/7.md)

**The bitmath GitHub Project** — https://github.com/tbielawa/bitmath

**The bitmath Documentation** — https://bitmath.readthedocs.org
