Fix Broken Urdu Text

Paste Urdu that came out disjointed, backwards or full of Arabic letters after copying from a PDF or website, and get clean, searchable Unicode Urdu back.

2 Repaired Urdu
Your text stays on your device. Nothing is uploaded. Report a problem

How to use

  1. Paste the broken text Copy the Urdu from your PDF, website or app and paste it into the left box.
  2. Review the fixes The repaired text appears on the right with every changed character shaded green, plus a summary of what was fixed.
  3. Reverse if needed If the words read backwards, the tool says so. Press “Reverse each line” to put them in the right order.
  4. Copy the clean Urdu Copy the result or download it as a .txt file. Turn individual fixes on or off under Options.

Why Urdu breaks when you copy it

Urdu is a joined, right-to-left script. Each letter takes a different shape depending on where it sits in a word: ب looks different at the start, middle and end. Modern software stores only the letter and lets the font choose the shape. Older PDF makers, scanned-document tools and some websites took shortcuts instead. Those shortcuts come back to bite you when you copy text out.

The four problems we see most often are:

  1. Presentation forms. Each letter was saved as its shape, for example “meem, initial form”, using special Unicode characters from the range U+FB50–U+FEFF. It may look fine, but search, spell-check and word counts fail, and some apps show it disjointed.
  2. Visual order. The PDF stored each line from left to right as it appears on screen, so the copied Urdu comes out backwards: ےہ باتک instead of کتاب ہے.
  3. Arabic letters. The text uses Arabic ي، ك and ه where Urdu needs ی، ک, and ہ or ھ. It can look almost right in some fonts and completely wrong in Nastaliq.
  4. Invisible junk. Zero-width spaces, direction marks, byte-order marks and double spaces that break searching and line wrapping.

This tool repairs each problem in a careful order and shows you exactly which characters it changed.

What each repair does

Fix Example before After
Joined letter shapes ﭘﺎﻛﺴﺘﺎﻥ (shape codes) پاکستان
Arabic → Urdu letters يه كتاب یہ کتاب
ه → ہ or ھ مجهے بهت مجھے بہت
Arabic digits ١٩٤٧ ۱۹۴۷
Punctuation ہے . ہے۔
Reversed line ےہ باتک یریم ہی یہ میری کتاب ہے

Joined-letter shapes are converted with a targeted map, not blanket Unicode NFKC normalisation. NFKC would also expand honorifics such as ﷺ into several words and change other symbols you meant to keep. We keep ﷺ, ﷽ and ornate brackets exactly as they are.

Worked example

This is the kind of text you might copy from an older government PDF:

Copied from a PDF

مجهے يه كتاب بهت پسند هے ، اور ميں اسے روز پڑهتا هوں ?

After repair

مجھے یہ کتاب بہت پسند ہے، اور میں اسے روز پڑھتا ہوں؟

Nine letters changed: ي → ی, ك → ک, and every ه resolved by word (مجھے، پڑھتا with ھ; یہ، بہت، ہے، ہوں with ہ). Three punctuation fixes followed: the stray spaces before the comma and the question mark went, and the question mark became ؟.

Common problems and fixes

The text still reads backwards

Click Reverse each line. If only some lines are reversed (common when a PDF mixes columns), paste those lines separately. English words and numbers inside a reversed line are kept in their normal left-to-right order.

Letters look fine but search still fails

That is the classic sign of presentation forms. Make sure Joined letter shapes is on under Options. Afterwards, every changed character shows in green.

Some words have the wrong ہ or ھ

Uncommon words containing do-chashmi ھ default to ہ. Fix them by hand, and let us know the word so we can add it to the list.

The copied text is random English letters

The PDF has no real Urdu text inside, only drawings of letters, which is common with InPage exports. Repair cannot help there. If you have the original InPage file, copy from InPage and use the InPage to Unicode converter instead.

Who uses this tool

  • Researchers and students quoting Urdu from journal articles, gazettes and theses saved as PDF.
  • Journalists lifting quotes from press releases and court documents.
  • Web editors cleaning text pasted from old websites that used Arabic fonts for Urdu.
  • Translators preparing source text for translation memory tools, which need clean Unicode.

Many of them use it alongside other tools: Urdu PDF to Word when they need the whole document rather than a quote, Urdu OCR when the PDF turns out to be a scan with no text inside, and the Urdu word counter to check the length of the cleaned text. The guide why Urdu text copied from a PDF looks broken explains the causes step by step.

Your text stays on your device

Every repair runs in your browser. Nothing is uploaded or stored, so you can safely clean confidential reports, legal documents and unpublished research.

Frequently asked questions

Why does Urdu copied from a PDF look broken?
A PDF records how text looks, not always what it says. Many PDF makers store each letter in its joined shape (initial, middle or final form), store lines in visual right-to-left order, or use Arabic letters instead of Urdu ones. When you copy, you get those shapes and orders back, which breaks searching, editing and sometimes reading.
Will this fix every PDF?
It fixes the most common problems: joined-letter shapes, reversed lines, Arabic letters, invisible characters and spacing. Some PDFs, especially those exported from InPage as images or with custom fonts, contain no real text at all, only shapes. Copying from those gives random Latin letters or nothing. Those need OCR (text recognition) rather than repair.
How does it decide between ہ and ھ?
Arabic text uses one letter ه for both. The tool checks each word against a built-in list of common Urdu words spelled with do-chashmi ھ (بھی، تھا، کچھ، دیکھنا and many more) and uses ہ everywhere else, since gol hay is far more common. Rare words may need a manual touch-up.
Why doesn’t the tool reverse the text automatically?
Reversing correct text would scramble it, and some lines mix Urdu with English or numbers. The tool detects likely reversed text using patterns such as words that start with ے or ں, which never happens in correct Urdu, and asks you to confirm with one click.
Does it change English text in the same document?
No. English words, Western digits and URLs are left exactly as they are. Punctuation is only converted to Urdu forms (۔ ، ؟) when it directly follows an Urdu word.
Is ZWNJ (zero-width non-joiner) removed?
Only where it does nothing. A ZWNJ between two Urdu letters controls joining in compound words, so it is kept. ZWNJs next to spaces, along with zero-width spaces, byte-order marks and direction marks, are removed.
Is my document uploaded?
No. All repairs happen in your browser. Nothing you paste is sent, stored or logged.

Last updated Processed entirely in your browser Report a problem with this tool