698 tools
All

Numeral Base

Convert a decimal like 255 into hex FF, or between binary, octal, decimal, and hex.

Result

About this calculator

Use this for colour codes, bit masks, and homework that hops between binary, octal, decimal, and hexadecimal. Type the digits, pick the base they are written in, then pick the base you want printed.

The text is parsed in the From base and printed in the To base (hex in uppercase). Spaces are ignored. This is a non-negative integer conversion, not floating point or two’s complement.

Digits: The digits in the From base, e.g. 255, FF, or 11111111.

From: The base those digits are written in.

To: The base you want printed.

Result: The same integer in the To base.