Word Prefix and Suffix Tool

Add an entered prefix, suffix or both to each line while keeping the list order and explicit empty-line choices.

Inputs stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Add prefix and suffix controls

Showing an example. Edit to see your own.

Up to 1,000,000 characters. Line endings are normalised to LF and the line order is kept.

Literal text added before each line, up to 500 characters with no line break.

Literal text added after each line, up to 500 characters with no line break.

When selected, an empty line stays empty instead of receiving the prefix and suffix. The line is still present.

The result is capped at 1,000,000 characters.

Processed in your browser. Your inputs stay on this device.

How to use Word Prefix and Suffix Tool

  1. Paste one item per line.
  2. Enter the exact prefix and suffix, including any spaces you want.
  3. Choose whether empty lines are kept or skipped.
  4. Copy the result after checking the first and last items.

Example: Word Prefix and Suffix Tool

A local worked example using the inputs and settings below for word prefix and suffix tool.

You add
Text: "first line\nsecond line\nthird line" Prefix: "- " Suffix: "" Leave empty lines unchanged: false End of the result: "preserve"
You get
Added the prefix and suffix to 3 of 3 lines; line endings were normalized to LF; the result does not end with a newline.

Options

Literal affixes
The prefix and suffix are inserted as entered. Include a space in the prefix when a label should be separated from the line.
Empty lines and final newline
Skipping empty lines controls whether they receive affixes. The final-newline policy determines whether an ending line break is preserved, added or removed.

Supported inputs and limits

Up to 1,000,000 input characters, 500 characters per affix and 1,000,000 output characters. Prefixes and suffixes are literal text, not templates or regular expressions. Line endings normalize to LF; the original final-newline policy is stated with the result. Empty-line handling follows your selection.

Where your input is processed

This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Keep list boundaries with the output

Line order stays unchanged, but line endings become LF. A prefix can turn a list into commands or spreadsheet-like text, so inspect the combined lines before using them in another application. This is a literal transformation without template expansion or escaping for a destination language.

Questions about Word Prefix and Suffix Tool

Can I use a regular expression in the prefix?

No. The entered characters are added literally, so punctuation and braces stay as typed.

Are words sorted or deduplicated?

No. Each retained line stays in its original position, including repeated values.

How do I add a space after a prefix?

Type that space in the prefix field. The tool does not guess separators between the affix and your item.

Project manager: Tony Hines · Content updated 4 October 2026 · Report a problem