Work with signed and unsigned 64 bit values. Apply logic, shifts, masks, and rotations easily. Export clean reports and verify every result step clearly.
| Operation | Input A | Input B / Extra | Result |
|---|---|---|---|
| AND | 13 | 10 | 8 |
| OR | 13 | 10 | 15 |
| XOR | 13 | 10 | 7 |
| Left Shift | 5 | n = 2 | 20 |
| Set Bit | 8 | p = 0 | 9 |
AND: R = A & B
OR: R = A | B
XOR: R = A ^ B
NOT: R = ~A
Left Shift: R = (A << n) mod 2^64
Arithmetic Right Shift: R = A >> n
Unsigned Right Shift: R = floor(U / 2^n)
Rotate Left: R = ((U << n) | (U >> (64 - n))) mod 2^64
Rotate Right: R = ((U >> n) | (U << (64 - n))) mod 2^64
Set Bit: R = A | (1 << p)
Clear Bit: R = A & ~(1 << p)
Toggle Bit: R = A ^ (1 << p)
Test Bit: R = (A >> p) & 1
All answers are normalized to a fixed 64 bit width.
1. Enter the first value in decimal, binary, or hex form.
2. Choose the correct format for Input A.
3. Select the required bitwise operation.
4. Enter Input B when the chosen operation needs two values.
5. Enter a shift amount for shift or rotate actions.
6. Enter a bit position from 0 to 63 for bit control tasks.
7. Press Calculate to show the result above the form.
8. Review binary, hex, signed decimal, and unsigned decimal output.
9. Use the export buttons to save the current result as CSV or PDF.
A 64 bit bitwise calculator helps you evaluate low level math fast. It works with decimal, binary, and hexadecimal input. It also normalizes every value to a fixed 64 bit width. That makes masking, shifting, and rotation easier to trust.
Many systems store integers in 64 bit memory blocks. This width appears in compilers, operating systems, drivers, databases, and network tools. A fixed width changes the final answer. Overflow wraps. Sign bits matter. Leading zeros matter too.
Use AND to keep matching bits only. Use OR to merge enabled bits. Use XOR to compare differences between two values. Use NOT to invert every bit. Left shift moves bits toward the most significant side. Right shift moves them toward the least significant side.
This calculator also handles arithmetic right shift and logical right shift. That distinction matters when negative signed values appear. Arithmetic shift preserves the sign bit. Logical shift fills with zeros. You can also rotate left or rotate right without losing wrapped bits.
Single bit tools are useful during debugging. Set Bit forces one bit to one. Clear Bit forces it to zero. Toggle Bit flips its current state. Test Bit checks whether a chosen position is active. These actions are common in flags, permissions, registers, and compact status fields.
The same 64 bit pattern can represent two meanings. One view is unsigned. The other view is signed two's complement. This page shows both. That makes it easier to understand negative numbers, wraparound behavior, and boundary values.
You also get binary, hexadecimal, signed decimal, and unsigned decimal output together. That saves time during conversion. The export tools help you keep clean records for reports, homework, or development notes. The result area appears above the form, so you can review answers immediately after submission.
It is useful for classroom practice and real projects. You can inspect masks, compare values, and confirm exact bit positions. The example table below gives quick reference points. The formula section explains how each operation changes bits inside the 64 bit range.
It is a tool that performs bitwise logic on values limited to 64 bits. It supports binary, decimal, and hexadecimal input and shows the normalized result in multiple number formats.
The same 64 bit pattern can be read in two ways. Unsigned treats every bit as magnitude. Signed uses two's complement, so the highest bit becomes the sign bit.
Arithmetic right shift keeps the sign bit when moving bits right. This matters for negative signed values because it preserves signed behavior instead of filling with zeros.
Unsigned right shift always fills the left side with zeros. It treats the value like an unsigned pattern and is useful for masks, flags, and logical movement.
This is the common convention in low level programming and digital logic. Position 0 starts at the rightmost bit, then grows left toward bit 63.
Yes. The calculator accepts hex values with or without the 0x prefix. It also pads the value to a full 64 bit width before processing.
Standard shifts beyond the width clear the value or fill with the sign bit for arithmetic shift. Rotations wrap by using the amount modulo 64.
You can save a structured CSV file for data records or generate a PDF report for sharing, printing, homework notes, testing logs, or debugging documentation.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.