Pinatool

Add Text to Each Line

Add prefixes, suffixes, or sequential numbers to every line of text. Format lists, generate HTML or Markdown output, and customize numbering without editing each line manually.

Quick Presets

Dynamic Variables: Use {n} for line numbers, {n:01} or {n:001} for zero-padded numbers, and {total} for the total line count.

Input Lines

5 lines

Formatted Output

5 lines formatted

How It Works

1

Paste or Enter Lines

Type or paste items, rows, URLs, or database keys into the editor, or load sample data to test formatting.

2

Set Prefix & Suffix

Enter your prefix and suffix strings, or pick from ready-made presets like quotes, bullets, Markdown task boxes, or SQL tuples.

3

Preview & Export

Check the live formatted output, then copy the result to your clipboard or download it as a .txt file with one click.

Add Text to Each Line Key Features

Sequential Numbering & Variables

Insert line numbers with {n}, zero-padded numbers like {n:01} or {n:001}, total line count with {total}, plus custom start and step values.

One-Click Formatting Presets

Quickly wrap lines with double quotes, convert rows to HTML <li> list items, create Markdown task checklists, or format SQL IN values.

Blank Line & Whitespace Control

Automatically skip empty lines so numbering stays continuous, and optionally trim leading or trailing spaces from every row before formatting.

Frequently Asked Questions

Can I wrap lines with quotes or HTML tags?

Yes. Put the opening tag or quote (such as <li> or ") in the Prefix field and the closing tag or quote (such as </li> or ") in the Suffix field. You can also click the quick presets for one-click formatting.

What happens to blank or whitespace-only lines?

When Skip Blank Lines is enabled, empty lines are left untouched and are not counted when generating sequential numbers. Unchecking this option applies the prefix and suffix to every line, including blank rows.

Can I start numbering from a number other than 1?

Yes. Customize the "Start At" value (for example, start at 100) and the "Increment By" step (for example, step by 5 or 10) to generate any numbering sequence you need.

How do zero-padded numbers and dynamic variables work?

Use {n} for standard numbering (1, 2, 3), {n:01} for two-digit zero padding (01, 02, 03), or {n:001} for three-digit padding (001, 002, 003). You can also combine {n} with {total} (for example, "Item {n} of {total}: ") to include the total number of formatted lines.

Can I format large lists for SQL, CSV, or Markdown?

Yes. Use the built-in presets or enter custom prefixes and suffixes such as single quotes and commas for SQL IN clauses, hyphens for Markdown lists, or list-item tags for HTML, then copy or download the formatted result as a .txt file.