Blog
Text tools

Add prefix online

Paste a list — one item per line — and add your own text to the start (prefix), the end (suffix), or both at once. Handy for turning a plain list into a bulleted one, formatting file paths, or preparing data for code.

Result

Lines updated —

All calculations run locally in your browser: parsing, chart, export. Disconnect the network and the page keeps working.

Facts and limits of this method

Prefix Added at the very start of every line being processed
Suffix Added at the very end — an optional field, can be left blank
Skip empty lines On by default — an empty line stays empty, with no prefix or suffix
Application order Prefix and suffix are added at the same time in one pass

When it misleads you

How it is calculated

The text is split into lines on line breaks.

For each line, if "skip empty lines" is on and the line consists only of whitespace, it's left unchanged.

For every other line, the prefix is added at the start and the suffix at the end, in a single operation.

The counter shows how many lines were actually changed — that is, how many lines weren't skipped as empty.

Questions and answers

Can I add only a suffix, with no prefix?

Yes, just leave the prefix field blank — then only the end of each line changes.

How do I add numbering instead of fixed text?

There's a separate tool for that — "line numberer," which adds a sequence number rather than fixed text.

What happens to empty lines when the skip option is off?

They get the prefix and suffix too — an empty line turns into a line made up of just those added fragments.

Is my text sent anywhere?

No, all the processing runs in your browser.

Related tools

All tools