Runs in your browser · nothing is uploaded

PDF CleanText & Smart Format

Pull readable text out of a PDF without the line-break wreckage or cut a few pages out into a smaller file.

Choose a PDF Tap to pick from your files · .pdf only
Cleaning options
Load a PDF to start.

PDF.js · pdf-lib · your files never leave this tab

Field guide

How to Fix Messy PDF Text, Remove Broken Formatting, and Prepare Documents for Portals

Copy a paragraph out of a PDF and paste it somewhere else, and it usually arrives wrecked: sentences chopped into short fragments, words split by stray hyphens, page numbers wedged into the middle of a thought, and gaps wide enough to drive a truck through. The text is not corrupt. It is doing exactly what the file told it to do and once you understand why, fixing it stops being guesswork and becomes a short, repeatable checklist.

Why PDF text breaks when you copy it

A PDF is a page-description format, not a document format. It does not store "a paragraph of forty-two words." It stores instructions that place runs of glyphs at specific coordinates on a canvas: this string at x=72, y=684, in this font, at this size. Everything a reader perceives as structure paragraphs, columns, lists, headings is an illusion produced by where the characters happen to sit.

When software extracts text, it walks that list of positioned runs and turns it back into a string. Every visual line becomes its own fragment, because on the page every visual line genuinely was its own drawing instruction. The result reproduces the page's line wrapping rather than the author's sentence structure. Widen the window in your text editor and nothing reflows, because the breaks are now hard characters rather than layout.

The five extraction errors you will see over and over

Almost every messy extraction is some combination of the same handful of problems:

The tool above addresses each of these directly. It reconstructs visual lines from glyph coordinates rather than trusting the file's internal ordering, which keeps columns intact; it rejoins a hyphen only when a letter precedes the break and a lowercase letter follows it, so genuine compound words like "state-of-the-art" survive; it merges a line into the one above only when that line lacks terminal punctuation, so headings and list items stay on their own; and it identifies running heads statistically, by normalizing digits out of the top and bottom lines of every page and dropping any pattern that repeats across most of the document.

How applicant tracking systems and document portals read your file

Applicant tracking systems, grant portals, procurement systems, and university application platforms all do roughly the same thing with an uploaded PDF: they run text extraction, then apply pattern matching to the result. They are looking for dates, job titles, section headings, email addresses, degree names, and keywords. What they match against is not your carefully designed layout it is the flat string that extraction produced.

That distinction explains most of the folklore around "ATS-friendly" documents. A resume laid out in two columns can extract as interleaved nonsense, so the parser sees a job title fused to an unrelated date. Contact details placed in a header or footer sometimes fall outside the main content stream entirely and vanish. Text inside a graphic is invisible, because it is a picture, not text. Icons substituted for the words "email" or "phone" leave the parser with a bare string and no label to attach it to. Unusual fonts with broken character maps extract as mojibake the right shapes on screen, the wrong code points underneath.

The practical move is not to guess which layouts are safe. It is to look at what the parser sees. Run your own document through extraction, read the output as plain text, and check three things: is every section heading present and on its own line, do the dates sit next to the roles they belong to, and did your contact details survive? Anything that arrives garbled in the extracted text will arrive garbled in the portal. Fix it in the source document, export a fresh PDF, and check again.

Preparing a document for upload: a short checklist

Before you submit anything to a portal that has a file size cap or a page limit, work through the same sequence:

Cleaning text for research, notes, and language models

The same problems bite outside job applications. If you are quoting a paper, hard line breaks mean your quotation will not match the source when someone searches for it. If you are feeding documents into a note system, broken paragraphs destroy the sentence-level chunking that search and retrieval depend on. If you are passing text to a language model, hyphen splits fragment words into tokens the model has to reassemble, wasting context and degrading accuracy. Markdown output helps here specifically: preserving bullet lists as list items and separating paragraphs with blank lines gives downstream tools the structural signals that the PDF threw away.

One habit is worth adopting. After cleaning, skim the first and last few hundred words of the output. Extraction problems cluster at document boundaries cover pages, title blocks, appendices, and footnote blocks are where layout gets unusual and where automated cleanup is most likely to guess wrong. Two minutes of reading catches nearly everything.

A note on privacy

Resumes, contracts, medical records, and legal filings are among the most common documents people need to clean, and they are exactly the documents that should not be uploaded to an unknown server. Everything on this page runs locally: the PDF is parsed inside your browser tab by PDF.js, page extraction is performed by pdf-lib in the same tab, and the file is discarded when you close the page. No copy is transmitted, stored, or retained.

Frequently asked questions

Why does copied PDF text break in the middle of every line?

Because each visual line is stored as its own drawing instruction. Copying reproduces the page's wrapping, not the sentence. Merging wrapped lines rebuilds the paragraph by joining any line whose predecessor ended without terminal punctuation.

Why do words arrive with a hyphen stuck inside them?

Justified typesetting splits long words across lines and writes a real hyphen character into the file. Rejoining hyphenated words removes it but only where a lowercase letter follows, so hyphenated compounds are left alone.

Can it read a scanned PDF?

No. A scan holds an image of text, not text. Extraction returns nothing and the tool tells you so instead of showing an empty box. Run OCR first, then clean the result here.

Are my files uploaded anywhere?

No. Parsing happens in your browser. The file is never sent to a server, and it is discarded when the tab closes.

Does the extracted PDF keep its original quality?

Yes. Pages are copied as complete objects, so fonts, vectors, and images survive untouched. Nothing is re-rendered or recompressed.

Is there a file size limit?

Only what your device can hold in memory. Very large files — several hundred pages take longer because every page is parsed individually, and the progress bar shows where it has reached.

About us

PDF CleanText & Smart Format is a single-purpose utility for people who need the words out of a PDF and need them to read like sentences. It was built after one too many afternoons spent manually deleting line breaks from an extracted paper.

What it does

Two things, deliberately. It extracts text and repairs the damage that extraction causes — hyphen splits, hard line breaks, repeated running heads, collapsed whitespace — and it copies a range of pages into a smaller PDF without re-rendering them.

How it is built

One HTML file. PDF parsing uses Mozilla's PDF.js; page copying uses pdf-lib. Both run in your browser, so there is no backend to send documents to and no account to create.

Get in touch

Bug reports and documents that clean up badly are both welcome at hello@example.com. A description of what the output should have looked like is more useful than a screenshot.

Privacy policy

Last updated: 3 August 2026

Your documents

Files you open with this tool are processed entirely inside your browser. They are not uploaded, transmitted, copied, or stored on any server, and no one operating this site can access them. Closing or reloading the page discards the file and any text extracted from it.

Information collected

We do not ask for a name, an email address, or an account. We do not operate analytics that identify you personally. Standard web server logs may record an IP address, browser type, and requested page for security and reliability purposes.

Advertising and cookies

This site displays advertising served by Google. Third-party vendors, including Google, use cookies to serve ads based on your prior visits to this and other websites. Google's use of advertising cookies enables it and its partners to serve ads to you based on your visit to this site and other sites on the internet.

You may opt out of personalised advertising by visiting google.com/settings/ads. You can opt out of third-party vendor cookie use for personalised advertising at aboutads.info/choices. Visitors in the European Economic Area, the United Kingdom, and Switzerland are shown a consent notice before personalised advertising cookies are set, and may change or withdraw that consent at any time.

Advertising is limited to fixed slots above the tool, below the output area, and in the footer. It is never placed inside the tool itself, and never in a position that could be mistaken for a control.

Third-party services

Scripts and fonts are loaded from public content delivery networks, which necessarily receive your IP address in order to respond. These providers operate under their own privacy policies.

Children

This site is not directed at children under 13 and does not knowingly collect information from them.

Changes and contact

Material changes to this policy will be reflected in the date above. Questions can be sent to hello@example.com.

Terms of service

Last updated: 3 August 2026

Using this tool

The tool is provided free of charge for lawful use. By using it you confirm that you hold the rights necessary to extract text from, or copy pages out of, the documents you open, and that doing so does not breach copyright, a confidentiality obligation, or the terms of any system the document came from.

No warranty

Text cleanup relies on heuristics. It will occasionally merge lines that should have stayed apart, keep a hyphen that should have gone, or drop a line it mistook for a running head. Output is provided as is, without warranty of accuracy, completeness, or fitness for a particular purpose. Check anything important before you rely on it, and keep your original file.

Limitation of liability

To the fullest extent permitted by law, the operators of this site are not liable for any loss arising from use of the tool, including lost or altered documents, missed deadlines, or rejected submissions. Because processing happens locally, your original file is never modified — the source document on your device is your backup.

Availability

The tool is offered without any uptime commitment and may change or be withdrawn at any time. It depends on third-party libraries and content delivery networks that are outside our control.

Advertising

The site is supported by advertising. Advertisements are labelled and served by third parties; their presence is not an endorsement, and any dealings with an advertiser are between you and them.

Governing terms

Continued use after a change to these terms constitutes acceptance of the revised version. Questions can be sent to hello@example.com.