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
Abstract Generator
Generate extractive summaries from long text with IMRaD-aware scoring. 100% private. 100% private.
Acronym Expander
Expand common acronyms and abbreviations with a configurable dictionary. 100% private. 100% private.
Acronym Generator
Generate backronyms from keywords with custom dictionaries and random modes. 100% private. 100% private.