Add Prefix / Suffix

Add text before and after every line — numbering, bullets, quotes, HTML list items, SQL or JSON values, or your own template with {line} and {n}.

How to add a prefix and suffix to each line

  1. Paste your list or open a file.
  2. Pick a quick style or type your own prefix and suffix; use {n} for numbers and {line} for templates.
  3. Copy or download the result — as lines or joined into one line.

About Add Prefix Suffix

Turn a plain list into exactly the format you need. Add any text to the start and end of each line, number the lines in many styles, or use quick styles for bullets, checklists, quotes, hashtags, HTML list items, SQL values and JSON strings.

Templates with {line} and {n} build more complex output such as links or code, empty lines can be skipped, and the result can be joined into a single comma-separated line.

Good for

  • Turning lists into SQL IN clauses or JSON arrays
  • Numbering lines and making Markdown or HTML lists
  • Adding hashtags or @ to lists of words

Tip: Pick “SQL IN” and join with commas to paste the list straight into a query.

Frequently asked questions

How do I number lines?

Choose “1. 2. 3.” or put {n} in the prefix. Numbers can start anywhere and be padded (01, 001), letters (a, b, c) or Roman numerals.

Can I wrap every line in quotes or HTML?

Yes — quick styles add quotes, li tags, SQL values or JSON strings, and you can type any prefix and suffix.

What is {line} for?

It lets you build a template where the line appears more than once, for example a link tag with the line as both address and text.

Can I join the lines?

Yes, with a comma, a space, | or nothing — handy for SQL IN lists and tags.

Can I open files?

Yes — open or drop TXT, Markdown, CSV, HTML, JSON, subtitles, Word (.docx), OpenDocument (.odt), RTF and PDF files, even several at once.

Is my text sent anywhere?

No. The lines are changed in your browser, so your text stays on your device. A draft is kept only in this browser so you don't lose it.

Related tools

← Back to all tools