Add Prefix/Suffix to Lines
Add a prefix and/or suffix to every line — wrap in quotes, build HTML lists, add SQL commas, number lines with a counter token. Skip empty, regex-conditional, escape for JSON/HTML/SQL. 100% private.
About Add Prefix/Suffix to Lines
Add a prefix and/or suffix to every line — wrap in quotes, build HTML lists, add SQL commas, number lines with a counter token. Skip empty, regex-conditional, escape for JSON/HTML/SQL. 100% private. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
Can I number each line?
Yes. Use the {n} token in the prefix or suffix field. Set the start, step, and padding (e.g., {n} with padding 3 gives 001, 002, 003).
Can I wrap only certain lines?
Yes. Enter a regex in the 'Only wrap lines matching' field. Lines that don't match the regex are left unchanged.
Can I remove an existing prefix/suffix?
Yes. Toggle 'Reverse (strip)' mode — the tool will remove the prefix from the start and suffix from the end of each line if they're present.
Related tools
Add Line Breaks
Insert line breaks into text — word-wrap at a column width, split on a delimiter, or break every N characters/words. Unicode-correct, word-safe, with CJK/emoji support. 100% private.
Big Text Generator
Convert text to big, wide Unicode styles — fullwidth, bold sans, monospace, circled, squared. Copy-paste into bios, chats, and usernames. 100% private, accessibility-honest.
Bold Text Generator
Convert text to 𝐛𝐨𝐥𝐝 Unicode styles — serif, sans, italic, script, fraktur, double-struck. Copy-paste into LinkedIn, Instagram, Discord. Decode back to normal. 100% private.