Skip to main content
>_devtools

Shell Argument Escaper

Quote text safely for Bash, sh, Zsh, PowerShell and cmd.exe so it reaches a program as exactly one argument.

Quotes text so a target shell passes it as one argument, with modes for POSIX shells, PowerShell, and cmd.exe. Choose a mode, enter text, and copy the quoted argument.

Example

Input
two words

POSIX output
'two words'

Limits and behavior

  • Input is limited to 500 KB.
  • Quoting one argument does not make an entire command safe to execute.