Convert between binary, octal, decimal, and hex
This base converter helps you quickly translate numbers between commonly used bases: binary (2), octal (8),
decimal (10), and hexadecimal (16). Enter a value, choose its base, and see all equivalent representations.
It is useful when working with low-level programming, bitwise operations, color values, and debugging data formats.
Everything runs in your browser with no server-side processing.
FAQ
What bases are supported?
The converter supports base 2, 8, 10, and 16 — covering binary, octal, decimal, and hexadecimal.
What happens if I enter an invalid number for the selected base?
The tool will show an error message, for example if you use letters in a non-hex base or digits that are too large for that base.
Can I use this for negative numbers?
Basic support for negative integers is possible, but extremely large or fractional numbers may not be handled correctly due to JavaScript limitations.