Add Prefix & Suffix to Lines

Add text before and/or after each line. Perfect for creating lists, formatting data, and bulk text editing.

Input Text (one item per line)

Characters: 0Words: 0Lines: 0

Output Text

Characters: 0Words: 0Lines: 0

About Add Prefix & Suffix Tool

Our free online tool lets you quickly add text before (prefix) and after (suffix) each line. Perfect for creating HTML lists, SQL queries, markdown formatting, and bulk text transformations.

All processing happens locally in your browser, ensuring your text remains private and secure. No data is uploaded to any server.

Available Presets

HTML List

Wraps each line in <li> and </li> tags. Perfect for converting plain text lists into HTML unordered or ordered lists.

Quotes

Adds double quotes around each line. Useful for creating quoted strings for programming or CSV data.

Brackets / Parentheses

Wraps each line in square brackets or parentheses. Useful for array notation, references, or mathematical expressions.

SQL Values

Wraps each line in single quotes with a trailing comma. Perfect for creating SQL INSERT value lists.

Bullet Points

Adds a bullet character at the beginning of each line for creating formatted lists.

Common Use Cases

  • Creating HTML list items from plain text
  • Adding quotes around each line for SQL/CSV
  • Adding bullet points or numbers to lists
  • Wrapping text in brackets or parentheses
  • Formatting code or data structures
  • Creating markdown formatted lists
  • Adding commas or delimiters after each item
  • Preparing data for import into applications

Features

  • Custom prefix and suffix text
  • Quick presets for common formats
  • Real-time character, word, and line statistics
  • Download formatted text as .txt file
  • Copy to clipboard functionality
  • 100% client-side processing for privacy
  • No registration or installation required
  • Works with any amount of text

Frequently Asked Questions

How do I add text to the beginning and end of each line?

Enter your text with one item per line, specify your prefix and/or suffix text, and click Apply. The tool will add your prefix to the beginning and suffix to the end of every line.

What are the quick presets for?

Presets provide common prefix/suffix combinations like HTML list items, quotes, brackets, SQL values, and bullet points for quick formatting without manual typing.

Can I add only a prefix without a suffix?

Yes, leave the suffix field empty to add only a prefix. Similarly, leave the prefix empty to add only a suffix to each line.

Is my text data secure?

All processing happens locally in your browser. Your text is never uploaded to any server, ensuring complete privacy and security.

How do I create an HTML list from plain text?

Click the 'HTML List' preset which sets the prefix to '<li>' and suffix to '</li>', then click Apply to convert each line into a list item.