Add or Remove Line Numbers

Add or Remove Line Numbers

Add sequential line numbers or remove matching numbered prefixes. Choose a starting number, separator, and whether blank lines receive numbers.

Input and results are processed in your browser. This tool does not send or save their contents to a server. Shared site advertising, visitor analytics, and aggregate tool-use measurement may operate separately.

Comments & questions

Add or Remove Line Numbers

Number a text list using a dot, colon, or tab separator. Removal targets only leading numeric prefixes that match your selected format.

Key features

  • Choose a starting integer from 0 to 1,000,000,000.
  • Use a dot and space, colon and space, or tab after the number.
  • Skip blank lines or number them, and remove matching prefixes.

How to use

  1. Enter one item per line and choose add or remove.
  2. Select the separator; for addition, also choose the start and blank-line behavior.
  3. Run, review the numbered or cleaned text, and copy it.

Use cases

  • Assign reference numbers for text review
  • Extract text from a copied numbered list
  • Number tasks while keeping spacing between groups

Frequently asked questions

Does removal delete every leading number?

No. The leading digits must be followed by the selected separator. Dot mode removes prefixes such as 1. followed by one space, while leaving dates such as 2026-09-20 intact.

Is original indentation preserved?

Numbers are placed before each original line, so indentation remains after the prefix. Removing the same format returns the original line contents.

Do skipped blank lines consume numbers?

No. Whitespace-only lines are kept unchanged and do not increment the number. Number-blank-lines mode includes them in the sequence.

Does a final newline get an extra number?

A single terminal newline is not counted as another item. Actual blank lines are handled by your setting, and line endings become LF.

Privacy

Input and results are processed in your browser. This tool does not send or save their contents to a server. Shared site advertising, visitor analytics, and aggregate tool-use measurement may operate separately.

Related Tools

Sort LinesFind & ReplaceReverse TextDOCX Style AuditorCitation ManagerDocument Search IndexSigned PDF InspectorPDF/A Archival PreflightPrint Preflight AuditorSearchable Scan PDF MakerPublication Accessibility AuditorResearch Evidence MatrixPDF Form DesignerPDF Annotation StudioPDF Object InspectorPDF Outline EditorEPUB Authoring WorkbenchDocument Version ComparatorBooklet Imposition DesignerSensitive Text RedactorHanja Reading WorkbenchGrammar Production LabDialogue Script EditorBook Index BuilderBilingual QA CheckerText Diagram EditorANSI Art StudioEmail Thread ExplorerPDF Redaction StudioRich Text SanitizerFixed Width Record DesignerPresentation Rehearsal StudioText Tokenization LabThree Way Text MergeKorean & English Braille ConverterText to SpeechTyping speed testKorean Text Pattern ReviewKorean Spelling QuizFont Preview and ComparisonHTML to MarkdownMojibake RepairRoman Numeral ConverterHangul Jamo ConverterKorean Initial ConsonantsNumber to Korean WordsMorse Code ConverterROT13 & Caesar ConverterURL Slug GeneratorHTML Tag RemoverEmoji CollectionCharacter CounterUnit ConverterFile Size ConverterColor Code ConverterText DiffPDF Merge/SplitBusiness Day CalculatoriCalendar Rule LabvCard Address Book EditorJPG to PDFKorean Name RomanizerOrganize PDF PagesFancy Font GeneratorContrast CheckerColor Palette GeneratorPDF to JPGLorem Ipsum GeneratorText Template WorkbenchKorean-English Typo ConverterText CleanerOnline NotepadWord Cloud GeneratorPDF UnlockEnglish Address ConverterPDF Compressor
Explore all Text/Convert tools →Image/Media →Life/Fun →Dev Tools →