Paste any string → copy a single-quoted literal safe for your shell.
Paste a quoted Bash/sh literal → get the plain text back (best-effort).
Bash: wrap segments in '…' and escape embedded apostrophes as '\''. Not identical to GNU printf %q for every exotic byte.
PowerShell: wrap in '…' and double embedded apostrophes as ''. Variables like $USER stay literal inside single quotes.
Bash/sh: paste a single-quoted literal like 'It'\''s $USER'\''s' or a double-quoted string. Variables and command substitution are not expanded — you get the literal bytes.
PowerShell unescape is not supported on this page — use the Bash tab for sh-style quoting, or paste plain text directly.
Bash: single quotes cannot span raw newlines inside one quoted token — wrap with $'…' or use a heredoc for multiline payloads.
ANSI-C: for odd control bytes, Bash allows $'line\n'; zsh/fish differ — not covered in this v1 page.
cmd.exe uses different quoting (^ escapes, " rules) — this page covers PowerShell only.
Heredocs, printf %q, and $'…' ANSI-C literals are not supported — paste the quoted token only.
Snippet normalizes pasted CRLF to LF. Ensure the pasted body cannot include a solitary line identical to your delimiter terminator — Bash would end early.
PowerShell single-quoted here-strings are literal. The closing '@ must start at the beginning of a line with no spaces before it.