Line Formatter — Add Prefix, Suffix & Join
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.
Items: 3
How to use
- Paste your list into the input box, one item per line.
- Set a prefix and suffix to wrap each line, and pick a separator.
- 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
Remove Line Breaks
Join wrapped lines back into clean, flowing text — strip the hard line breaks you get when copying from PDFs or emails, while keeping real paragraphs.
Word Wrap — Reflow Text to a Column Width
Hard-wrap text to a fixed line width, breaking at word boundaries, in your browser.
Sort & Dedupe Lines
Sort, dedupe, trim, shuffle, or reverse a list of lines. Natural sort for embedded numbers, case-sensitive toggle, blank-line removal.
Text Diff Viewer
Compare two pieces of text and see line-by-line or word-by-word additions and removals.
Text Repeater
Repeat a word, line or block of text any number of times — joined by a new line, space, comma, nothing, or your own separator.
Find & Replace
Find and replace across a block of text. Optional regex with global, case-insensitive, multiline, and dotAll flags. Live match count.