1001Ferramentas
Text

Add Prefix and Suffix

Add a prefix and/or suffix to every line of a text list. Useful for generating SQLs, formatted lists, batch commands.

What is prefix/suffix good for?

It's for wrapping each line in quotes, parentheses or commands. Say you use the prefix INSERT INTO t VALUES (' and the suffix ');, and a list of values becomes a ready-made batch of SQLs.

Each line is handled on its own, and if you'd rather, you can skip the blank ones.

All the processing happens in your browser.

Add a prefix and suffix to each line

Want to put quotes around each item of a list, turn a bunch of names into commands or build several SQL lines from values? The tool sticks a prefix and/or a suffix onto every line of a text list, all in one go.

It's a little trick that saves a fair amount of time. Paste the list, say what comes before and after each item, and the pattern repeats across every line. Good for generating repetitive commands, building SQL queries, formatting lists for code or wrapping items in markup.

The work is done in the browser, so the list never leaves it. Paste, set the prefix and suffix, and copy the finished result.

Related Tools