Add Line Numbers

Instantly prefix each line with sequential numbers. Configure start number, padding width, and separator character.

Options

0 = no padding

Input Text

0 lines

Output

0 lines

Enter text and click Add Line Numbers

Live Preview

Enter text to see a preview...
Copied!

Summary

Instantly prefix each line with sequential numbers. Configure start number, padding width, and separator character.

How it works

  1. Paste or type your text into the input box — one item per line.
  2. Set the start number, the zero-pad width, and the separator between the number and the line.
  3. The tool splits your input on line breaks and prefixes each line with the formatted number, entirely in your browser.
  4. Copy the numbered result to your clipboard or download it as a .txt file.

Use cases

  • Add line numbers to source code snippets before sharing in a bug report.
  • Number paragraphs or steps in a document for easier reference.
  • Prepare numbered lists for scripts, outlines, or meeting agendas.
  • Annotate log file excerpts so reviewers can cite specific lines.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu