Prefix & Suffix Adder
Add a prefix, a suffix or both to every line, word or comma-separated item in your text.
0 lines updated
More options
How it works
Paste your text, type a prefix, a suffix, or both, and every line is wrapped instantly โ no
Compare or Convert button to press. Switch "Add to" from each line to each word or each
comma-separated item when you need to quote a list, build an SQL IN (โฆ) clause or
turn plain lines into <li> tags. Under "More options", "Leave empty lines alone"
keeps empty rows empty instead of producing lonely prefixes, and "Remove spaces at the start
and end of each line first" cleans up ragged indentation before the prefix and suffix are
attached. The quick picks fill both fields for the four most common jobs: double quotes, SQL
values, Markdown bullets and HTML list items.
Everything runs in your browser with plain JavaScript โ your text is never uploaded to a server, so it is safe for logs, code, URLs, email lists and anything confidential. Use Copy result for the clipboard or Download .txt to save the output as a file.
Frequently asked questions
How do I add a prefix to every line of text?
Paste your text into the box and type what you want in front of each line into the Prefix field, and the result appears instantly below, no button to press. Then copy it to your clipboard or download it as a .txt file.
How do I put quotes around each line?
Click the Double quotes preset: it fills both the prefix and the suffix with a quotation mark, so every line becomes "line". Use the SQL list preset instead to get 'value', entries you can paste straight into an IN (...) clause.
Can I add text to the beginning and end of each line at the same time?
Yes. Fill in both the Prefix and Suffix fields and each line is wrapped in a single pass. With the Add to selector you can apply the same wrapping to every word or every comma-separated item instead of every line, and blank lines are skipped by default.