Skip to content
QKQuickKit日本語
WindowsLOCALRuns in your browserInput may contain sensitive information

CMD / PowerShell Line Continuation Converter

Convert explicit line-continuation characters between Command Prompt (^) and PowerShell (backtick) without rewriting command syntax, variables, or quoting. The conversion itself keeps line breaks as they are.

This tool handles input and primary processing in your browser and is designed not to send the input to QuickKit’s server.

Avoid live production secrets; use dummy or masked data where possible. Data handling details

Auto-detected input:—

Result

How it works

Only a physical line whose last character is a single ^ (Cmd) or backtick (PowerShell) is converted, and only where the tool is sure it is a continuation: not after whitespace (about_Parsing: an extra space after the backtick breaks the continuation), not in a run of repeated escape characters, not on the last line or before a blank line, not inside a comment (REM, ::, #, <# #>), a quoted string, a here-string, or after the PowerShell stop-parsing token --%, and not where neither side of the line break has whitespace. A PowerShell backtick must follow an unescaped space or tab; one attached to the preceding token is part of that token. A # inside a command argument (KEY=#value, 2#x after a command name) is literal, while a # after an expression (2# …, $true# …) starts a comment; where the tool cannot tell which, it treats the # as a comment and skips the line.

A Cmd caret continuation can also escape the first character of the next line, so for Cmd a line is converted only when the caret follows an unescaped space or tab, the next line starts with a space, a tab, or a plain character (letters, digits, and - . / \ _ : + # $ * ? @ [ ] { } ~ '), and the break is not right after a redirection, a command separator, or inside an IF or FOR command.

The converted text is also read back in the target shell; a line that would not be a continuation there is left unchanged. Every skipped line is listed with its line number. ^ and backtick in the middle of a line are escape characters and are never touched. PowerShell's implicit continuation after |, operators, commas, and opening brackets is not converted.

"Join into one line" removes only each accepted continuation character and the line break right after it; the next line's indentation is kept. Line endings (CRLF / LF) are preserved by the conversion itself, but a browser text box normally reports its content with LF line breaks.