Encode a string for use inside URLs or query parameters.
Section: Strings and Formatting
URL-encode a string
bash
bash
echo 'hello world@example.com' | jq -sRr @uriExplanation
`-sRr` slurps raw text and returns an encoded plain string.
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