UnQTools
Text Runs in your browser

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.

100% Private Works Offline Instant

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

  1. Enter your input in the tool above.
  2. Adjust any options to your preference.
  3. Use the Copy or Download buttons to save the result.
  4. 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.

Search tools and actions

Search across all 170 tools, categories, and quick actions.