Rotate left

Rotates each byte to the left by the number of bits specified, optionally carrying the excess bits over to the next byte. Currently only supports 8-bit values.

Input: Text (UTF-8) or original file bytesResult: Binary bytes

Text input

Tool options

Examples

The high bit of a byte

Input

4f2e968b543c835e6648ddcc.bin

2 bytes

Download

Expected answer

Hexadecimal bytes
01 02
Amount
1
Carry through
Off
An unsigned RGB channel

Input

40754d147de57db8fe80ee4b.bin

3 bytes

Download

Expected answer

Hexadecimal bytes
ff fd 00
Amount
2
Carry through
Off
A four-bit nibble

Input

59cee1525d826e6337dd015e.bin

2 bytes

Download

Expected answer

Hexadecimal bytes
f0 0f
Amount
4
Carry through
Off
One-bit flags

Input

4e225601a48925147f919ace.bin

4 bytes

Download

Expected answer

Hexadecimal bytes
02 04 08 10
Amount
1
Carry through
Off
The sign-bit boundary

Input

517391d5972c2de2db58edb1.bin

2 bytes

Download

Expected answer

Hexadecimal bytes
fb 04
Amount
3
Carry through
Off
carry

Input

6ca13d52ca70c883e0f0bb10.bin

6 bytes

Download

Expected answer

Hexadecimal bytes
85 89 8c c4 c8 cd
Amount
2
Carry through
On
normal

Input

6ca13d52ca70c883e0f0bb10.bin

6 bytes

Download

Expected answer

Hexadecimal bytes
c2 c4 c6 62 64 66
Amount
1
Carry through
Off
nothing

Input

e3b0c44298fc1c149afbf4c8.bin

0 bytes

Download

Expected answer

Empty result
Amount
1
Carry through
Off

Format reference: Rotate left background and specification

Parameters

ParameterDefault valueInput and choices
Amount1Number
Carry throughfalseOn or off

Related tools

Browse arithmetic / logic tools