٠١٢٣ or 0123? Arabic-Indic, Persian and Western Digits Explained
The three digit systems used with Arabic script, where each is used, why computers treat them as different, the ٫ and ٬ separators, and converting text.

٠١٢٣ or 0123? Arabic-Indic, Persian and Western Digits Explained
Ironically, the digits English speakers call "Arabic numerals", 0 to 9, are not the ones most Arabs grew up with. Across Egypt, the Levant, Iraq and the Gulf, the traditional digits are ٠١٢٣٤٥٦٧٨٩. Iran, Afghanistan and Pakistan use a third set. All three are in daily use, and computers treat them as entirely different characters. The Arabic and Eastern Arabic Numerals Converter switches between them in any text.
The three systems
| Value | Western | Arabic-Indic | Persian (Extended) |
|---|---|---|---|
| 0 | 0 | ٠ | ۰ |
| 1 | 1 | ١ | ۱ |
| 2 | 2 | ٢ | ۲ |
| 3 | 3 | ٣ | ۳ |
| 4 | 4 | ٤ | ۴ |
| 5 | 5 | ٥ | ۵ |
| 6 | 6 | ٦ | ۶ |
| 7 | 7 | ٧ | ۷ |
| 8 | 8 | ٨ | ۸ |
| 9 | 9 | ٩ | ۹ |
The Arabic-Indic and Persian sets differ visibly only in 4, 5 and 6, but they are separate Unicode characters (U+0660–0669 and U+06F0–06F9).
Where each is used
- Western digits: the Maghreb (Morocco, Algeria, Tunisia), most online systems, banking apps and many Gulf business documents.
- Arabic-Indic digits: Egypt, Sudan, Saudi Arabia, the Gulf, Iraq, Syria, Jordan and Lebanon on signs, number plates, government forms and printed books.
- Persian digits: Iran, Afghanistan, and Urdu text in Pakistan and India.
Digits run left to right
Even in right-to-left Arabic text, numbers are written with the largest place on the left: ٢٠٢٦ is two thousand and twenty-six. Browsers handle this automatically.
Why conversion matters
- Forms: a phone number typed as ٠٥٥١٢٣٤٥٦٧ fails a check that expects 0551234567.
- Search: a search for "2026" does not find "٢٠٢٦".
- Spreadsheets: Excel and Google Sheets treat Arabic-Indic digits as text, so sums and sorting fail.
- Consistency: printed documents that mix digit sets look careless.
Separators
Formal Arabic typography uses its own decimal separator ٫ (U+066B) and thousands separator ٬ (U+066C): ١٬٢٣٤٫٥٠. Everyday writing often uses a comma for decimals or the Western point and comma. The converter can add the Arabic separators or turn them back into a point and comma.
A worked example
"رقم الفاتورة 2026-1187 بمبلغ ١٢٣٤٫٥٠ ريال، الهاتف ۰۵۵۱۲۳۴۵۶۷"
- To Western digits: "رقم الفاتورة 2026-1187 بمبلغ 1234.50 ريال، الهاتف 0551234567"
- To Arabic-Indic: "رقم الفاتورة ٢٠٢٦-١١٨٧ بمبلغ ١٢٣٤٫٥٠ ريال، الهاتف ٠٥٥١٢٣٤٥٦٧"
Only the digits change; the words and punctuation stay.
For developers
Accept all three sets on input and convert to Western digits before validation and storage. In JavaScript you can map a digit to its value with charCodeAt(0) − 0x0660 for Arabic-Indic and − 0x06F0 for Persian. For display, Intl.NumberFormat with the locale "ar-EG" or "ar-SA" gives Arabic-Indic digits, while "ar-AE" and "ar-MA" give Western digits by default.
Spotting a mix
The counts under the editor show how many Western, Arabic-Indic and Persian digits a text contains. A document that should be in one set but shows two needs a fix.
Typing the digits
On a phone, the Arabic keyboard usually shows Arabic-Indic digits, and the setting for Western digits is under language or region. On Windows, the Arabic layout types Western digits by default, and the digit substitution setting in the regional options decides how they are shown. Knowing where the digits come from helps you stop the mix at the source instead of cleaning it later. When you share a document, tell readers which set you used, especially for codes and account numbers that must be typed again.
Limits
The converter changes digits, not numbers written as words, and it does not change date formats. Your text stays in your browser.



