Add text to each line online
Prepend or append text to every line. Use line numbers with %N% or repeat the line with %L%, then copy or download the result.
What is add text to each line online?
Add text to each line online is a text utility that prepends or appends content to every row in a multi-line block. Paste lines, add a prefix like a line number, add a suffix like a comma, and copy the result. People also search for add text to text, prepend lines, append text, or type on multiple lines; this page serves that intent with %N% and %L% placeholders. It does not edit Word documents or insert HTML line breaks.
Line prefix and suffix features
Tools for append and prepend workflows.
- Instant updates: New text refreshes as you paste, edit templates, or change line counting.
- Prefix each line: Add constant text or numbered labels at the start of every row.
- Suffix each line: Append commas, spaces, quotes, or custom text at the end of each line.
- %N% line numbers: Insert auto-incrementing numbers with four counting styles.
- %L% line content: Repeat the original line inside your prefix or suffix template.
- Copy and download: Export the updated block as plain text in one click.
How to add text to every line
Three steps for prepend or append output.
- Paste your lines: Enter one item per line in Original text.
- Set prefix or suffix: Enable beginning or end text, then use %N% or %L% if needed.
- Copy or export: Use Copy all, Download text, or Open in new tab.
Tips for prefix and suffix templates
Avoid common mistakes when you add text to lines.
- One item per line: Line breaks define rows before prefix or suffix is applied.
- Start with %N%. : A numbered prefix is the fastest way to build ordered lists.
- Use suffix for delimiters: Append commas or spaces when preparing concat-style output.
- Pick padding early: Choose 00 or 01 modes when filenames or IDs need fixed width.
- Download long outputs: Text export is safer than clipboard for very large lists.
When to prepend or append lines
Common add-text-to-text tasks.
- Numbered lists: Prefix rows with 1. 2. 3. or zero-padded indexes.
- Quote wrapping: Add opening and closing characters on each line for code or CSV prep.
- Delimiter suffixes: Append commas or spaces when building concatenated output.
- Bulk labeling: Insert the same tag before many lines in logs or inventories.
- Template expansion: Combine %L% with fixed text to repeat line content in a pattern.
Why use this line text tool
Fast bulk edits without a spreadsheet.
- Immediate: No run button required for standard use.
- Flexible templates: Mix static text, line numbers, and original line content.
- Private: All processing stays in the browser.
- Portable output: Copy, download, or open output in a separate tab.
Technical details
How the add-text-to-each-line processor works.
- Input format: Plain text split by newline characters.
- Normalization: Windows and Unix line endings are normalized before processing.
- Placeholders: %N% inserts the formatted line number; %L% inserts the original line.
- Order of operations: Prefix template is applied first, then suffix template, on each original line.
- Runtime: Client-side in modern browsers.
Frequently Asked Questions
Have questions? We have answers.
Related tools
More tools from Text & Lists.