Original text

Tip: use %N% for the line number and %L% for the line itself.

New text

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.

  1. Instant updates: New text refreshes as you paste, edit templates, or change line counting.
  2. Prefix each line: Add constant text or numbered labels at the start of every row.
  3. Suffix each line: Append commas, spaces, quotes, or custom text at the end of each line.
  4. %N% line numbers: Insert auto-incrementing numbers with four counting styles.
  5. %L% line content: Repeat the original line inside your prefix or suffix template.
  6. 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.

  1. Paste your lines: Enter one item per line in Original text.
  2. Set prefix or suffix: Enable beginning or end text, then use %N% or %L% if needed.
  3. 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.

  1. One item per line: Line breaks define rows before prefix or suffix is applied.
  2. Start with %N%. : A numbered prefix is the fastest way to build ordered lists.
  3. Use suffix for delimiters: Append commas or spaces when preparing concat-style output.
  4. Pick padding early: Choose 00 or 01 modes when filenames or IDs need fixed width.
  5. 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.

  1. Numbered lists: Prefix rows with 1. 2. 3. or zero-padded indexes.
  2. Quote wrapping: Add opening and closing characters on each line for code or CSV prep.
  3. Delimiter suffixes: Append commas or spaces when building concatenated output.
  4. Bulk labeling: Insert the same tag before many lines in logs or inventories.
  5. 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.

  1. Immediate: No run button required for standard use.
  2. Flexible templates: Mix static text, line numbers, and original line content.
  3. Private: All processing stays in the browser.
  4. Portable output: Copy, download, or open output in a separate tab.

Technical details

How the add-text-to-each-line processor works.

  1. Input format: Plain text split by newline characters.
  2. Normalization: Windows and Unix line endings are normalized before processing.
  3. Placeholders: %N% inserts the formatted line number; %L% inserts the original line.
  4. Order of operations: Prefix template is applied first, then suffix template, on each original line.
  5. Runtime: Client-side in modern browsers.

Frequently Asked Questions

Have questions? We have answers.

More tools from Text & Lists.