BroHelp.me

Append Text To Lines

Add text to the beginning and the end of all lines.







How This Converter Works

Adds the selected prefix and suffix to every segment obtained by splitting input on LF. A newline is appended after every output segment, including the last; CR characters from CRLF input remain part of the segment.

Formula or rule

For each line in input.split(\"\n\"), append prefix + line + suffix + LF.

Example

Input
Input: red; prefix: [; suffix: ]
Calculation
Wrap the single line, then append the required final LF.
Result
[red]
© BroHelp.me 2026 - 2026 is provided without warranty of any kind.