Tools/calc/base_convert

calc/base_convert

Convert a number between bases (2 to 36), e.g. binary, hex, decimal.

Free / no pricing configured

What it does

Converts a number from one base to another (any base from 2 to 36) and also reports its decimal value.

Primary use cases

  • Binary, octal, hexadecimal, and decimal conversions.
  • Reading or producing values in non-decimal bases.

Good to know

value uses digits valid for from_base (letters a-z for bases above 10, case-insensitive). from_base defaults to 10. Negative values are supported. Computed locally.

Parameters

valueinteger,stringrequired

The number to convert, using digits valid for from_base (e.g. "FF", "1010", "255").

to_baseintegerrequired

Base to convert to (2-36).

from_baseintegeroptional

Base of the input. Defaults to 10.

calc/base_convert — Faro