Bit shift left

Shifts the bits in each byte towards the left by the specified amount.

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
00 02
Amount
1
An unsigned RGB channel

Input

40754d147de57db8fe80ee4b.bin

3 bytes

Download

Expected answer

Hexadecimal bytes
fc fc 00
Amount
2
A four-bit nibble

Input

59cee1525d826e6337dd015e.bin

2 bytes

Download

Expected answer

Hexadecimal bytes
f0 00
Amount
4
One-bit flags

Input

4e225601a48925147f919ace.bin

4 bytes

Download

Expected answer

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

Input

517391d5972c2de2db58edb1.bin

2 bytes

Download

Expected answer

Hexadecimal bytes
f8 00
Amount
3

Format reference: Bit shift left background and specification

Parameters

ParameterDefault valueInput and choices
Amount1Minimum: 0. Maximum: 7. Integer

Related tools

Browse arithmetic / logic tools