Integer Toy

Click on a cell below to toggle bit values, or edit the hex or decimal values directly. Use this to build intuition for the two's complement integers. Based on Evan Wallace's excellent Float Toy.

8-bit (byte)

  =  0x
  =  

16-bit (short)

  =  0x
  =  

32-bit (long)

  =  0x
  =  

64-bit (long long)

  =  0x
  =