Skip to main content
Toolgin57 tools

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.

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

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.