Bitshifting Visualizer

Enter a number from 0 to 65535. The page splits it into two bytes, then uses the JavaScript bitshift formula to rebuild the original number.

1. Original number

2. Split into bytes

Byte 0 (high byte)
Byte 1 (low byte)

3. Bitshift step

waarde = ((input.bytes[0] << 8) + input.bytes[1]);

<< 8 means: move the bits 8 places to the left. That is the same as multiplying by 256.

4. JavaScript example