Prefix / Suffix
Wrap every line with a prefix and suffix.
How to use Prefix / Suffix
Free prefix and suffix tool: add the same text to the start and end of every line, perfect for wrapping items in tags or quotes.
Open Prefix / Suffix on toolpermarket and enter your values in the fields below.
Provide the value or text the tool asks for in the single input field. The field is labelled clearly so you always know what to enter.
Press Apply to compute the result. The output appears immediately below the form. You can change any input and run it again to compare results.
Read the result and use it as needed. If the number looks off, re-check your inputs and run it again — the math is deterministic, so the same entries always return the same answer.
Worked example. Prefixing each line with > turns a list into a quoted block.
Tips for accurate results.
Leave one box empty to only add a prefix or only a suffix.
A space inside the prefix keeps words from sticking together.
Use it to wrap lines in markers or brackets.
When to use Prefix / Suffix. Quoting a block of lines at once. Wrapping items in brackets or tags. Tagging rows before a search or filter.
When you actually reach for this
- You need to tag every line with the same prefix or suffix (e.g. a path, a quote mark).
- You are wrapping list items for code, markdown, or a config block.
Where this tool stops being accurate
- It adds the same string to every line, including blanks, so empty lines get decorated too unless you skip them.
- There is no per-line variation; for that you need numbering or a template tool.
- Trailing whitespace on the prefix can merge awkwardly with the line text.
Frequently asked questions
Does it change the line text?
Only by adding what you typed at the start or end; the original words in the middle are preserved.
Is my text uploaded?
Never. The change is made locally on your device and the text is not stored.
What if I only want a prefix?
Leave the suffix box empty and only the prefix is added to every line.
Why did blank lines get a prefix too?
The tool treats every line equally, so an empty line becomes "prefix" + nothing. Enable skip-blanks if you want empties left clean.
How do I add a quote to each line?
Set the prefix to " and suffix to " (with a space if you like). For a numbered list, use add-line-numbers instead.