Command Palette

Search for a command to run...

Number

Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal, and any base from 2 to 36.

Common Bases

What

Number Base Converter definition

A number base converter transforms values between different numeral systems (radixes).

Cases

Use Cases

1

Convert hex colors to decimal

2

Work with binary and octal in low-level programming

3

Explore non-standard bases for cryptography

How To

How to Convert Number Bases

A step-by-step guide to switching between different numeral systems.

1

Enter number

Type the value you want to convert and specify its current base.

2

Observe results

See the live conversion across common bases (Bin, Oct, Dec, Hex).

3

Custom base

Optionally specify a custom target base between 2 and 36.

Knowledge

Understanding Numeral Systems

Decimal System (Base 10)
The most widely used system globally, using digits 0-9. It's based on human fingers and is the standard for most math and commerce.
Binary System (Base 2)
The fundamental language of computers, using only 0 and 1. It represents the off/on states of transistors.
Hexadecimal System (Base 16)
Uses 0-9 and A-F. Widely used in computing to represent binary data concisely. One byte is represented by exactly two hex digits.
Octal System (Base 8)
Uses digits 0-7. Historically popular in early computing and still used in Unix file permissions.
Positional Notation
The value of a digit depends on its position. Each position represents a power of the base (e.g., in decimal: units, tens, hundreds).

FAQ

Number base converter FAQ

What is a number base (radix)?
The base or radix is the number of unique digits used to represent numbers. Decimal is base 10, binary is base 2.
Why use hexadecimal in programming?
Hex is more compact than binary; 1 hex digit represents exactly 4 bits, making it easier to read memory addresses and color codes.
How high can the base go?
This tool supports bases from 2 up to 36, using digits 0-9 and then letters A-Z.
Does it support negative numbers?
Yes, standard negative signs are preserved during conversion.
Can it handle floating point numbers?
This version is optimized for integers; fractional parts may be ignored depending on the base.
Number Base Converter