Kharabeesh
On-device ع

Text Cleaner (PDF Copy Fixer)

Clean up text copied from PDFs: rejoin broken lines, remove extra spaces and invisible characters, and fix spacing around Arabic and English punctuation, with options for tatweel and tashkeel.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Paste the text you copied from a PDF into the first box.
  2. Turn the cleaning options on or off; the result updates as you go.
  3. Check how many fixes were made, then copy the clean text.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

How does it know a line is broken mid-sentence?

A line is joined to the next one when it does not end with a full stop, question mark, exclamation mark or colon, the next line does not start a list item (such as • or 1.), and the line is not much shorter than the rest (like a heading). Empty lines stay as paragraph breaks. It is a rule of thumb, so review the result.

Does it fix Arabic text that comes out reversed from a PDF?

No. If letters or words come out in the wrong order, that comes from how the file was made and cannot be fixed reliably. What it does: turn Arabic presentation forms back into regular letters and expand stuck Latin ligatures such as the single-character “fi”.

Which invisible characters are removed?

The BOM, zero-width characters, soft hyphens and hidden direction marks. You cannot see them, but they break searching and counting. Joiners inside emoji sequences are kept. If your text is Persian or Urdu and relies on the zero-width non-joiner, turn this option off.

Is removing end-of-line hyphens always right?

Usually. A split word such as “experi-” + “ment” becomes “experiment”. A word with a real hyphen that happens to fall at the end of a line (such as “well-known”) loses its hyphen, so check those.

Is my text saved or sent anywhere?

No. Cleaning happens in your browser and the text is gone when you close the page.

Related tools