Wrap Lines (Add Prefix & Suffix)

Wrap every line with a prefix and suffix — presets turn a plain list into a quoted array, a SQL IN() list, or HTML <li> items in one click.

Presets
Wrapped output

Preset wrappers for arrays, SQL and HTML

Paste a plain list — one item per line — and wrap every line with a prefix and a suffix. Type your own wrappers or pick a preset to turn the list into a quoted array, a SQL IN() list, or HTML <li> items. Everything runs in your browser, so nothing is uploaded. To sort the list before wrapping it, use the Text Sorter and its “Wrap & join the sorted list” section.

Prefix, suffix and blank lines

The prefix is added to the start of each line and the suffix to the end, while the line's own text is kept verbatim. Turn on "Skip blank lines" to drop empty lines so a stray blank or trailing newline in a pasted list never becomes an empty '' or <li></li> wrapper.

Frequently asked questions

How do I build a SQL IN() list from a plain list?

Paste your values one per line and choose the SQL preset — it sets the prefix to a single quote and the suffix to a quote plus comma, so each value comes out ready to sit inside the parentheses of an IN() clause.

What does the "Skip blank lines" option do?

When it is on, whitespace-only lines are dropped instead of being wrapped, so blank lines or a trailing newline in a pasted list never turn into empty wrappers. Turn it off to wrap every line, including blank ones.

Can empty lines stay empty?

Yes. Tick “Keep blank lines blank” and an empty line comes out empty, with nothing added before or after it, while every other line is wrapped as usual. It is the opposite of skipping blank lines, so ticking one unticks the other.