Home › Text Tools › Remove Line Numbers

Remove Line Numbers

Paste a numbered list or code copied with line numbers and get clean text back. Numbering like 1., 1), [1], #1, 1.2 or plain editor line numbers is removed from the start of each line, while the rest of the line and your code indentation stay intact.

Last updated:

After the number
Enter your values to see the result.
Advertisement
Advertisement

How to use the Remove Line Numbers

  1. Paste your text or code that has numbers at the start of the lines.
  2. Choose what follows the number: remove all spaces for lists, or keep indentation for code.
  3. Tick the numbering styles to remove; plain numbers are detected automatically.
  4. Check the result and the number range report.
  5. Copy or download the clean text.

What gets removed

Input lineResultPattern
1. Preheat the ovenPreheat the ovenNumber + period
3) Add the eggsAdd the eggsNumber + parenthesis
[4] Smith, J. (2020)Smith, J. (2020)Bracketed number
Step 2: MixMixStep / # / No. prefix
1.2 GoalsGoalsOutline number
 3    return x;   return x;Code line number (code mode keeps indentation)
3.5 cups of flour3.5 cups of flourKept when outline numbers are off; with them on, “3.5” is treated as numbering

Tips

  • For recipes or lists that contain quantities at the start of lines (like “2 eggs”), set plain numbers to Never so only real numbering such as “1.” is removed.
  • Turn off outline numbers if lines start with decimals such as prices or measurements.
  • Letters are off by default because a line can legitimately start with “A.” or “I.”, for example an initial in a name.
  • When you copy code from a web page or PDF with line numbers, check the result in monospace view to confirm the indentation lines up.

Frequently asked questions

How do I remove line numbers from code I copied?

Paste the code, choose “Keep indentation (code)”, and leave plain numbers on Auto. The line numbers and the single space, tab, colon or bar after them are removed together with the gutter of spaces that all lines share, so the code's own indentation is kept.

Will it remove numbers that are part of my text?

Only numbers at the very start of a line in one of the selected styles are removed. Bare numbers without punctuation (like “2024 was a good year”) are removed only when most lines start with a number, which signals real line numbers. You can also set this to Always or Never.

Which numbering styles are supported?

1. 1) 1: 1 - 1 | , bracketed [1] (1) {1} <1>, #1, No. 1, Step 1, Line 1, outline numbers like 1.2.3, and optionally single letters (a), B.) and Roman numerals (iv.). Bullets such as •, - and * can be removed too.

Does it keep blank lines and indentation?

Yes. Blank lines stay, lines without numbers are unchanged and, in code mode, only the gutter shared by all numbered lines is removed. Turn on “Keep spaces before the number” to keep indentation that comes before nested list numbers.

What does the missing numbers report mean?

The tool checks whether the numbers it removed count up by one. If a list jumps from 4 to 6, number 5 is reported as missing, which helps you spot lines lost while copying.

Can I add numbers back later?

Yes, use the Add Line Numbers tool to renumber the cleaned text in any style.

Is my text uploaded?

No. Everything runs in your browser, so your text and code never leave your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.Remove Empty LinesDelete blank and whitespace-only lines, or collapse gaps to one, with before/after line counts.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.Trim Characters from LinesRemove the first or last N characters, or text before/after a marker, on every line.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Sort Lines AlphabeticallySort a list A-Z, Z-A, numerically, naturally or by length, or shuffle it.Case ConverterConvert text to UPPERCASE, lowercase, Title Case, camelCase and more.MLA Format GeneratorBuild an MLA 9 heading, title page layout and Works Cited entries.Lorem Ipsum GeneratorGenerate placeholder text as paragraphs, words or lists, with HTML.Text RepeaterRepeat any text or emoji up to 100,000 times with custom separators.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.Add Prefix and Suffix to LinesAdd text to the start and end of every line: quotes, commas, bullets or SQL lists.Comma SeparatorTurn a column of lines into a comma separated list and back, with any delimiter.Text to Handwriting ConverterTurn typed text into realistic handwriting on notebook paper and save it as PNG or PDF.Japanese Kana ConverterConvert romaji to hiragana or katakana, kana to romaji, and hiragana to katakana instantly.Pinyin Tone ConverterTurn pinyin tone numbers (ni3 hao3) into tone marks (nǐ hǎo), or tone marks back into numbers.Remove Duplicate LinesDelete duplicate lines from any list, ignoring case or spaces, keep first or last, and sort.Random Word GeneratorGenerate random English words by type, length, first letter and syllables, then copy them.List RandomizerShuffle a list into random order, pick random items or split it into fair teams.Email ExtractorPull every unique email address out of text or files, sort, filter by domain and export CSV.URL ExtractorExtract every link from text or HTML, remove duplicates, filter by domain or protocol.Strip HTML TagsRemove HTML tags and get clean plain text with line breaks and decoded entities.Online NotepadPrivate notepad that autosaves notes in your browser, with find, word count and .txt download.Remove PunctuationStrip all or only selected punctuation from text, with smart options for apostrophes and numbers.Text SplitterSplit long text into chunks by characters, words, lines or a delimiter, with numbering and copy.Remove AccentsStrip accents and diacritics from text (é→e, ñ→n, ß→ss, ø→o) instantly, live as you type.Sort NumbersPull numbers out of any text and sort them ascending or descending, with sum, average and median.Thread SplitterSplit long text into numbered X, Threads, Bluesky or Mastodon posts at sentence boundaries.Duplicate Word FinderFind repeated words in your text: doubled words like "the the" and overused words, highlighted.Alternating Caps GeneratorTurn text into aLtErNaTiNg caps, random caps or alternating words, then copy it.Random Paragraph GeneratorGenerate readable random English paragraphs by topic and length for writing and design.Random Sentence GeneratorGenerate random grammatical sentences: simple, compound, complex and questions.Markdown to Plain TextStrip Markdown syntax and keep clean plain text with lists, line breaks and link URLs.SRT to TextTurn SRT or VTT subtitles into a clean transcript with paragraphs, with or without timestamps.Transcript CleanerRemove timestamps, speaker labels and filler words like um and uh, and fix broken line breaks.Extract Numbers from TextPull every number out of text: decimals, negatives and percentages, with sum, average and CSV.Extract Phone NumbersFind phone numbers in any text, normalize them to E.164, remove duplicates and export CSV.Paragraph to Bullet Points ConverterSplit paragraphs into bullet points by sentence or clause, with your choice of bullet style.Compare Two ListsFind items only in list A, only in list B, in both lists, or in either, with copy and sort.DOCX to Text ConverterExtract plain text from Word .docx files, in batch, with list markers, tables and .txt download.English to IPA ConverterConvert English text to IPA phonetic transcription in US or UK accent, with stress marks.Hidden Character DetectorFind and remove zero-width spaces, non-breaking spaces and other invisible Unicode characters.Letter to Number ConverterConvert letters to alphabet numbers (A=1 to Z=26) and back, with ASCII codes and letter sums.Markdown to Word ConverterConvert Markdown to a styled Word .docx file with headings, lists, tables, code and links.Plural GeneratorConvert English nouns from singular to plural and back, irregulars included, one word per line.Remove Text FormattingPaste rich text from Word, Google Docs or the web and get clean plain text instantly.Smart Quotes ConverterConvert curly quotes, dashes and ellipses to straight ASCII, or straight quotes to typographic ones.Text to HTML ConverterTurn plain text into clean HTML: paragraphs, line breaks, links, lists and escaped entities.Text to Word ConverterTurn text or a .txt file into a Word .docx with your font, margins and page size.WhatsApp Text FormatterFormat WhatsApp messages with bold, italic, strikethrough, monospace, lists and quotes, then copy.Word CombinerBlend two or more words into portmanteaus, compound and clipped names for brands and wordplay.Word to HTML ConverterConvert Word .docx files or pasted rich text into clean, semantic HTML with live preview.Word Wrap ToolWrap text at any column width with hard line breaks, indents and prefixes, or unwrap it again.Daily Affirmation GeneratorGet random positive affirmations by theme; save favorites, copy them or make an image card.Business Plan GeneratorFill in a guided form and get a formatted business plan with financial tables, as Word or PDF.Keyword Match Type ConverterTurn a keyword list into broad, "phrase", [exact] and negative match types for PPC ads.Discord Text FormatterFormat Discord messages with bold, spoilers, headers, quotes, lists and code blocks, with live preview.DNA Reverse ComplementGet the reverse, complement or reverse complement of DNA/RNA, FASTA and IUPAC codes supported.Filter Lines Containing TextKeep or remove lines that contain words or match a pattern, with match counts and regex.Focus Reading ConverterBold the first letters of every word for faster, focused reading. Copy as rich text or HTML.Memo GeneratorWrite a business memo in standard To/From/Date/Subject format, then print, copy or save as .docx.PDF Text CleanerFix text copied from a PDF: join broken lines, undo hyphen splits, drop page numbers and headers.Pros and Cons List MakerWeigh a decision with a weighted pros and cons list, a score, a verdict and easy export.Remove Numbers from TextStrip all numbers and digits from text, keep MP3-style words or ordinals, and tidy the spaces.Return Policy GeneratorCreate a return and refund policy for your store as text or HTML, with a refund example.Screenplay FormatterType a script in plain text (Fountain) and get a properly formatted screenplay, page count and PDF.Word ChangerSwap words for synonyms in your text, then click any word to cycle through alternatives.
See all 96 Text Cleaning & Formatting →