I’m trying to execute base64 --decode on a piece of text selected in Visual mode, but it is the entire line that seems to be passed to the base64 comma
base64 --decode
base64
You can use Python instead, which should work.
Select lines that you want to decode in Visual mode (via V), then execute the following command:
:'<,'>!python -m base64 -d