Number Base Converter

Convert integers between bases 2 and 36 (binary, octal, decimal, hexadecimal).

Note

This tool converts integers. Fractions are not supported.

ℹ️

About this Number Base Converter

Convert numbers between different bases (radixes) from 2 to 36. Our number base converter supports binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), and any base up to 36. Essential for programmers, computer science students, and anyone working with low-level data. Convert binary to decimal, hex to decimal, decimal to hex, and more—all in your browser with instant results.

Key Features

Convert between bases 2 (binary) through 36

Support for binary, octal, decimal, hexadecimal

Instant conversion as you type

Handles large numbers

Clear error messages for invalid input

Copy result to clipboard

Works entirely in your browser

No signup or installation required

📖

How to Use

1

Enter a number in the source base (e.g. decimal or hex)

2

Select the source base (2–36)

3

Select the target base

4

View the converted result instantly

5

Use copy to clipboard if needed

6

Switch bases to convert in any direction

💡

Popular Use Cases

1

Convert binary to decimal for readability

2

Convert hex to decimal for debugging

3

Convert decimal to hex for programming

4

Convert between octal and other bases

5

Teach or learn number systems

6

Debug low-level and embedded systems

7

Work with color hex codes and RGB

8

Convert IP addresses or bit masks

💡

Tips & Best Practices

Hexadecimal uses 0–9 and A–F (e.g. FF = 255)

Binary uses only 0 and 1

Leading zeros are often allowed (e.g. 0x1A for hex)

For programming, hex (base 16) and binary (base 2) are most common

Base 36 uses 0–9 and A–Z

Frequently Asked Questions

Q

What is a number base (radix)?

The base is how many distinct digits are used. Decimal is base 10 (0–9), binary is base 2 (0–1), hexadecimal is base 16 (0–9, A–F).

Q

Why use hexadecimal?

Hex is compact and maps neatly to binary (each hex digit = 4 bits). It's used in programming, colors (e.g. #FF0000), and memory addresses.

Q

What is the maximum base supported?

The tool supports bases 2 through 36. Base 36 uses digits 0–9 and letters A–Z.

Q

Can I convert fractional numbers?

This tool converts integers only. For fractional values, you would need to handle integer and fractional parts separately.