Prefix & Suffix Adder
Free online prefix & suffix adder. Process data instantly in your browser. No upload, no signup, fully private.
How to Use
- Paste or type your text into the Prefix & Suffix Adder input area above.
- Configure any format or mode options to generate the result in real time.
- Click Copy to copy the formatted result to your clipboard, or Reset to clear the workbench.
What is Prefix & Suffix Adder?
Prefix & Suffix Adder prepends a custom prefix string and/or appends a custom suffix string to every line in a multi-line text block, with optional toggles to skip empty lines and trim leading/trailing line whitespace.
How It Works
Enter multi-line text, specify Prefix and/or Suffix, optionally check Skip empty lines or Trim each line, and click Add prefix/suffix. addPrefixSuffix() in _shared/prod-b.ts normalizes \r\n/\r line endings to \n, trims lines if requested, leaves blank lines untouched when skipEmpty is enabled, and returns prefix + line + suffix joined by \n locally.
Common Use Cases
- Turning plain lists into Markdown bullets or code arrays — add "- " as prefix or "'", / ", " wrappers across dozens of lines
- Wrapping SQL IN (...) string literals — check Trim each line + Skip empty lines and apply ' prefix + ', suffix
- Appending semicolons or file extensions — batch-add .json or ; to the end of every line cleanly
- Formatting private IDs or email lists locally — process hundreds of lines inside browser memory with zero uploads
Technical Details
Helper: addPrefixSuffix(input, { prefix, suffix, skipEmpty, trimLines }) in _shared/prod-b.ts. Normalizes CRLF/CR to LF; supports blank-line skipping and per-line whitespace trimming with Copy and Reset locally.
FAQ
Is this Prefix & Suffix Adder free?
Yes, completely free. No signup required.
Does this tool upload my data?
No. All processing happens locally in your browser. Your data never leaves your device.