Encode a string as base64.
Section: Strings and Formatting
Base64-encode string
bash
bash
echo 'hello world' | jq -sRr @base64Explanation
Useful for quick payload generation in scripts.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Strings and Formatting