Back to public tools
All tools
Browser utility

Line Numbering

Add line numbers to a list or a block of text. Start at 1 or choose your own starting number, and skip blank lines if you like.

Your inputs stay in your browser.

Paste your text below or import a text file. Choose where the numbers go and how blank lines are handled, then select Number lines. Your numbered text appears below, ready to copy or download. Drafts stay in memory only; refreshing clears them. Processing and exports stay local.

Advanced settings

Additional numbering options

Outline: exact space units, no tabs, at most8levels. Start at level1 and increase at most one level at a time. Child counters start at Starting number; siblings add Step. Leading indentation is retained. Padding applies only to decimal components.

Template replaces placement. Exactly one {n} and {text}; optional {sep}, {line} (original physical line), {level} (outline level). Maximum120characters; no line breaks or literal braces.

Removal uses the chosen style, placement and exact nonempty separator, before adding new numbers. It only touches selected body lines. Similar prose can match; review the preview and removed count. No automatic numbering detection.

Inclusive original line positions1–100,000. Outside-range lines and the skipped header stay unchanged. A range beyond the input numbers no lines. Extended Step accepts nonzero positive or negative integers within±1,000,000,000.

Keep each retained record’s CRLF, CR or LF terminator. Removed blank records lose their own terminator. Otherwise endings become LF, preserving the original final-newline flag.

Three-line preview

First three physical records only, up to16KiB; this does not validate the rest of the input. Number lines processes the full source.

Multiple files

Each chosen file starts a fresh sequence.12files,2MiB each,8MiB input total;5MiB output per file,32MiB combined ZIP;30-second batch limit. Files and results stay in this tab.

0 chosen files.

Start 1, step 1; before placement, blank policy every.

Enter values or try an example, then choose Number lines.

How to use Line Numbering

Paste or import UTF-8 text and choose Number lines. Open Advanced settings for starting number, step, padding, separator, placement, blanks and skipped header. Enable extended numbering for alphabetic, Roman, indentation outlines, restart after blanks, templates, matching-number removal, physical ranges, signed negative steps and preserved original line endings. Closing keeps settings/results; reset extended numbering retains the main text and original options.

Example

For A through Z then AA, choose alphabetic style and start26. Two-space indentation with decimal outlines turns root, child, child, root into1,1.1,1.2,2. Range2–3 numbers only the original second and third records. Blank/header policies count only eligible body lines. Custom templates use formatted number, original physical line and text without evaluating code.

About Line Numbering

All processing/files stay local and in memory; no automatic saving or uploads. Original mode preserves its exact integer and LF behavior. Extended counters use exact integers; alphabetic requires positive values and Roman uses canonical1–3999. Outline indentation uses exact1–8space units, at most8levels, no tabs/skipped levels. Removal is explicit and anchored to the chosen style/placement/literal separator; prose can match, so review actual output. Range boundaries refer to original physical records; outside-range/header records remain unchanged. Three-line preview is partial and bounded, not full validation. Full input≤2MiB/100,000lines, output≤5MiB;8-second single processing deadline. File batches independently restart each sequence and report every error;12files,8MiB input,32MiB combined output/ZIP,30seconds. Original mixed endings are retained per retained record only when selected; removed records lose their own terminator. Complete text/report/ZIP downloads reflect actual output. Clear, import, use-result and Undo retain their original behavior.

Stars and feedback

Loading…

Tool reference #133