My Tool Studio
Text

Prefix / Suffix Lines

Turning two hundred product slugs into two hundred full URLs by hand is an evening gone. Paste the slugs here instead and add prefix to each line in one stroke: type your domain and path into the Prefix field and the output pane fills in while you watch. A matching Suffix field appends text to the end of every line, so you can wrap values in quotes or tack on UTM parameters in the same pass. The Skip empty lines checkbox leaves blank lines untouched, and since you can prepend text to lines this quickly, bulk Markdown lists and SQL snippets stop being chores.

Always freeNo sign upRuns in your browser

How to use

01

Set your prefix and suffix

Fill the Prefix field with text for the start of every line and the Suffix field for the end. Either can stay empty, and the prefix defaults to a Markdown style dash.

02

Paste your lines

Add your list to the Input textarea. Output builds instantly on the right, applying the prefix and suffix to every line as soon as you type or paste.

03

Handle blanks, then copy

Leave Skip empty lines checked to pass blank lines through untouched, or uncheck it to decorate them too. The Copy button grabs the finished list when you're done.

Why Prefix / Suffix Lines

Common questions

Can I add suffix to lines online without using a prefix?
Yes. Clear the Prefix field, it starts out holding a dash and a space, and only the suffix applies. That's the setup for appending file extensions, trailing commas, or closing tags to a list.
How do I use the prefix and suffix to build SQL values?
Set the prefix to a single quote and the suffix to a single quote followed by a comma. Each line becomes a quoted value ready for an IN clause. Delete the trailing comma on the last line before running the query.
What does the Skip empty lines checkbox actually do?
When it's checked, blank lines pass through with nothing added, preserving your spacing. Uncheck it and even empty lines get the prefix and suffix glued together, which is almost never what you want in a URL or SQL list.
Can I prepend text to lines to build a Markdown checklist?
Yes, set the prefix to a dash, a space, and a pair of square brackets with a space between them, and every line becomes an unchecked task item. The default dash prefix already produces plain bullet lists.
Does the prefix support spaces and special characters?
Everything is applied literally, including leading spaces, trailing spaces, quotes, and symbols. That literalness cuts both ways, so double check the field for an accidental trailing space before copying a big batch.
Can adding a prefix to each line create bulk URLs?
That's the classic job for it. Paste your paths or slugs, put the scheme, domain, and base path in the Prefix field, and every line comes out as a complete working URL.
Is there a limit on how many lines I can prefix at once?
Nothing practical. The operation is a simple per line concatenation running in your browser, so thousands of lines transform instantly and none of the data leaves your machine.

More Text tools

View all