Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal. Shows a step-by-step explanation of the conversion math so you can learn the process.
0b111111110o3772550xFFHow to Use the Number Base Converter
Enter a number, select its base (binary, octal, decimal, or hexadecimal), and see the equivalent value in all four bases instantly. The step-by-step explanation below shows the positional arithmetic behind the conversion so you can learn the process and verify the math.
What Are Number Bases?
A number base (or radix) determines how many unique digits a number system uses. Decimal (base 10) uses digits 0-9. Binary (base 2) uses only 0 and 1 — it is the foundation of all computer processing. Octal (base 8) uses digits 0-7 and appears in Unix file permissions. Hexadecimal (base 16) uses 0-9 and A-F and is common in memory addresses, color codes, and low-level programming. Converting between these bases is a fundamental skill in computer science.
Common Use Cases
Convert hex memory addresses to decimal for debugging. Translate binary network masks to decimal notation. Understand Unix file permissions in octal with our chmod calculator. Convert hexadecimal color values to their decimal RGB equivalents. Study positional number systems for computer science courses. Verify data integrity with our hash generator. The tool uses JavaScript BigInt, so it handles arbitrarily large numbers without overflow.