What This Calculator Does
A 6 bit two's complement value stores signed integers from -32 to 31. This calculator converts any entered decimal into that pattern. It also explains sign bits, overflow, unsigned storage value, hexadecimal form, and the working steps. You can test one value or paste a list for batch conversion.
Why Six Bits Matter
Six bits are often used in lessons about computer arithmetic. They are small enough to inspect by hand. They still show the same rule used by larger signed systems. The leftmost bit is the sign bit. A zero means the stored number is not negative. A one means the stored number represents a negative value.
Conversion Logic
For values from 0 to 31, the calculator pads the normal binary number to six places. For negative values from -1 to -32, it adds 64 to the decimal. The result is the unsigned storage value. That value is then written as a six digit binary string. This method matches the invert and add one method, but it is faster for checking many values.
Range And Overflow
Strict mode rejects numbers outside the valid range. Wrap mode keeps the lowest six bits, like fixed width hardware arithmetic. Saturate mode clamps values to -32 or 31. These options help you compare classroom answers, digital logic results, and software behavior.
Practical Uses
Use this tool when studying signed binary, embedded systems, assembly language, data registers, or arithmetic overflow. It is also useful when checking examples for exams. The table output gives quick comparisons. The CSV export supports spreadsheets. The PDF export keeps a printable record of the conversion.
Reading The Result
The binary result always has six bits. The first bit is the sign bit. The remaining five bits complete the stored pattern. If the result begins with one, read it as negative by subtracting 64 from the unsigned storage value. For example, 111111 has unsigned value 63. Since 63 minus 64 equals -1, that pattern means -1.
For best accuracy, enter integers only. Use rounding only when source data contains measured values. Always note the selected overflow mode before sharing answers. Different modes can show different binaries for the same outside decimal input value during review work.