By entering a base number and two values, you can perform bit operations (AND / OR / XOR / NOT / Left Shift / Right Shift).
|
|
|
| Formula | |
|---|---|
| Binary (2) | |
| Octal (8) | |
| Decimal (10) | |
| Hexadecimal (16) | |
| Value A: | |
|---|---|
| Value B: | |
| Result: |
This tool allows you to enter two values in any base and simultaneously check the results of the bit operation in "binary, octal, decimal, hexadecimal, or the selected base."
A comparison of the bit strings is also displayed, making it easy to see how each bit of the operation changes.
Select the base and enter two values (Value A, Value B).
You can select the base by clicking the button or by selecting it from the list.
When you select a bitwise operation type (AND / OR / XOR / NOT / Left Shift / Right Shift), the calculation result will be displayed in the selected base, binary, or decimal.
The bit width for bit operations can be specified as "Not specified" or the number of digits: 8-bit, 16-bit, 24-bit, 32-bit, or 64-bit.
If not specified, AND/OR/XOR will be adjusted to the longer bit width of A or B, Left Shift will be adjusted to the bit width after shifting, and Right Shift will be adjusted to the bit width before shifting.
The bit width must be specified for the NOT operation.
If a bit width is specified and the calculation result exceeds the specified bit width, a warning will be displayed.
The calculation results are displayed in binary and compared by bit, and are displayed in groups of four digits from the right for easy viewing.
The results of bitwise operations are displayed in different colors for easy understanding.
AND/OR/XOR are displayed in three rows (bit string A/bit string B/result), while NOT is displayed in two rows (bit string A/result).
In Left Shift and Right Shift, moved bits are displayed with a gray "・" to make it easier to see that the bits have been moved.
Once you perform the conversion, a link to the conversion result will be displayed in the "Link for conversion results" column.
By accessing the URL of this link, the same content as the input Convert from value and the conversion result will be displayed.
You can share the converted content with others by sending this link URL via social media or email.