Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal instantly. Free online number base converter for programmers and students.

Binary, octal, decimal & hex converter

Convert integers between the four bases programmers use most. Decimal is the everyday base 10; binary (base 2) is how computers store data; hexadecimal (base 16) compactly represents bytes and colors; octal (base 8) appears in file permissions. Edit any field to convert the rest.

Frequently asked questions

Which bases can I convert between?

Binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). Type in any field and the others convert instantly.

Does it handle very large numbers?

Yes. Conversions use BigInt, so large integers convert exactly without floating-point rounding errors.

Are negative numbers supported?

Yes, prefix the value with a minus sign. Fractional values are not supported — this converts whole integers.