Arabic Text Cleaner

Paste Arabic text copied from a PDF, WhatsApp or Word: see what's hidden in it, and clean it in one click. It never leaves your device.

Made by musaabk.devالعربية

Original text

Hidden in it

ZWJ and ZWNJ are shown but never removed: the first holds emoji together, the second is part of spelling in Persian and Urdu.

Rules

Digits

Result

Questions

What hidden characters does Arabic text pick up?

Direction marks like RLM and LRM, zero-width spaces, the byte order mark, soft hyphens and hard spaces. You can't see them, but a search for the word fails and two copies of the same text compare as different. The tool shows each one as a stamp with its name.

Why can't I search text copied from a PDF?

Some PDFs keep each Arabic letter in the shape it's drawn in, at the start, middle or end of a word. Copying gives those shape characters, which look the same but aren't the ordinary letters, so a search for the word finds nothing. Unicode counts them as compatibility forms of the plain letters, and the tool turns them back with NFKC.

Which rules should I use for a search index?

The For search set also removes tashkeel and tatweel and writes أ إ آ as ا, ى as ي and ة as ه, close to what Apache Lucene's Arabic normalizer does. These change how words are spelled, so use them on the copy you search, not on the text people read.

Why are ZWJ and ZWNJ kept?

ZWJ holds emoji made of several parts together, like a family. ZWNJ is part of spelling in Persian: in می‌خواهم it keeps the two parts of the word apart. Removing either would change the text, so they're shown but never removed.

Will it change English or numbers in my text?

The Arabic rules leave English alone: a comma or question mark becomes ، or ؟ only after an Arabic word, 1,000 keeps its comma, and digits next to an English word, like iPhone 15, are never converted. Converting digits takes their marks along: 12.5 becomes ١٢٫٥.

Do you track the text I paste?

No. It's cleaned inside this browser tab, and it isn't sent or saved anywhere.