Wrap every line with your own prefix and suffix — quotes, bullets, HTML tags, anything. Free, no signup.
What is the Add Prefix & Suffix to Lines?
Add prefix and suffix to lines wraps every line of your text with custom strings you define — a prefix added before each line and a suffix added after it. Turn a plain list into quoted CSV values (‘apple’, ‘banana’), bullet points, HTML list items, or code array elements in a single operation.
This free add prefix suffix to each line tool accepts any prefix and suffix: text, punctuation, quotes, HTML tags like <li>…</li>, or code syntax like double quotes and commas. The transformation is live — type your affixes and watch every line update instantly.
Developers formatting data for code, writers building HTML lists from plain text, and analysts quoting values for SQL or spreadsheets use it constantly. Everything runs locally in your browser — no signup, no uploads, no limits.
A few combinations cover most real jobs. Single quotes around each line plus nothing else prepares values for SQL IN clauses; double quotes with a trailing comma build JavaScript or Python array literals; li tags produce HTML list items ready to drop into a page; a ‘- ‘ prefix makes markdown bullets. Because the transformation is live, you can experiment freely — type an affix, see every line update, adjust until the output pastes perfectly into its destination.
How to use the Add Prefix & Suffix to Lines
- Paste your multi-line list into the input box.
- Type your prefix (added before each line) and suffix (added after each line).
- Watch the output update live as you type the affixes.
- Try combinations: quotes for CSV, <li> tags for HTML, or ‘- ‘ for markdown bullets.
- Copy the wrapped lines or download them as a .txt file.
Add Prefix & Suffix to Lines use cases
Building quoted CSV values
A column of names becomes ‘Alice’, ‘Bob’, ‘Charlie’ — paste-ready for SQL IN clauses, spreadsheet formulas, and config files. The result pastes directly into SQL clauses and spreadsheet formulas. It beats manual wrapping by a mile.
Generating HTML lists
Prefix ‘<li>’ and suffix ‘</li>’ turn a plain list into HTML list items instantly, ready to drop between <ul> tags. Drop the wrapped items straight between your ul tags. Both fields are optional, so one-sided wrapping works.
Formatting code arrays
Wrapping lines in quotes with trailing commas converts a pasted list into a valid JavaScript, Python, or JSON array skeleton. Pasted lists become valid array skeletons in seconds. The output updates live as you type.
Creating markdown bullets
A ‘- ‘ prefix turns any plain list into proper markdown bullets for READMEs, docs, and notes. READMEs, docs, and notes get properly formatted markdown bullets instantly. It beats manual wrapping by a mile.
Quoting values for SQL queries
A column of IDs pasted from a spreadsheet becomes ‘101’, ‘102’, ‘103’ with quote affixes — ready to drop into a SQL IN clause or a spreadsheet TEXTJOIN formula without manual quoting. It beats quoting hundreds of values by hand.
Tips
- Leave prefix or suffix empty to add only one side — both fields are optional.
- HTML in affixes is inserted as literal text, so ‘<li>’ appears as characters you can paste into code.
- Empty lines get the affixes too; remove blank lines first if you want them skipped.
- For numbering instead of fixed text, use the Add Line Numbers tool.
- Combine with Add Line Numbers first when you need numbered, wrapped items.