Add Prefix and Suffix to Lines

Add a prefix, suffix or quotes to every line of text. Build SQL IN lists, HTML list items, Markdown bullets and numbered lines with {n} counters in seconds.

  • Free, no sign-up
  • Runs in your browser
  • Your data stays private

How to use the Add Prefix and Suffix to Lines

  1. Paste one item per line.
  2. Type a prefix and suffix, pick a wrapper such as quotes, or click a quick preset like "SQL IN list".
  3. Copy the result. Use {n} or {n:3} for a line counter.

Why use this Add Prefix and Suffix to Lines

  • Quick presetsOne click for SQL lists, HTML li tags, Markdown bullets, numbering and quoted CSV values.
  • Line countersInsert {n} or zero-padded {n:3} to number lines inside your prefix or suffix.
  • Apply to some linesLimit changes to odd lines, even lines, the first line or the last line.
  • Clean last lineSkip the suffix on the final line to build comma-separated lists without a trailing comma.

Frequently asked questions

How do I add quotes and a comma to every line?

Click the "Double quotes + comma" preset, or choose Double quotes in "Wrap line in" and type a comma as the suffix.

Can I add numbers to each line?

Yes. Use {n} in the prefix, for example "{n}. ", or {n:3} for 001, 002, 003.

Are blank lines changed?

Not by default. "Skip empty lines" is on, so blank lines stay blank.

Related tools

More Text Formatting tools

User Reviews

–
No ratings yet
Write a review
Your rating *

Your email is never published. Reviews are moderated, and links aren't allowed.

What users are saying

No reviews yet

Be the first to share your experience with this tool — your feedback helps others.