Home › Text Tools › PDF Text Cleaner

PDF Text Cleaner

Text copied out of a PDF arrives with a line break at the end of every printed line, words split by hyphens, odd ligature characters and stray page numbers and running headers. Paste it here to get clean, flowing paragraphs you can edit, quote or translate.

Last updated:

Fixes to apply
Advertisement
Advertisement

How to use the PDF Text Cleaner

  1. Copy text from your PDF (Ctrl+A or drag-select, then Ctrl+C) and paste it into the left box.
  2. Keep the default fixes or untick any you do not want, such as header removal for a one-page document.
  3. Choose paragraph detection: Smart works for most documents; Blank lines only is safer for poetry, code or tables.
  4. Review the clean text and the list of removed header and footer lines on the right.
  5. Copy or download the cleaned text.

What gets fixed

ProblemAs copied from the PDFAfter cleaning
Hard line wrapsThey offer residents a place to grow food, meet
neighbours and learn practical skills.
They offer residents a place to grow food, meet neighbours and learn practical skills.
Hyphenationa com-
mon feature
a common feature
Ligaturesthe first garden, flexible spacethe first garden, flexible space
Page numbersPage 2 of 3 / – 14 – / xiiremoved
Running headerGREEN CITIES REVIEW – SPRING ISSUE (on every page)removed
Invisible characterssoft hyphens, zero-width spaces, non-breaking spacesremoved or turned into normal spaces
Lists• fresh vegetables
• shared tools
kept as separate lines

Tips for copying text out of a PDF

  • Two-column layouts: select one column at a time. Selecting across both columns makes many readers interleave lines from the left and right columns, which no cleaner can fully untangle.
  • Tables and code: switch paragraph detection to Blank lines only, or untick Join hard-wrapped lines, so rows and code lines are not merged.
  • Footnotes: footnote text usually lands at the bottom of each page's text. Remove it by hand, or tick Remove citation marks to drop bracketed reference numbers such as [12] from the main text.
  • Whole documents: to extract every page at once, use PDF to Text first, then paste the result here.

Why PDF text behaves this way

PDF was designed to reproduce a printed page exactly. Inside the file, text is a series of glyphs placed at coordinates, with no record of where paragraphs start or which hyphens were added by the typesetter. Copy and paste therefore recreates lines from positions and guesses at spaces. That is also why ligatures, soft hyphens and headers that repeat on each page end up in your clipboard. Cleaning reverses the most common of these effects with rules that look at line lengths, punctuation and repetition.

Frequently asked questions

Why does text copied from a PDF have line breaks everywhere?

A PDF stores text as positioned lines on a page, not as flowing paragraphs. When you copy it, most PDF readers add a line break at the end of each printed line, so the text keeps the page's column width. This tool joins those lines back together and only keeps breaks where a paragraph really ends.

How does it know where a paragraph ends?

Blank lines always end a paragraph. In Smart mode, a line that ends with a full stop, question mark, exclamation mark or colon and is clearly shorter than a typical line is also treated as the last line of a paragraph, because printed paragraphs usually end before the right margin. Short headings and bullet or numbered list items are kept on their own lines.

Will it break real hyphenated words?

A hyphen at the end of a line is removed only when the next line starts with a lowercase letter, which is how word-division hyphens appear (com- mon becomes common). Compounds starting with self, well, half and cross keep their hyphen, and hyphens between numbers such as 1990-1995 stay. Check unusual compounds, since a PDF cannot tell the two kinds of hyphen apart.

What are ligatures and why do they appear?

Ligatures are single characters that combine letters, such as fi, fl and ff. Typesetting software uses them to look better in print, but when copied they can show up as one odd character or break search and spell-check. The tool replaces them with the normal letters fi, fl, ff, ffi and ffl.

How are headers and footers detected?

Running headers and footers repeat on every page, often with a changing page number. The tool looks for short lines that appear at least three times (you can change the threshold), treating digits as equal, and removes them. The removed lines are listed so you can check that nothing important was dropped.

Does this work with scanned PDFs?

Only if the PDF already contains selectable text. If you cannot select words in your PDF reader, the pages are images; run them through an OCR tool such as Image to Text first, then clean the result here.

Is my text uploaded?

No. All cleaning happens in your browser with JavaScript. The text is not sent anywhere or stored; only your option settings are remembered on 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

Remove Line BreaksStrip line breaks and extra spaces, keep paragraphs if you want.Remove Extra SpacesClean up double spaces, tabs, blank lines, non-breaking and invisible spaces in one click.PDF to Text ConverterExtract the text from any PDF page by page, then copy it or save it as a TXT file.Find and Replace TextFind and replace words or regex patterns in any text, with match highlighting and undo.Online Word ProcessorFree browser word processor with headings, lists, tables and images. Autosaves; export DOCX or PDF.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.Add Line NumbersNumber every line of your text with custom start, step, padding and separator, or remove numbers.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.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 Empty LinesDelete blank and whitespace-only lines, or collapse gaps to one, with before/after line counts.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.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.Words That End WithFind English words ending in any letters or suffix, filtered by length and sorted by score.Annotated Bibliography GeneratorBuild an APA or MLA annotated bibliography with hanging indents and download it as DOCX.EPUB to Text ConverterExtract plain text from EPUB e-books, pick chapters, count words and download a TXT file.Extract Dates from TextFind every date in text, in any common format, and convert them all to one format you choose.Extract Text Between DelimitersPull out every piece of text between brackets, quotes, HTML tags or your own start and end markers.Recipe Shopping List GeneratorPaste several recipes and get one combined grocery list with merged amounts, by store section.
See all 96 Text Cleaning & Formatting →