Add or Remove Line Numbers

Number lines with digits, letters or Roman numerals, or strip the numbering that's already in your text. The separator, start value, step and zero padding are all configurable.

All tools on this site run entirely in your browser locally. No data is uploaded to any server.

Features:

  • Number Lines: Prefix every line with a number; the editor is rewritten in place.
  • Remove Numbering: Detect and strip common numbering formats, including ones with no separator.
  • Style: Digits (1, 2, 3), lowercase and uppercase letters, and lowercase and uppercase Roman numerals.
  • Separator: Any text after the number, such as . , ), ] or :.
  • Start and Step: Choose the first value and the increment; decimals work, and a negative step counts backwards.
  • Pad to N digits: Add leading zeros, e.g. 001, 002. Numbers only.

Numbering formats it removes:

  • Digits: 1., 1), (1), [1], 01.
  • Letters and Roman numerals: a., A), i., IV., iii)
  • A dot, parenthesis, bracket, colon or just a space works as the separator; full-width variants and trailing spaces are handled too.

FAQ:

  • Q: Do Start, Step and padding work with every numbering style?
    A: No. Those three fields apply only to Numbers; the other styles always start at 1 and increase by 1, and the fields are hidden when you switch away from Numbers. Your separator and style are saved locally in the browser, but Start, Step and padding are not.
  • Q: What happens to blank lines, and can I click Number Lines twice?
    A: Blank lines at the very start and end are trimmed, but empty lines in the middle get a number too. Both actions rewrite the editor in place, so clicking Number Lines twice gives 1. 1. apple, and each click of Remove Numbering strips just the outermost number.
  • Q: Which numbering formats does Remove Numbering recognise?
    A: Digits, single letters and Roman numerals followed by a dot, parenthesis, bracket, colon or even just a space — including wrapped forms such as (1) and [1]. Leading zeros, full-width punctuation and trailing spaces are handled as well.
  • Q: Why did Remove Numbering delete part of a line that wasn't numbered?
    A: The pattern matches any line that starts with a number, a single letter or a Roman numeral, so 2026 report becomes report and A tale becomes tale. Indented lines are normally left alone, since the number has to be the first character, except on the first line where surrounding whitespace is trimmed.
  • Q: What happens after z?
    A: Letters keep going with character-code symbols: lines 27–29 become {, |, } rather than wrapping to aa, ab. Roman numerals have no upper limit.
  • Q: Is there a separate result pane or an undo button?
    A: No. Both actions work on a single editor and overwrite its contents, so there is no result pane to compare against and no undo. Line Wrap under Settings only changes how long lines are displayed, not the text.

Common uses:

  • Numbering lines in notes, outlines and draft documents
  • Turning a column of spreadsheet values into a numbered list
  • Adding line numbers to code or log snippets before sharing
  • Stripping the original numbering from text copied out of a PDF or webpage