Number Base Converter

Configuration
Binary Grouping
Hex Letter Case
UppercaseLowercase
Show Base Prefixes (0b, 0o, 0x)
Quick Conversion Guide
BinaryBase 2 (digits: 0, 1)
OctalBase 8 (digits: 0-7)
DecimalBase 10 (digits: 0-9)
HexadecimalBase 16 (digits: 0-9, A-F)
Common Questions & Expert Concepts

Frequently Asked Questions: Number Base Converter

A radix (or base) represents the number of unique digits that a number system uses to represent value. For example, decimal has a radix of 10, while binary has a radix of 2.
The Hexadecimal system serves as a compressed version of binary code. As the number sixteen is a power of two, a hex digit represents four binary digits, allowing for easier comprehension of memory locations and instructions.
Unix systems assign file permissions using three octal digits to represent owner, group, and public access levels. Each octal digit converts to three bits, representing read (4), write (2), and execute (1) permissions.
Yes, we have created this tool with native Big Int integers rather than using regular double precision floating point numbers. In this way, you can convert numbers of any length without encountering rounding issues.
Standard JavaScript calculations utilize 64-bit floating-point numbers (IEEE 754), which cap safe integer representation at 9,007,199,254,740,991. Any value beyond this limit loses lower-bit precision.
Take the decimal number and divide it by 2. Write down the remainder (it can be 0 or 1). Again divide this quotient by 2 and record the new remainder. Repeat the procedure until the quotient becomes 0.
Convert each octal digit into its three-bit binary equivalent. For example, to convert chmod permission 755, map 7 to 111, 5 to 101, and the final 5 to 101, resulting in the full binary string 111101101.
Each of the octets of the subnet mask must be converted individually. In order to convert a typical subnet mask such as 255.255.255.0, 255 should be converted into 11111111, while 0
Hexadecimal numbers are prefixed by 0x to help the compiler recognize that they are actually numbers and not variables. The first zero serves to notify the compiler that the number is numeric, while the letter “x” denotes base 16.
A 32-bit unsigned integer represents a maximum decimal value of 4,294,967,295. Converting this value to base 16 yields FFFFFFFF, which requires exactly eight hexadecimal digits.

Disclaimer

Real-time conversions are made available through the Number Base Converter using standard mathematical functions. Although conversions using BigInt operations give high accuracy, it is advisable to check results especially when dealing with embedded hardware or compilers.