Add prefix and suffix to lines
Type a prefix and a suffix and they are added to every line of your list, with an option to skip blank lines.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter text, prefix, suffix and skip empty lines.
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
For each line: result = prefix + line + suffix. The prefix and suffix are used exactly as typed, spaces included.
Example
Inputs: Prefix = ", Suffix = ",, Skip empty lines = yes. Result: Result: "Riyadh", "Jeddah", "Dammam",; Lines changed: 3.
Riyadh Jeddah Dammam
"Riyadh", "Jeddah", "Dammam",
Limits and caveats
- In Arabic text the prefix shows on the right, since the line reads right to left.
- The result uses one standard line break between lines.
Questions about this tool
How do I wrap each line in quotes?
Put " as the prefix and ", as the suffix, and each line becomes a value ready to paste into code or a query.
Are spaces in the prefix kept?
Yes. If you type "- " with a space after the hyphen, the space is added too.
Can I add only a suffix?
Yes. Leave the prefix empty and type just the suffix.
