JustFreeTools.
◎   English
EnglishEspañolالعربية
← All tools
Text

Add prefix and suffix to each line — free text tool

Add text before or after every line. Wrap lists in quotes, add bullets or build paths with optional trimming and blank-line handling. Free, private and browser-only.

● Your files stay yours

Loading converter…

One item per line. Prefix and suffix spaces are kept exactly as entered.

Text is added literally. Quotes, markup and backslashes are not escaped or executed. Review the output before using it as code.

How to use this tool

Paste your lines, enter a prefix, a suffix or both, and select Apply to lines. Use Ctrl/Command + Enter from the input for keyboard operation. Review the result and copy it. Try the example for a bullet list.

Good to know

Up to 200,000 input characters, 10,000 lines and 200 characters in each affix. Output is limited to roughly 1 million characters. CRLF and CR line endings become LF; an existing final newline is preserved without adding an extra item. No automatic escaping, CSV/JSON generation, numbering, regular expressions or file renaming. Text stays in your browser and is not uploaded or saved.

Format a whole list in one step

Add a dash and a space as the prefix to turn Apple into - Apple. Put a double quote in both fields to wrap each item in quotes. Add /images/ before filenames to build text paths. For blank separator lines, keep “Leave blank lines unchanged” enabled. These transformations are literal and do not validate paths or produce escaped data formats.

Prefix and suffix questions

Can I add only a prefix or only a suffix?

Yes. Leave the other field empty. If both fields are empty, only optional trimming and line-ending normalization apply.

What happens to blank lines?

By default, empty and whitespace-only lines remain unchanged, including their spaces. Turn off the blank-line option to process them too. A final newline remains a terminator, not an additional line to wrap.

Are spaces removed?

Only when trimming is enabled, and only from the beginning and end of processed input lines. Prefix and suffix spaces are always preserved. Internal spaces are unchanged.

Can I generate valid JSON or SQL by adding quotes?

Not reliably. This tool does not escape quotes or other special characters. Use a format-aware converter when you need valid structured data or code.