Intspector is a command line utility for converting integers between bases. It accepts an integer in binary, octal, decimal, or hex form, then prints it out in all four bases.
intspector --help to view the command line help.
Usage: intspector [FLAGS] [OPTIONS] [ARGUMENTS] Integer conversion utility. Accepts integer input in [b]inary, [o]ctal, [d]ecimal, or he[x]adecimal base, then displays the number in all four bases. Use a single letter prefix to declare the base of the input, e.g. b1010. The base defaults to decimal if no prefix is specified. This utility: - Accepts integer literals with a leading zero, e.g. 0x123. - Accepts multiple arguments. - Accepts input in the signed 64-bit integer range. - Displays the two's complement value for negative integers. Arguments: [integers] List of integers to convert. Options: -b, --bits <n> Number of binary digits to display. Flags: -h, --help Print this help text. -v, --version Print the application's version number. Commands: c2u, char2unicode Convert character literals to code points. u2c, unicode2char Convert code points to character literals. Command Help: help <command> Print the specified command's help text.
Intspector is written in Rust — if you have a Rust compiler available you can install directly from the package index using
$ cargo install intspector
You can find the source files on Github.