Add Prefix/Suffix to Lines

Add Prefix/Suffix to Lines adds the same text to the start and/or end of every line of a text, handy for bullet lists, quoting, commas or building SQL/JSON lists. Your text never leaves your device.

Result
—

How it works

  1. 1Paste the text into the left box, each line is processed separately.
  2. 2Type the text to add in "Add to line start" and/or "Add to line end" (e.g. a quote and a comma).
  3. 3Tick "Skip empty lines" to leave empty lines untouched.
  4. 4Copy the result with "Copy".

Frequently asked questions

Can I wrap every line in quotes and add a comma?+

Yes, type " as the prefix and ", as the suffix; the result can be pasted straight into an array.

Are Windows line endings (CRLF) preserved?+

Yes, the suffix goes before the line break and the break itself is kept.

Is the text sent to a server?+

No, everything runs in your browser.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/text/add-prefix-suffix-to-lines/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Add Prefix/Suffix to Lines · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Text Editing Guide →

Command Palette

Search for a command to run…