textcleanups

Add line numbers

Number every line of a list or document, with the format and starting number you choose.

Options
Format
Pad with

Your text stays in your browser. Nothing is uploaded or saved.

All text tools

Or fix everything at once with the all-in-one text cleaner.

AI-written text

ChatGPT text cleaner
Remove hidden characters, odd spaces and Markdown from AI answers.
Remove em dashes
Replace every — with a comma, period or hyphen.
Remove Markdown
Turn Markdown into plain text: no **, #, links or tables.
AI phrase finder
Highlight overused AI words and phrases.

Lines

Remove line breaks
Turn text broken across many lines back into clean paragraphs.
Remove duplicate lines
Keep the first copy of every line and delete the repeats.
Remove empty lines
Delete blank lines, or cut long gaps down to one.
Sort lines
Sort a list A to Z, Z to A, by length, reversed or shuffled.
Add line numbers
Number every line, your way.
Remove line numbers
Strip numbers and bullets from the start of lines.
Comma separator
Turn a list into comma-separated text, and back.

Spaces and characters

Remove extra spaces
Collapse double spaces, trim lines and replace tabs.
Remove special characters
Strip symbols and keep only letters, numbers and punctuation you choose.
Remove emojis
Delete every emoji, including skin tones, flags and combined emoji.
Remove accents
Turn é into e, ü into u and ß into ss.
Convert smart quotes
Turn curly quotes, long dashes and ellipses into plain text.

Formatting and counting

Case converter
Switch text to sentence case, Title Case, UPPERCASE, camelCase and more.
Find and replace
Replace words or patterns across your text, with regex support.
Strip HTML tags
Turn HTML into clean, readable plain text.
Word counter
Count words, characters, sentences and reading time as you type.
Text diff checker
Compare two texts and see what changed.
Word frequency counter
See which words you use most.
Reverse text
Flip text backwards, by letter, word or line.

How to add line numbers

  1. Paste your text into the first box, one item per line.
  2. Choose a starting number and a format.
  3. Copy the numbered text from the result box.

Options

  • Start at any number, so you can continue a list from where another left off.
  • Skip blank lines keeps empty lines empty and doesn't give them a number. Turn it off to number every line, which is what code reviews and legal line references expect.
  • Pad numbers lines numbers up in a column, either with spaces or with leading zeros, like 01, 02, 03.
  • 1 + tab puts a tab after each number, so the numbers land in their own column when pasted into a spreadsheet.

Common uses

  • Turning a plain list into a numbered list for an email or chat message
  • Adding line references to a transcript, script or contract
  • Numbering steps in instructions or recipes
  • Preparing code snippets for review

Need to undo it? Use remove line numbers.

Questions

Does it work with word processors?

Yes. Paste the result into Word or Google Docs as plain text. Your document will show the numbers as typed text rather than an automatic list.

Can I number lines starting from 0?

Yes. Type 0 in Start at.

Is my text uploaded?

No. Everything runs in your browser and nothing is uploaded or saved.