Number Base Converter

Convert between Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16). Edit any field and the rest update instantly.

Understanding Number Bases — Binary, Octal, Decimal, and Hexadecimal Explained

Number bases (also called radixes) are different ways to represent the same numerical value using different sets of digits. Understanding base conversion is fundamental to computer science, networking, and low-level programming.

The Four Most Common Number Bases in Computing

Quick Reference Table

Where You'll Use Base Conversion

Frequently Asked Questions

Enter a number in any field (binary, octal, decimal, or hexadecimal) and the tool instantly converts it to all other bases using JavaScript's built-in parseInt() and toString() functions. All conversions happen in your browser.
Binary (base-2) uses digits 0-1 and is the native language of computers. Octal (base-8) uses digits 0-7 and is used in Unix file permissions. Decimal (base-10) uses digits 0-9 and is the standard human number system. Hexadecimal (base-16) uses 0-9 and A-F and is widely used for colors, memory addresses, and byte representation.
Developers convert between bases for tasks like reading memory addresses (hex), setting Unix file permissions (octal), debugging bitwise operations (binary), working with CSS/HTML colors (#FF5733 is hex), analyzing network packets, and understanding low-level data representation in computing.
The implementation uses JavaScript Number and parseInt. Exact integer representation is guaranteed only through 9,007,199,254,740,991; larger inputs can lose precision. Negative inputs are ignored, fractions are not supported, and parseInt can accept a valid numeric prefix while ignoring trailing characters.
Number conversion runs locally. Optional browser drafts and normal website requests are separate from the calculation; local computation is not a confidentiality guarantee.