Frontend: Encode/Decode, move algorithm to top

Copying google translates layout here. Select the
input data on the top.