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

Why use our Add Prefix/Suffix Tool?

Custom Prefix & Suffix

Wrap every line with any text before and after — quotes, tags, bullets, or SQL values.

Built-In Presets

One-click presets for HTML list items, brackets, parentheses, quotes, and bullet points.

Line-by-Line Processing

Apply formatting to each line independently with optional auto-numbering.

What is an Add Prefix/Suffix Tool?

An add prefix/suffix tool prepends and appends custom text to every line in a block. Developers use it to wrap lines in HTML tags, SQL values, or JSON strings. Writers use it to add bullet points, quotes, or numbering to lists without manual editing.

Our free online add prefix/suffix tool lets you type any prefix and suffix, enable auto-numbering, or pick from presets like HTML list items, brackets, and SQL values. Paste your list, apply formatting, and copy or download the result instantly in your browser.

What You Can Configure

  • Custom prefix:Add any text before each line — tags, symbols, or identifiers.
  • Custom suffix:Append any text after each line — closing tags, commas, or quotes.
  • Auto-numbering:Prefix each line with 1., 2., 3. in sequence for ordered lists.
  • HTML list preset:Wrap lines in <li> and </li> tags for quick unordered lists.
  • SQL values preset:Wrap each line in single quotes with a trailing comma for INSERT statements.
  • Live statistics:Track characters, words, and line counts for input and output.

Common Use Cases

HTML List Building

Wrap plain-text items in <li> tags for quick web page lists.

SQL INSERT Prep

Format value lists with quoted strings and trailing commas for database imports.

Markdown & Docs

Add bullet points or numbering to plain lists before pasting into editors.

JSON Array Strings

Wrap lines in quotes and commas when building JSON string arrays manually.

Batch Renaming Lists

Add a common prefix or suffix to filename lists before scripting renames.

Quote Formatting

Wrap each line in quotation marks for citation or dialogue formatting.

How to Add Prefix and Suffix

1

Paste Your Lines

Enter text with one item per line into the input area.

2

Set Prefix & Suffix

Type custom text or click a preset to fill prefix and suffix fields.

3

Enable Numbering

Toggle auto-numbering if you want ordered list formatting.

4

Apply & Export

Click Apply, then copy the result or download it as a text file.

Benefits of Prefix/Suffix Formatting

Skip Manual Wrapping

Format hundreds of lines in one click instead of editing each line individually.

Preset Speed

Common patterns like HTML lists and SQL values are one click away.

Flexible Numbering

Combine custom prefixes with automatic line numbering.

Per-Line Independence

Each line gets its own prefix and suffix — blank lines are preserved.

Private Processing

Your data and code snippets never leave your browser.

Completely Free

Add prefixes and suffixes unlimited times with no account required.

Prefix/Suffix Tips

  • One item per line: Each line is processed independently — use newlines to separate list items.
  • Presets are starting points: Click a preset then customize the prefix or suffix further.
  • Numbering adds before prefix: When numbering is enabled, the number appears before your custom prefix.
  • SQL preset trailing comma: The SQL values preset adds a comma after each line for INSERT lists.
  • Empty lines included: Blank lines receive the prefix and suffix too — remove them first if needed.
  • Pair with remove duplicates: Deduplicate your list before adding prefixes for cleaner output.

Add Prefix and Suffix Now

Whether you are building HTML lists, preparing SQL values, or formatting bullet points, our free add prefix/suffix tool wraps every line with custom text instantly in your browser.

Scroll up, paste your lines, set your prefix and suffix, and apply. No registration required, completely free, and your text stays 100% private on Quick Note.

Related tools

Frequently Asked Questions

How do I add a prefix to every line?

Paste your text with one item per line, type your prefix in the prefix field, and click Apply. Each line gets the prefix prepended.

Can I add both a prefix and suffix?

Yes. Fill in both fields and every line will be wrapped with your custom text on both sides.

What presets are available?

Presets include HTML list items, quotes, brackets, parentheses, SQL values, bullet points, and numbered lists.

How does auto-numbering work?

When enabled, each line is prefixed with 1., 2., 3. and so on before your custom prefix.

Does this work on multi-line paragraphs?

The tool processes line by line. For paragraph-level wrapping, split your text into one item per line first.

Is my text uploaded to a server?

No. All processing happens entirely in your browser. Your text is never sent to any server.

Can I download the formatted text?

Yes. Click Download to save the prefixed and suffixed text as a plain .txt file.

Is the add prefix/suffix tool free?

Yes. It is completely free to use with no registration, downloads, or hidden fees.