Urdu Text Fixer — Unicode Cleaner

Some Urdu text looks fine and behaves badly: it will not search, will not sort, breaks word counts and pastes oddly. The cause is almost always wrong characters hiding under right-looking shapes. Paste the text, choose your repairs, and get a clean copy — with a report of exactly what was changed.

Fix your text

In short

The classic faults: علي كريم typed with Arabic letters becomes علی کریم; stretched پاکســتان becomes پاکستان; vowel-marked اَلسَّلَامُ can be cleaned to السلام. Same words — correct characters.

The invisible faults, one by one

Urdu and Arabic share a script and most of an alphabet, which is precisely the trap: several letters exist in both languages as different characters that draw the same shape. A keyboard set to Arabic happily produces ي (yeh, U+064A) where Urdu wants ی (U+06CC), ك where Urdu wants ک, and ه where Urdu wants ہ. On paper the sentence is perfect. In a computer it is a forgery — the words will not match the same words typed properly, so find-and-replace misses them, databases store them as different strings, and Google may index the page under spellings nobody searches for. Whole websites have been built with Arabic codepoints throughout, their owners wondering why their Urdu content underperforms in search.

The second family of faults is presentational. Tatweel (ـ) stretches joins for justified columns and calligraphy; presentation-form codepoints encode letter shapes from legacy systems; both are meaningless in plain text and poison word counts (a stretched word counts its tatweels as characters) and searches alike. The third family is the vowel marks — zabar, zer, pesh, tanween and their relatives. In the Quran and in teaching materials they are sacred and essential respectively; in a paragraph scraped from a website they are usually noise, doubling the apparent character count and making every word unique to a search engine. This tool puts each repair behind its own switch because the right cleaning depends on the text — a news paragraph and a Quranic quotation must not be treated the same way, and any tool that silently strips aerab from everything is a hazard.

Digits deserve a word of their own. Urdu text mixes three sets: Western (123), Arabic-Indic (١٢٣) and Urdu's own Extended Arabic-Indic (۱۲۳). They are not interchangeable visually — the Arabic ٤ and ٦ differ from the Urdu ۴ and ۶ — and a document that mixes sets looks unprofessional and confuses parsers. The digit option unifies Arabic-Indic digits into the Urdu set.

Try the examples

BeforeRepair appliedAfter
ﭘﺎﮐﺴﺘﺎﻥPresentation forms decomposedپاکستان
علي كريمArabic yeh/kaf → Urduعلی کریم
محبهArabic heh → Urdu ہمحبہ
پاکســتانTatweel removedپاکستان
اَلسَّلَامُDiacritics removed (option)السلام
١٢٣Digits converted (option)۱۲۳

Every row of that table was produced by this tool's own code during its construction and checked character by character — paste any "before" text in and you will get the "after" text out, provided the matching option is switched on.

How to use this fixer

  1. Paste the suspect text into the first box.
  2. Review the repair options. The four defaults (presentation forms, yeh/kaf, heh, tatweel) are safe for almost all ordinary text; the last three are deliberate choices — read their notes.
  3. Press Fix the text.
  4. Read the change report (it counts every repair), then copy the cleaned text from the second box.

Privacy: fixing happens entirely in your browser; your text is never uploaded. Caution: never run the diacritics option on Quranic text, poetry where pronunciation marks matter, or learning material — those marks are content, not noise.

Frequently asked questions

Why does Urdu copied from some websites not search properly?

Because it often contains Arabic codepoints that merely look like the Urdu letters. Arabic yeh (ي, U+064A) and Urdu yeh (ی, U+06CC) render almost identically, as do Arabic kaf (ك) and Urdu kaf (ک), and Arabic heh (ه) and Urdu heh (ہ). To a search engine or a database they are completely different characters, so a search for the Urdu spelling finds nothing in a document written with the Arabic ones. This fixer replaces the Arabic codepoints with the Urdu ones throughout.

What is tatweel and should I remove it?

Tatweel (ـ, U+0640, also called kashida) is a stretching character used in calligraphy and justified Arabic text to elongate the join between letters — پاکســتان instead of پاکستان. It carries no meaning, breaks word searches and word counts, and almost never belongs in ordinary Urdu text. Remove it unless you are deliberately reproducing a calligraphic layout.

Should I remove diacritics (aerab)?

It depends on the text. Vowel marks (zabar, zer, pesh and friends) are essential in the Quran, in children's learning material and in poetry where pronunciation matters — removing them there destroys information. In ordinary prose copied from the web they are usually accidental or decorative, and stripping them makes the text search and sort like normal Urdu. That is why it is an option here, off by default, rather than something the tool does silently.

What is the difference between Arabic-Indic and Urdu digits?

Three digit sets circulate in Urdu text: Western digits (123), Arabic-Indic digits (١٢٣, U+0660–U+0669) common in Arabic text, and the Extended Arabic-Indic digits (۱۲۳, U+06F0–U+06F9) used in Urdu and Persian. The four and six differ visibly between the sets (٤ vs ۴, ٦ vs ۶). The fixer can convert Arabic-Indic digits to the Urdu set so a document uses one consistent set.

Can this tool fix spelling mistakes too?

No — it repairs character encoding, not language. It will make a misspelled word a correctly-encoded misspelled word. What it guarantees is that every character is the proper Urdu codepoint, so spell-checkers, search and word counters can do their jobs on the text afterwards.

Related tools