LazyTools

🔒 Every tool runs in your browser, the files and values you enter are never uploaded to any server. How it works

📋 Line Tools (Number, Prefix, Suffix, Pad)

Operate on every line at once, number them, add a prefix or suffix, or pad them to a fixed width.

Rate this tool:
Anonymous, no account, no identifier

How the line tools (number, prefix, suffix, pad) works

Choose an operation and it is applied to every line: “Number lines” prepends an incrementing, right-aligned number from your chosen start; “Add prefix/suffix” wraps each line with the text you enter; and the pad options align every line to a fixed width. Handy for building lists, code, and aligned columns. Line numbers are right-aligned to the width of the largest number so digits stay in a tidy column; padding measures width in characters and never truncates a line that is already longer than the target.

Several small per-line transforms bundled into one deterministic page, the kind of bulk text surgery that is tedious to do by hand across hundreds of lines.

Frequently asked questions

How do I number a list of lines?

Choose “Number lines” and set the starting number in the value box. Each line gets a right-aligned number and a period, so the list stays neatly aligned even into the hundreds.

How do I add the same text to every line?

Choose “Add prefix” or “Add suffix” and type the text in the value box, for example a “- ” prefix to make a bullet list, or a “,” suffix to build a comma-ended list.

What does padding do?

It makes every line the same width by adding spaces, either on the right (left-aligned) or the left (right-aligned), useful for aligning columns in monospace text.

Does it change blank lines?

Blank lines are treated like any other line. They get numbered or padded too, which keeps the line count in sync with your original.

Can I start numbering from a number other than 1?

Yes, whatever you type in the value box is the first line’s number, and each line increments by one from there. Enter 0 to start at zero, or 100 to start at one hundred.

Does padding cut off long lines?

No, padding only adds spaces to reach the target width. Lines already longer than the width are left as they are, so no content is lost.

How do I turn a list into a bulleted list?

Choose "Add prefix" and enter "- " (dash space) as the value, so every line gains a leading bullet. Use "Add suffix" instead to append the same text, such as a trailing comma to build a comma-ended list.

Does numbering keep the numbers aligned?

Yes, numbers are right-aligned to the width of the largest one, so 1 through 100 line up in a tidy column instead of shifting left as the digit count grows from one to two to three places.

Is my text uploaded?

No, every operation runs in your browser.

Related text tools