Add Prefix/Suffix
Options
Configure prefix and suffix settings
Input
Output
Related Tools
What is the Add Prefix/Suffix Tool?
The Add Prefix/Suffix tool allows you to add custom text to the beginning (prefix) and/or end (suffix) of each line in your text. This is useful for formatting lists, creating code snippets, adding quotation marks, or preparing data for specific formats.
Features include line numbering with customizable formats, the ability to skip empty lines, trimming whitespace, and zero-padding for numbers. You can add text to all lines or only non-empty lines.
All processing happens directly in your browser, ensuring your data remains private and secure. The tool processes your text instantly as you type or adjust settings.
Common Uses for Add Prefix/Suffix
Creating Lists
Transform plain text into formatted lists by adding bullets, numbers, or custom markers. Perfect for creating markdown lists, HTML lists, or documentation.
Code Formatting
Add code-specific prefixes like indentation, comment markers, or array formatting. Great for preparing SQL statements, JSON arrays, or programming constructs.
Quotation Wrapping
Add quotation marks, brackets, or other wrapping characters to each line. Useful for creating string arrays, CSV data, or quoted text for documents.
Data Preparation
Format data for import into databases, spreadsheets, or other applications. Add delimiters, identifiers, or formatting characters to each row.
Frequently Asked Questions
What's the difference between prefix and suffix?
A prefix is text added to the beginning of each line, while a suffix is text added to the end. For example, adding "- " as a prefix creates a bulleted list, while adding ";" as a suffix can format SQL statements.
How do I add line numbers?
Select "Add Line Numbers" in the Apply To option. You can customize the starting number, zero padding (e.g., 01, 02, 03), and the separator after the number (like ". " or ") ").
What does "Skip Empty Lines" do?
When enabled, empty lines (lines with no content or only whitespace) won't have the prefix or suffix added. This keeps your output cleaner by preserving the spacing between content blocks.
Can I add both prefix and suffix at once?
Yes, select "Prefix & Suffix" mode and enter both values. This is useful for wrapping text in quotes, HTML tags, or other paired characters like brackets or parentheses.
Is my data secure?
Yes, all processing happens directly in your browser. Your text is never sent to any server or stored anywhere. This ensures complete privacy for any sensitive content.