AZ Tools

Line Formatter — Add Prefix, Suffix & Join

Text

Paste a list and instantly reformat it: add a prefix and suffix to every line and join the lines with a separator of your choice. Great for building SQL IN lists, code arrays, quoted CSV values, Markdown bullets and more. Optionally trim each line and drop blank lines first. Everything runs locally in your browser — nothing is uploaded.

Output

Items: 3

How to use

  1. Paste your list into the input box, one item per line.
  2. Set a prefix and suffix to wrap each line, and pick a separator.
  3. Copy the formatted result from the output box.

Frequently asked questions

What can I build with this?
Common uses are SQL IN lists (prefix and suffix ' with a comma separator), JavaScript or Python array literals, quoted CSV rows, and Markdown or HTML list items.
What do the trim and remove-empty options do?
Trim removes leading and trailing whitespace from each line before wrapping. Remove empty lines drops blank lines so they don't become empty wrapped entries.
Can I use a custom separator?
Yes. Choose Custom and type any separator string, such as a space-arrow-space or a pipe. The built-in choices cover newline, comma, comma-space, space, semicolon and pipe.
Is my data sent anywhere?
No. Formatting happens entirely in your browser; nothing is uploaded.

Related tools