Math & measurement · CNV-01Submit an issue

Number base converter

Convert integers between binary, octal, decimal and hexadecimal.

BIN / OCT / DEC / HEX
Source unit
Target unit
Input
Output
Usage guide and examples

Set the input and check the result

Choose source and target bases and enter an integer to convert between binary, octal, decimal and hexadecimal. Decimal 255 becomes FF. Negative signs, underscores and matching 0b/0o/0x prefixes are accepted; leading zeros are removed.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

255
10 → 16

What to check in the result

FF