Prefix / Suffix Adder
Enter the text you want added to the start of each line (prefix) and/or the end of each line (suffix), then paste your multi-line content. The tool applies both to every non-empty line instantly and lets you copy the result in one click. Blank lines are skipped to keep output clean.
Related Tools
[3 suggestions]Remove Duplicate Lines
Strip repeated lines from any block of text while preserving initial ordering.
Line & ListsSort Lines
Sort lines alphabetically (A-Z or Z-A) or by character length with one click.
Line & ListsLine Numbering Tool
Add sequential numbering or customizable prefixes to each line of text.
Line & ListsAbout the Prefix / Suffix Adder
The Prefix / Suffix Adder splits your input on newline boundaries and applies string concatenation to every line that contains at least one non-whitespace character: prefix + line + suffix. Blank or whitespace-only lines pass through unmodified to preserve paragraph structure. This is a surprisingly versatile operation in developer and content workflows. For example: wrap each line in double quotes to prepare a JavaScript string array (prefix '"', suffix '"'); wrap SQL values (prefix '(', suffix '),'); add a Markdown list marker to every line (prefix '- '); add an HTML tag around each line (prefix '<li>', suffix '</li>'); prepend a domain to a list of paths (prefix 'https://example.com'); or add a trailing comma to each line in a JSON array. Because both prefix and suffix are free-form text fields, the tool handles any delimiter or wrapper without needing a special mode for each case.
Are blank lines affected?▾
No — blank lines and whitespace-only lines are skipped entirely. The prefix and suffix are only added to lines that contain at least one visible character, keeping your output clean.
Can I use this to build a SQL INSERT values list?▾
Yes — set the prefix to "('" and the suffix to "')," to wrap each line as a SQL string value ready for an INSERT ... VALUES (...) statement.
Does it support special characters in the prefix or suffix?▾
Yes — the prefix and suffix are treated as plain text strings, so you can include any characters: quotes, brackets, HTML tags, Unicode symbols, or whitespace.