Et
EditText.app

Add Prefix & Suffix to Lines

Add a prefix, suffix, or both to every line of text. Wrap lines with tags, quotes, delimiters, or any text. Free online tool.

🔒 Your text stays in your browser — nothing is sent to our servers
Prefix
Suffix
Presets:
Input
0Characters
0No spaces
0Words
0Sentences
0Lines
< 1 minRead time
Output
How to Use

Three steps to get started

1

Enter prefix and/or suffix

Type the text you want to add before each line (prefix) and/or after each line (suffix). Use the presets for common patterns.

2

Paste your list

Paste your text — one item per line. The output updates instantly as you type.

3

Copy or download

Click Copy to grab the result, or Download to save as a text file.

About This Tool

Wrap every line with custom text — instantly

Whether you're building an HTML list, formatting SQL values, or adding bullet points to a plain text document, manually editing every line is tedious and error-prone. This tool adds any prefix and suffix to every line of your text in one click.

Practical examples:

  • Wrap items in <li></li> tags to build an HTML list from a plain list
  • Add ' around each line to create SQL IN ('a', 'b', 'c') clauses
  • Prefix lines with - or for Markdown or presentation bullet points
  • Wrap values in double quotes for CSV or JSON array formatting
  • Add // to comment out multiple lines of code at once
  • Surround lines with pipe characters for Markdown table rows

The tool includes six common presets so you can jump straight to the most frequently needed patterns. You can also type any custom text — special characters, HTML entities, multi-character strings, or whitespace — into the prefix and suffix fields.

All processing happens in your browser. Nothing is sent to a server, and there are no limits on text length or number of lines.

FAQ

Frequently Asked Questions

Related Tools