Tool guide
About this tool.
- Line numbering inserts a generated decimal label and a literal separator before each selected line body. It changes the actual output text, unlike an editor’s visual gutter.
- The sequence begins at Start number and advances by Step only when a line is numbered. Each original body, indentation and line terminator is otherwise retained.
- Prepare numbered plain-text lists or annotate copied lines.
- Start a sequence at a chosen offset or create descending labels.
- Use zero-padded labels for fixed-width identifiers without truncating larger numbers.
- Keep blank spacing lines unnumbered, or insert labels after existing indentation.
Paste one item per physical line or apply a sample.
Set Start number, Step and Minimum digit width. Inspect the negative-number and descending samples if needed.
Choose a literal Separator, then Number or Skip blank lines and Line start or After indentation placement.
Run and inspect numbered/skipped counts and the first-to-last number range. Changing input or settings invalidates the previous result and export.
Copy, insert or save numbered-lines.txt. Empty input and all-blank skipped input are valid. Samples reset all six fields.
- Default: one / two → 1. one / 2. two.
- Start 7, minimum digit width 3, separator "_": alpha / beta → 007_alpha / 008_beta.
- Start 3, step -1: a / b / c → 3. a / 2. b / 1. c.
- Start -2, step 2, width 3: a / b / c → -002. a / 000. b / 002. c.
- Skip blank lines: one / blank / two → 1. one / unchanged blank / 2. two.
- Start, step and every generated label must be safe integers from -9007199254740991 through 9007199254740991. Sequence arithmetic is exact; an out-of-range label rejects the whole result instead of rounding, clamping or exporting a partial list.
- Minimum width counts magnitude digits only, not the minus sign. Zero has no minus sign. Leading zeros in a numeric setting are canonicalized; use the width setting to request output padding.
- Blank lines are numbered by default. Skip recognizes only empty/ASCII-space/tab-only bodies; NBSP and zero-width characters remain content and receive a number.
- Only real physical lines are processed. A final CRLF, CR or LF is preserved and does not create another numbered row. Empty input has zero rows. No body, gap, final newline or terminator spelling is normalized.
- After indentation recognizes leading ASCII spaces/tabs in each current body. It preserves those characters and all trailing spaces verbatim.
- Input is limited to 100,000 UTF-16 units and 10,000 physical lines. Width is limited to 1–20, separator to 1,000 UTF-16 units and output to 1,000,000 UTF-16 units. NUL, unpaired surrogates and CR/LF inside the separator are rejected.
- Untouched samples and VS Code drafts retain raw terminators. User-edited browser textareas normalize endings to LF; the edited value is then the actual input.
- Existing numbers are not detected or replaced. Running numbered output again adds another label. This is not automatic Markdown numbering, a syntax-aware renumberer or escaping for HTML/SQL/shell text.
- The TXT export is the exact UTF-8 result without statistics or an added footer. Large generated output can exceed the input limit if reused in a later run.