Number Base Converter

Convert whole numbers between binary, octal, decimal, and hexadecimal.

Large integers are supported. A leading minus sign is allowed.

Enter a number to see its value in each base.

Convert whole numbers between bases

A number base determines how many symbols represent each digit position. Binary uses two symbols, decimal uses ten, and hexadecimal uses sixteen.

The converter handles signed whole numbers with arbitrary precision. Prefixes such as 0b, 0o, and 0x are accepted when they match the selected input base.

When to use it

Read bitmasks, inspect hexadecimal values, or convert integers while debugging code.