Skip to content
UniKit

Text line numbering

Add line numbers to any text locally: five number styles (1./1)/[1]/1:/tab), custom start number, optional blank-line skipping and right-aligned numbers, with CRLF/LF/CR support.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

CRLF, LF and CR are all recognised; a trailing newline gives one extra blank line.

Numbered text

Plain text processing: the result depends only on the input and options. No network, no uploads.

Enter text to see the numbered lines

What this tool does

  • Number outlines, code snippets or meeting notes so you can refer to "line 3" out loud
  • Continue an existing numbered list from a custom start number such as 101
  • Keep paragraph breaks visible while numbering stays continuous by skipping blank lines

Example

Input

苹果
香蕉
橘子

Output

1	苹果
2	香蕉
3	橘子

Default options: start at 1, tab style, blank lines numbered. The separator is a real TAB character.

Frequently asked questions

Does a trailing newline count as a line?

Yes. Text is split on CRLF, LF and CR, so "a\n" is two lines: the content line plus one blank line, numbered 1 and 2. Enable "Skip blank lines" if you do not want that extra number. Editors show line numbers the same way, so check for a trailing newline before pasting.

How are blank lines handled?

By default every blank line consumes a number. With "Skip blank lines" enabled the blank line stays in place without a number and later numbers keep counting up. Lines containing only spaces or tabs count as blank as well.

Why right-align the numbers?

Once you pass nine lines, numbers of different widths push the text out of alignment. Right-aligning (the default) pads each number with spaces to the width of the largest number, so 9 lines up with 10. Turn it off if you want the raw numbers.

Which number styles are available?

Five: tab (the default), 1. , 1) , [1] and 1: . Numbers are always ASCII digits — no Chinese numerals and no automatic zero padding. For "01" style prefixes, number the lines here first and then zero-pad the number column with a padding tool.

Is my text uploaded?

No. Everything runs in your browser, you can copy the result, and the input is not stored after you close the page.

Keywords:line numberingtxt_xuhaooffline

Related tools