← All Tools

Shell Argument Escaper

Turn raw arguments into properly quoted command lines for every common shell — without worrying about spaces, quotes, or special characters.

Arguments

Enter one argument per line. Empty lines are skipped. Special characters like spaces, quotes, dollar signs, and backticks will be escaped automatically.

Quoting Rules Cheat Sheet

Shell Strategy
POSIX sh / BashSingle quotes; embedded ' becomes '\''.
Bash $'…'ANSI-C quoting — escapes control chars and Unicode.
PowerShellSingle quotes; embedded ' becomes ''.
Windows cmd.exeDouble quotes with ^ escaping for & | < > ^ %.
JSON arrayFor Dockerfile / GitHub Actions exec form.
Copied!