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
{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 Adding Text to Each Line Works
Transform and reformat lists in three quick steps.
Paste or Enter Lines
Type or paste items, rows, URLs, or database keys into the editor, or load sample data to test formatting.
Set Prefix & Suffix
Enter your prefix and suffix strings, or pick from ready-made presets like quotes, bullets, markdown task boxes, or SQL tuples.
Preview & Export
Check the live formatted output, then copy the result to your clipboard or download it as a text file with one click.
Key features
Flexible prefix, suffix, and numbering options for lists, markup, and structured text.
Sequential Numbering
Insert zero-padded numbers like 01., 001., custom starting counts, and step increments with variable placeholders.
One-Click Presets
Quickly wrap lines with double quotes, convert to HTML list items, create markdown task checklists, or format SQL values.
Local Browser Processing
Your input is processed directly in your browser and is not uploaded to Pinatool's servers.
Frequently Asked Questions
Common questions about prefixing, numbering sequences, and list wrapping.
How do I number lines with leading zeros (e.g. 01, 02)?
Use the variable {n:01} in your prefix field to pad single-digit numbers with a leading zero (e.g. "01.", "02."). You can use {n:001} for 3-digit padding like "001.", "002.". The quick preset "1. Numbered" configures this automatically.
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 instant formatting.
What happens to blank or whitespace-only lines?
When Skip Blank Lines is enabled, blank lines are left unchanged and are not counted when generating sequential numbers. Unchecking this option applies the prefix and suffix to every line.
Can I start numbering from a number other than 1?
Yes. You can customize the "Start At" value (e.g. start at 100) and the "Increment By" step (e.g. step by 5 or 10) to generate sequence numbers tailored to your needs.
Does this tool send my text or list to a server?
No. All text formatting and numbering operations run locally in your browser. Your input is processed directly in your browser and is not uploaded to Pinatool’s servers.
Explore More Tools
More free browser-based utilities for text cleanup, formatting, and analysis.