Unicode & Text Authority
TEXT REFERENCE / TOOLS

Add prefix and suffix to lines

Add literal text before and after each line.

How it works

Enter a prefix, a suffix or both. Empty affixes leave that side unchanged. Choose whether to leave completely empty lines untouched; lines containing spaces or tabs are not empty. Order, duplicates and original line contents are preserved. CRLF and CR become LF; a final newline remains a terminator, and empty input produces empty output.

Copy line affix summary

Use Copy line affix summary to copy the displayed output code-point count as tab-separated Metric and Value columns, without copying the formatted text. With prefix [ and suffix ], apple and pear on separate lines become [apple] and [pear] (14 output code points including the line break).

Wrap or decorate a list

With prefix [ and suffix ], apple becomes [apple]. Add a fixed URL path before each slug or a comma after each item. By default, every selected line gets the same literal affixes. Unlike find and replace, no existing text needs to match.

Add only missing affixes

For prefix [ and suffix ], the lines [apple, pear] and [orange] become [apple], [pear] and [orange]. Each side is checked independently against the original line, with exact case and spaces. Overlapping affixes can interact; repeated formatting is not guaranteed to be unchanged in every case.

Limits and empty lines

Source: 50,000 UTF-16 units; each affix: 1,000 units; result: 100,000 units. Larger results are rejected before construction. CR and LF are not permitted in affixes. Spaces are significant. A trailing newline does not create an extra line to decorate. Skipped empty lines remain in the output. Text stays in your browser; no file upload or storage is required.

Related: Text line filter · Add line numbers · Find and replace · Remove line breaks.

Other tools

Text utilities

Encoding and conversion

Typography

Character and case tools