๐ข Base Converter
Convert between binary, octal, decimal, and hexadecimal in real time. Set a bit width (8/16/32/64-bit) to check the two's-complement bit representation and catch out-of-range values โ handy for programming and embedded development. Type a value into any field and the others update instantly, so there's no need to reach for a separate calculator or work it out by hand.
How to use
- Type a value into any one field โ binary, octal, decimal, or hexadecimal.
- The other fields update automatically in real time.
- Optionally choose a bit width (8/16/32/64-bit) to see the two's-complement bit representation.
- Press Clear to reset the inputs and convert a new value.
FAQ
Can it handle negative numbers?
Values within the selected bit width are treated as two's complement; anything outside that range is flagged as out-of-range.
When would I use this?
Checking bitwise operations while programming, converting hex color codes or IP address octets, or inspecting register values in embedded development.
Can I convert an IP address to hex?
Yes โ enter the decimal value and the hex field updates instantly, which works well for converting IP octets or color codes.
Can it convert decimal numbers?
This tool is built for integer base conversion; values with a fractional part may not convert correctly.
Which bit widths are supported?
8-bit, 16-bit, 32-bit, and 64-bit. Values exceeding the selected width are flagged as out-of-range.