How to clean Urdu text
- Paste the text. Copy Urdu from WhatsApp, a PDF, a website or a Word file and paste it into the left box.
- Choose the fixes. The common ones are on already. Turn on diacritic removal or digit conversion only if you want them.
- Check the change list. The list tells you which fixes did something and how many characters they touched.
- Copy the result. Press Copy cleaned text and paste it where you need it. Use "Use as input" to apply a second pass with different settings.
Why pasted Urdu is often "wrong"
Urdu is written in an extended Arabic script, but many keyboards, websites and PDF tools produce the Arabic code points for letters that Urdu writes differently. The result looks fine on screen but breaks search, sorting, spell checking and copy-paste. The most common cases:
| Problem | Wrong (Arabic) | Right (Urdu) | Effect |
|---|---|---|---|
| Yeh | ي (U+064A) or ى (U+0649) | ی (U+06CC) | Searching for a word with ی will not find the Arabic-yeh spelling |
| Kaf | ك (U+0643) | ک (U+06A9) | Same: two spellings that look alike but differ in the computer |
| Heh | ه (U+0647) | ہ (U+06C1) | Optional fix: ه is also used inside do-chashmi ھ, so it is off by default |
| Digits | ٠١٢٣ (Arabic-Indic) | ۰۱۲۳ (Urdu / extended) | Urdu uses the extended set, which looks different for 4, 5 and 6 |
| Punctuation | ? , ; . | ؟ ، ؛ ۔ | The wrong marks face the wrong way in right-to-left text |
What each fix does
- Yeh and kaf. Replaces the Arabic letters with the Urdu ones. Safe for ordinary Urdu text. If you are typing Arabic or Quranic text, turn it off: Arabic needs its own letters.
- Heh. Replaces ه with ہ. Leave it off if your text contains do-chashmi (ھ) written with ه, or Arabic phrases.
- Punctuation. Turns ? , ; and . that come right after an Arabic-script letter into ؟ ، ؛ ۔, removes a space before them and adds one after. Numbers such as 3.5 and English sentences are left alone.
- Spaces. Collapses repeated spaces and tabs, trims line ends and reduces more than one blank line to one.
- Tatweel. Removes the stretching character ـ that some sources use to widen words.
- Diacritics. Removes zabar, zer, pesh, shadda, jazm, khari zabar and other marks. Useful for search and for comparing spellings; keep them for Quranic or poetic text where they carry meaning.
- Invisible characters. Removes zero-width joiners and direction marks. Be careful: ZWNJ is sometimes intended inside a word to stop letters joining, and removing it can change how the word looks.
- Join lines. Merges lines copied from a PDF column into one paragraph.
Which digits should Urdu text use?
Urdu normally uses the extended Arabic-Indic digits ۰۱۲۳۴۵۶۷۸۹ (Unicode U+06F0 to U+06F9), the same set as Persian. Arabic itself uses ٠١٢٣٤٥٦٧٨٩ (U+0660 to U+0669), whose 4, 5 and 6 look different. In practice, Pakistani newspapers, forms and websites often use Western digits 0-9 inside Urdu text, particularly for phone numbers, money and dates. Pick one set and use it consistently; the converter changes all digits in the text.
Why my Urdu looks different on another phone
The letters are the same, but each font draws them differently. Nastaliq fonts (the calligraphic style used for printed Urdu) join and slope letters, while Naskh fonts look more Arabic. A phone without a good Urdu font falls back to a Naskh or generic font. This site shows its Urdu in a bundled Noto Nastaliq Urdu so it looks the same everywhere. To share Urdu as a picture that looks identical on every phone, use Urdu text to image.
Limits
- The tool applies fixed rules. It does not spell-check, translate or fix wrong word order.
- It cannot repair text that was broken into disconnected letters (common when copying from some old PDFs). That text needs re-typing or OCR.
- Roman Urdu to Urdu script conversion is a different problem and is not part of this tool.
- Always read the result once before using it in an official document.
Frequently asked questions
Why does searching for an Urdu word fail even though it looks the same?
Because the text may use Arabic yeh (ي) or kaf (ك), which look like Urdu ی and ک but are different characters. Cleaning the text with the yeh and kaf fix makes both spellings identical.
How do I remove zabar and zer from Urdu text?
Tick "Remove zabar, zer, pesh, shadda and other marks". The base letters stay, only the marks go. Keep them for Quran, naat or poetry where the marks matter.
How do I convert Urdu digits to English digits?
Choose Western digits in the Digits list. All Urdu and Arabic-Indic digits are changed to 0-9, and other text is untouched.
Why is my pasted Urdu in the wrong direction or order?
Right-to-left text mixed with English or numbers can display in a surprising order if direction marks are missing or extra. Try removing invisible direction marks, and paste into a field that supports right-to-left text.
Does the cleaner change the meaning of my text?
No fix changes a word's meaning, but check the heh and diacritic options on Arabic or Quranic text, where they can change the correct spelling.
Is my text sent to a server?
No. The cleaning runs in your browser and the text is not stored or uploaded.
Sources and how we checked
- Unicode Arabic block (U+0600 to U+06FF): code points for yeh U+06CC, kaf U+06A9, heh goal U+06C1, Urdu digits U+06F0 to U+06F9, Urdu punctuation
- Noto Nastaliq Urdu (SIL Open Font Licence): the Urdu typeface used on this site