Number Base Converter
Convert numbers between binary, octal, decimal, and hexadecimal.
About Number Systems
Number systems are the foundation of digital computing. Binary (base 2) is the language of computers, using only 0s and 1s. Octal (base 8) groups three binary digits for compact representation. Decimal (base 10) is the standard human counting system. Hexadecimal (base 16) is widely used in programming and web development for colors, memory addresses, and data encoding. This tool converts between all four bases instantly, with a visual binary representation to help you understand the underlying bit patterns. All processing is done entirely in your browser.
Related Tools
Frequently Asked Questions
What is a number base?▾
A number base (or radix) is the number of unique digits used in a positional numeral system. Common bases include binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).
Why is hexadecimal used in programming?▾
Hexadecimal is popular in programming because each hex digit maps exactly to 4 binary bits, making it a compact way to represent binary data. For example, the byte 11111111 in binary is simply FF in hex.
What is the maximum value this tool can convert?▾
This tool safely converts values up to 2^53 - 1 (9,007,199,254,740,991), which is JavaScript's maximum safe integer. The bit visualization supports 8-bit, 16-bit, and 32-bit display modes.