Skip to main content

Add Prefix / Suffix

Loading…

About Add Prefix / Suffix

The Add Prefix / Suffix tool lets you prepend or append any text to every line in your list at once. No manual editing. No formulas. Just paste your list, enter your prefix or suffix, and copy the result.

This tool is widely used for adding URL paths to domain names, adding file extensions to filenames, wrapping lines in HTML or Markdown tags, building SQL statements from a list of values, adding bullet characters or symbols, and creating shell commands in bulk.

You can add a prefix, a suffix, or both at the same time. The fields are independent, so any combination works.

Everything runs locally in your browser. Your data never leaves your device, and no account or sign-up is required.

Practical Uses for Add Prefix / Suffix

  • Turn a list of domains into full https:// URLs
  • Wrap CSV values in quotes to build a SQL INSERT statement
  • Add a file extension to a batch of exported filenames
  • Wrap each line in HTML tags for a quick web page list
  • Add a common tracking parameter to a list of URLs
  • Prefix a list of IDs with a table or namespace identifier

How to Use Add Prefix / Suffix

  1. Paste your list — one item per line.

  2. Enter text in the Prefix field to prepend to every line.

  3. Enter text in the Suffix field to append to every line.

  4. Copy the transformed output.

Examples

Example — Add bullet points
Input
Item one
Item two
Item three
Output
• Item one
• Item two
• Item three
Example — Add https:// prefix
Input
example.com
google.com
github.com
Output
https://example.com
https://google.com
https://github.com
Example — Wrap in HTML list tags
Input
First item
Second item
Third item
Output
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
Example — Add file extension
Input
report-2023
report-2024
report-2025
Output
report-2023.pdf
report-2024.pdf
report-2025.pdf
Example — Add UTM parameters
Input
https://example.com/a
https://example.com/b
Output
https://example.com/a?utm_source=newsletter
https://example.com/b?utm_source=newsletter
Example — Prefix with table name for SQL
Input
id
name
email
Output
users.id
users.name
users.email

Who Uses the Add Prefix / Suffix Tool

  • Developers wrap plain values in quotes, brackets, or tags to build SQL statements, arrays, or HTML in bulk.
  • Marketers add UTM parameters or a common suffix to a batch of campaign URLs.
  • SEO professionals add https:// or www. prefixes to a list of raw domains pulled from a backlink report.
  • Content managers wrap plain list items in HTML or Markdown tags before pasting into a CMS.
  • Data analysts add table prefixes or file extensions to batch-exported filenames.

Comparisons

Add Prefix/Suffix vs Find & Replace

Add Prefix/Suffix is a specialized shortcut for one specific job: adding the same text to the start and/or end of every line. It's faster to set up than Find & Replace for that particular task, since there's no pattern to write — just type the prefix and suffix and go.

Find & Replace is more general-purpose: it can change text anywhere in a line, not just at the edges, and supports regex for conditional or pattern-based replacements. Use Add Prefix/Suffix for simple wrapping tasks, and reach for Find & Replace when you need to match or transform text in the middle of each line.

Frequently Asked Questions

Can I add a prefix and suffix at the same time?

Yes — both fields are independent and can be used together. For example, prefix 'https://' and suffix '/index.html' to build full URLs.

Can I add HTML tags around each line?

Yes — set prefix to "<li>" and suffix to "</li>" to wrap every line in list item tags.

How do I add a bullet point to every line?

Set the prefix to '• ' (bullet followed by a space) and every line will start with a bullet character.

Can I use this to build SQL INSERT statements?

Yes — set the prefix to "INSERT INTO table (col) VALUES ('" and the suffix to "');" to wrap each value in an INSERT statement.

Can I add a file extension to a list of filenames?

Yes — paste your filenames without extensions and set the suffix to '.png', '.csv', or any extension you need.

Can I add a URL protocol to a list of domains?

Yes — paste your domains and set the prefix to 'https://' to build full URLs in one step.

Can I add UTM tracking parameters to a list of URLs?

Yes — set the suffix to your UTM query string, e.g. '?utm_source=newsletter&utm_medium=email', and it will be appended to every URL in the list.

Can I turn a list of raw domains into full URLs with https://?

Yes — paste your domains one per line and set the prefix to 'https://'. If some already include a protocol, remove those separately first to avoid double prefixes.

Can I wrap each line in Markdown link syntax?

Partially — set the prefix to '[' and complete the ']()' portion per line manually, since the tool doesn't insert a second value automatically. For fully automated Markdown link generation, use Find & Replace with a regex capture group instead.