Add Prefix & Suffix to Lines

Add a prefix and suffix to every line of text in one step — wrap values in quotes for a code array or SQL IN list, turn lines into bullets or <li> items, or number them with {n}. Remove mode strips a prefix and suffix again. Paste text or convert many files at once; it all runs in your browser.

Presets

PresetPrefixSuffixapple becomes
Quote + comma"","apple",
SQL list'','apple',
Bullet- - apple
Numbered{n}. 1. apple
HTML<li></li><li>apple</li>

When to use it

  1. Turn a column of IDs into a quoted, comma-separated list.
  2. Build a SQL WHERE id IN (…) list.
  3. Number lines or turn them into Markdown bullets.
  4. Wrap lines in HTML tags.

How to Use

  1. Paste your lines or drop files.
  2. Enter a prefix and suffix, or pick a preset.
  3. Choose Add or Remove.
  4. Copy or download the result.

Features

  1. Prefix and suffix on every line
  2. {n} line numbering with a start value
  3. Remove mode
  4. Presets for quotes, SQL, bullets and HTML
  5. Blank-line handling
  6. Bulk files with ZIP download
  7. 100% client-side

FAQs

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

Use the 'Quote + comma' preset, or type " as the prefix and ", as the suffix.

How do I number lines?

Put {n} in the prefix, for example '{n}. ', and choose the starting number.

Can I remove a prefix from every line?

Yes. Switch to Remove and enter the prefix or suffix to strip.

What happens to blank lines?

They're left alone by default. Turn that off to wrap them too.

Is my text uploaded?

No. Everything runs in your browser.

Technical Details

The text is split into lines (CRLF or LF) and each line becomes prefix + line + suffix. The placeholder {n} in either the prefix or suffix is replaced with a running line number, starting from the number you choose, so '{n}. ' produces a numbered list. When 'leave blank lines alone' is on, empty or whitespace-only lines are kept as they are and don't advance the numbering. Remove mode does the reverse: it strips the prefix from lines that start with it and the suffix from lines that end with it, and leaves other lines unchanged, so it's safe on mixed input. Presets fill in common pairs — quote and comma for code arrays, single quotes for SQL IN lists, Markdown bullets and tasks, and <li> tags. Files dropped below are each converted and can be downloaded together as a ZIP.

Text Utilities

Text Utilities

  • Text Column Splitter
  • Hidden Character Detector
  • Remove Invisible Characters
  • Unicode Tools
  • HTML to Text
  • Data Extractor
  • PII Redactor
  • Arabic Script Formatter