CalcHub

Base-N Converter

Enter a number in any base from 2 to 36 and see it instantly converted to decimal, binary, octal, hexadecimal, and base-36. Works with integers of any size.

Prefixes: 0x = hex, 0b = binary, 0o = octal. No prefix = decimal.

Learn More About Base-N Converter

What base conversion means

Different number systems represent the same value with different symbols and place values. Decimal uses base 10, binary uses base 2, octal uses base 8, and hexadecimal uses base 16.

This converter lets you move between those systems quickly, which is helpful in programming, networking, electronics, and computer science coursework.

Example binary and hexadecimal conversion

The decimal number 255 is written as 11111111 in binary and FF in hexadecimal. All three values represent the same quantity, just in different bases.

Seeing those formats side by side is useful when you are debugging code, reading memory values, or working with color codes and bit masks.

Why bases up to 36 are supported

Bases above 10 need extra symbols after 0 through 9, so letters are used to represent larger digits. Base 16 uses A through F, while base 36 extends that idea through Z.

Supporting up to base 36 covers the common technical use cases plus compact numbering schemes sometimes used in IDs, URLs, and encoding systems.

Related Calculators