Skip to content
All tools
English

Normalize Arabic text

Make أحمد, احمد and إحمد the same word, so search, de-duplication and matching just work.

Your files never leave your device

Type, paste or drop a .txt file. Everything stays on this device.

Words
0
Characters
0
Without spaces
0
Lines
0
Sentences
0
Reading time
0
Rules

How to use it

  1. Paste your text

    Type, paste, or drop a .txt file into the editor. Long documents are fine.

  2. Choose the rules and normalize

    The safe rules are on by default. Taa marbuta and hamza seats change spelling more, so they are opt-in.

  3. Copy or download

    Copy the result, download it as a .txt file, or press Undo to go back a step.

Why the same Arabic word is written many ways

People type the same word with or without hamza (أحمد / احمد), with alef maqsura or yaa at the end (مستشفى / مستشفي, a habit in Egypt), with taa marbuta or haa (مدرسة / مدرسه), and with different hamza seats (مسؤول / مسئول). Text from Persian or Urdu keyboards uses look-alike letters (ی ک) that are different Unicode characters from Arabic ي ك. To a computer, every variant is a different word.

The rules

  • Alef forms (on): أ إ آ ٱ become ا. This is the standard first step in Arabic search engines.
  • Alef maqsura (on): ى becomes ي.
  • Persian/Urdu letters (on): ی ے become ي, ک becomes ك, ہ ھ become ه, ۀ becomes ة.
  • Tashkeel and tatweel (on): diacritics and the stretching character are removed, the same as remove tashkeel.
  • Taa marbuta (off): ة becomes ه. It merges مدرسة and مدرسه but also changes correct spelling, so use it for matching, not for publishing.
  • Hamza seats (off): ؤ becomes و and ئ becomes ي.

When to use it

Normalise a copy of your data for matching: before removing duplicate names, comparing two lists, building a search index or cleaning survey answers. Keep the original text for anything people will read, because normalisation removes correct hamzas and vowels. Need the digits in one style too? Convert Arabic numbers.

Frequently asked questions

Is normalised text correct Arabic?
Not always. Removing hamza or turning ة into ه produces spelling that is wrong for publishing. Normalisation is for computers: search, matching and de-duplication.
Which rules do search engines use?
Most Arabic search systems at least unify alef forms, alef maqsura and remove tashkeel and tatweel, which are the defaults here. Lucene's Arabic normaliser, for example, also maps ة to ه.
Will it touch English or numbers?
No. Only the Arabic and Persian letters listed above are changed.