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.
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
Markdown Table to CSV Converter
Convert a GitHub-flavored Markdown table into CSV, TSV or semicolon-separated rows, in your browser.
Markdown Table Generator
Paste CSV, TSV, or pipe-delimited data and get a properly aligned GitHub-flavored Markdown table.
Text Diff Viewer
Compare two pieces of text and see line-by-line or word-by-word additions and removals.
Lorem Ipsum Generator
Generate placeholder text by paragraphs, sentences, or words.
Case Converter
Convert text between UPPER, lower, Title, camelCase, snake_case and more.
Character & Word Counter
Count characters, words, sentences, lines, and bytes in real time.