User Rating 0.0
Total Usage 0 times

Clean and normalize Unicode numerals for data processing.

Input Text (Arabic/Persian)
Output (Western ASCII)
Is this tool helpful?

Your feedback helps us improve.

About

Data inconsistency is a critical risk in globalized applications. Systems built for Western Arabic numerals (0-9) often fail to parse Eastern Arabic (Mashriq) or Persian (Farsi) digits, leading to calculation errors, broken Excel formulas, and database corruption. This tool eliminates that risk by mapping Unicode specific digit ranges to their ASCII equivalents.

Unlike simple find-and-replace scripts, this engine handles both standard Arabic-Indic digits (U+0660 range) and the Extended Arabic-Indic digits used in Iran, Afghanistan, and Pakistan (U+06F0 range). It preserves non-numeric text, ensuring that labels, names, and context remain intact while strictly normalizing the numerical data for processing.

arabic numerals persian digits digit converter excel cleaner unicode normalizer

Formulas

The conversion follows a strict bijective mapping function f where the input character c is mapped to the set of Integers Z:

f(c) =
{
c 0x0660 if c [٠ ... ٩]c 0x06F0 if c [۰ ... ۹]

Where 0x0660 is the Unicode offset for the Arabic Zero, and 0x06F0 is the offset for the Persian Zero. This logic ensures O(n) complexity.

Reference Data

ValueWestern (ASCII)Arabic (Mashriq)Persian (Farsi/Urdu)
Zero0٠۰
One1١۱
Two2٢۲
Three3٣۳
Four4٤۴
Five5٥۵
Six6٦۶
Seven7٧۷
Eight8٨۸
Nine9٩۹

Frequently Asked Questions

Excel and most programming languages (Python, JS) interpret Eastern Arabic numerals as text characters, not numbers. They have different Unicode values. This tool converts them to ASCII digits (0-9) which are recognized mathematically.
By default, this tool converts digits only. However, if you enable "Normalize Separators", it will also convert the Arabic Decimal Separator (٫) to a dot (.) and the Thousands Separator (٬) to a comma (,) to make the string fully compatible with Western financial software.
No. The conversion logic is written in pure JavaScript and runs entirely in your browser. Your data never leaves your device.
Yes. The algorithm uses Regex to target only the specific Unicode ranges for digits. Letters, spaces, and punctuation remain untouched.