Urdu Text Compare

Paste the original and the edited version of an Urdu text and see, word by word or letter by letter, what was removed and what was added.

What counts as the same
3 Differences

struck through removed underlined added In the copied report: [−…] removed, [+…] added, ␣ a space, ↵ a line break

Compared on your device. Your texts are never uploaded. Report a problem

Quick answer

How do I compare two Urdu texts?

Paste the earlier version into the Original box and the edited version into the Changed box, then press Compare. The result shows the changed text with removed words struck through and added words underlined, plus a count of words added, removed and unchanged. Options can ignore spacing, Arabic look-alike letters and aerab, and Copy result gives a plain-text report.

  1. Paste the original Put the earlier version in the Original box: the draft you sent, the text before editing, or the source you typed from.
  2. Paste the changed version Put the edited text in the Changed box and press Compare. After that, the result updates by itself whenever either box changes.
  3. Choose what counts as a difference Switch between words and letters, and turn on the options for spacing, Arabic look-alike letters or aerab if those differences do not matter to you.
  4. Read and keep the result Struck-through text was removed and underlined text was added. Copy result or Download .txt saves a plain-text report with the changes marked.

Why ordinary diff tools mislead on Urdu

Most text comparison tools were written for English. They cut text at spaces and compare the pieces character by character. On Urdu that produces two kinds of wrong answer: changes that are reported but cannot be seen, and changes that are real but get lost.

Look-alike letters. Arabic and Urdu share an alphabet but not every code. Arabic ك and Urdu ک are drawn the same at the start and in the middle of a word in the Naskh fonts most apps use, and so are Arabic ي and Urdu ی. Arabic ه stands for two Urdu letters, ہ and ھ. A generic tool marks كتاب and کتاب as different words, and you stare at two identical-looking words trying to find the change.

Aerab. دِل and دل are the same word, one with a zer. Whether that counts as a change depends on the job: it matters when checking poetry, and it is noise when one version was typed with diacritics and the other without.

Invisible characters. Text copied from PDFs and websites often carries zero-width spaces and direction marks. They change nothing on screen, but to a computer the word is different. This tool labels them inside a change, for example ZWSP, so you can see why a word was flagged.

Joined text. In Nastaliq a missing space after a letter that does not join forward, such as ا or و, is almost impossible to see: کیاآپ and کیا آپ look nearly the same. A comparison reports the missing space even when your eyes do not.

Punctuation. English tools treat ہے۔ as one word, so adding a full stop marks the whole word as changed. Here the Urdu full stop ۔, comma ،, question mark ؟ and semicolon ؛ are separate units, and the word stays unchanged.

What each option does

Take this pair of lines. The original has a pesh on the first word, an Arabic kaf and two spaces in a row; the changed version has none of these and adds a full stop.

Original

اُس نے كتاب پڑھی اور سو گیا

Changed

اس نے کتاب پڑھی اور سو گیا۔

With every option off, the tool reports four differences: the first word, the double space, the kaf and the full stop. Each option removes one of them from the result:

Option What it treats as the same Effect on the example
Ignore spacing and line-break differences Any run of spaces, tabs and line breaks, plus spaces at the very start or end and invisible marks such as zero-width spaces The double space no longer counts
Treat Arabic and Urdu look-alike letters as the same ك and ک, ي and ی, and ه with either ہ or ھ The Arabic kaf matches the Urdu one
Ignore aerab Words with and without zabar, zer, pesh, tashdeed, jazm, tanween and khari zabar اُس matches اس

With all three on, only the added full stop is left.

The look-alike option is careful with one pair. Arabic ه may match either Urdu letter, but ہ and ھ stay different from each other, because کہا (said) and کھا (eat) are different words. Options never rewrite anything: the result shows your characters exactly as typed.

Compare words or compare letters

Words is the default. A changed word is shown once struck through and once underlined, and the summary counts words added, removed and unchanged. This reads naturally when you review an edit.

Letters shows the exact letter that changed. Compare تعلییم with تعلیم in letter mode and only the extra ی is struck through, instead of the whole word. A letter keeps its aerab, so a zer added to د shows as د removed and دِ added. Letter mode also shows the space added between کیا and آپ in the joined-text example above.

Checking an editor’s corrections

Suppose you sent an article to an editor and got it back as a WhatsApp message or a new file, with no tracked changes. Paste your draft as the original and the returned text as the changed version. If the lines were re-wrapped, turn on the spacing option so line breaks do not fill the result. What remains is the real editing: a word swapped here, a sentence added there. Spelling fixes, such as مین corrected to میں, are explained in common Urdu spelling mistakes, and punctuation fixes are counted separately in the summary; the Urdu punctuation guide explains the rules editors usually apply. To check a draft before you send it, run it through the Urdu spell checker first.

Comparing an OCR result with a retyped text

When you read a page with Urdu OCR and also have a typed copy of part of it, comparing the two in letter mode shows exactly where the reader went wrong: a dot missed, so پ became ب, or a space lost between two words. Turn on the look-alike option if one of the texts came from a source that uses Arabic letters. Text copied out of a PDF is a different case: it often holds letter shapes and invisible characters, so repair it with Fix Broken Urdu Text before comparing; the guide to why Urdu copied from a PDF looks broken shows what those problems look like.

Frequently asked questions

Why does the tool show a change where both words look exactly the same?
The two words are made of different characters that happen to look alike. The usual causes are an Arabic letter in one text and the Urdu letter in the other (ك and ک, or ي and ی), an invisible character copied from a PDF or website, or aerab in one version only. Turn on the matching option to hide that kind of difference. Invisible characters inside a change are shown as small labels such as ZWSP.
What do the [−…] and [+…] marks in the copied report mean?
The report is the changed text with every difference written inline: [−word] is something that was in the original and was removed, and [+word] is something that was added. A removed or added space is written as ␣ and a line break as ↵, so spacing changes stay visible in plain text. The first line of the report repeats the summary.
How long can the two texts be?
Long texts work well when most of the text is the same, as with an edited chapter, because the shared beginning and end are matched first and only the changed stretch is compared in detail. Two long texts that differ almost everywhere are refused with a message. Compare them a few pages at a time, or use word mode, which has far fewer units than letter mode.
Do the options change my text?
No. The options only decide which differences count. The result always shows the characters exactly as they are in your texts, so a word typed with an Arabic ك still contains that letter. To actually replace Arabic letters, invisible characters or PDF letter shapes, run the text through Fix Broken Urdu Text.
Can I compare Roman Urdu with Urdu script?
Not directly: "kitab" and کتاب share no letters, so every word would show as changed. Convert the Roman Urdu first with Roman Urdu to Urdu, check the conversion, and then compare the two Urdu texts. English words inside Urdu text are compared like any other word.

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