Skip to content
Kordu Tools
Text Tools Runs in browser Updated 08 Apr 2026

Add Line Numbers

Add line numbers to text with customisable separator, start number, and zero-padding.

Separator

Result
Loading rating…

How to use Add Line Numbers

  1. Paste your text

    Paste or type the text you want to number into the input box.

  2. Choose a separator

    Select from dot (1. ), colon (1: ), tab, or pipe (1 | ) to control the formatting between the number and the line content.

  3. Set options

    Change the start number if the list continues from a previous block. Enable zero-padding to align numbers into a consistent-width column.

  4. Copy the result

    Numbered text appears instantly in the output box. Click Copy to send it to your clipboard.

Add Line Numbers FAQ

What separators are available?

Four separators: dot (1. text), colon (1: text), tab (1 followed by a tab character), and pipe (1 | text). Tab is useful for code where you want column alignment.

What does zero-padding do?

Zero-padding adds leading zeros so all numbers have the same width. A 100-line file would show lines as 001, 002, 003... instead of 1, 2, 3. This keeps columns aligned in monospace text.

Can I start numbering from a number other than 1?

Yes. Change the 'Start at' number to any integer. Useful when the text is a continuation of a numbered list that started elsewhere.

Does it handle empty lines?

Yes. Empty lines get a number prefix like any other line. The line number is added regardless of line content.

Is my text uploaded or stored?

No. All processing happens in your browser using JavaScript. Your text never leaves your device.

Background

The Kordu Add Line Numbers tool prepends a number to every line in your text. Choose from four separator styles: dot (1. ), colon (1: ), tab (1→), or pipe (1 | ). Set the starting number to any value — useful when numbering a section that continues from a previous block. Enable zero-padding to align numbers to a consistent width so lists stay visually neat.

Common uses: numbering code snippets for documentation and screenshots, adding reference numbers to interview questions or quiz answers, numbering log lines for debugging references, and creating ordered lists from unordered text.

All processing runs client-side in your browser. Your text is never uploaded, stored, or transmitted to any server.