Tool · Free

٠١٢٣ to 0123, and back again.

Paste a price, a phone number or a whole message. Pick the digits you want and copy the result. Arabic-Indic and Persian digits both convert, letters and punctuation stay exactly as they were, and nothing you paste leaves your browser.

Updated 25 November 2026Sources checked 25 November 2026Reviewed by Eng. Hasan Kassas

Convert the digits to
Separators between two digits

Type or paste any text with numbers in it. Only the digits change; letters and punctuation stay as they are.

How the converter works

Arabic-Indic digits are not a font. ٠ to ٩ are ten separate Unicode characters, U+0660 to U+0669, and the digits Persian keyboards type, ۰ to ۹, are ten more, U+06F0 to U+06F9. Their values match 0 to 9, but software that only understands 0 to 9 treats them like letters: a price will not add up, a search for 13 will not find ١٣, and a sign-up form may reject a perfectly good phone number.

The converter swaps each digit for its partner by code point and leaves every other character alone. Converting to Western reads both the Arabic-Indic and the Persian sets. Converting to Arabic-Indic writes ٠ to ٩, the digits that CLDR, the Unicode locale data that browsers use, lists for the numbering system it calls arab; Persian ۴, ۵ and ۶ come out as ٤, ٥ and ٦.

Separators change only between two digits. With the box ticked, 1,250.50 becomes ١٬٢٥٠٫٥٠, with the Arabic thousands separator (U+066C) and the Arabic decimal separator (U+066B), and the same works in reverse. A comma or full stop at the end of a sentence is not between two digits, so it stays where it is. Untick the box to leave separators alone, for example in a list such as 1,2,3.

Side by side

The ten digits in each set

WesternArabic-IndicPersianCode points
0٠۰U+0660 · U+06F0
1١۱U+0661 · U+06F1
2٢۲U+0662 · U+06F2
3٣۳U+0663 · U+06F3
4٤۴U+0664 · U+06F4
5٥۵U+0665 · U+06F5
6٦۶U+0666 · U+06F6
7٧۷U+0667 · U+06F7
8٨۸U+0668 · U+06F8
9٩۹U+0669 · U+06F9
Where it helps

When mixed digits cause trouble

  • Prices and amounts. Totals, sorting and comparisons need 0 to 9. Our Syrian pound converter reads every digit set for the same reason.
  • Phone numbers. Many people in Syria type ٠٩٣٣ into sign-up forms. The mobile number checker accepts it; a form that does not turns real customers away.
  • Search. A listing that says ١٣ and a query that says 13 only meet if one side is converted first. See Arabic search normalization.
  • Spreadsheets and imports. A column copied from an Arabic document can hold digits that your spreadsheet or database does not read as numbers. Convert it before you import.
Tested code

The code this page runs

The converter above calls these two functions. Copy them into your own form handler or import script; they have no dependencies:

// Convert the digits in any text between Western (0-9) and Arabic-Indic (٠-٩), leaving everything else alone.
// Arabic-Indic digits are U+0660-U+0669. Persian keyboards type the Extended Arabic-Indic set, U+06F0-U+06F9.
// Separators change only between two digits, so commas and full stops in sentences stay as they are:
// the Arabic decimal separator ٫ (U+066B) <-> "." and the Arabic thousands separator ٬ (U+066C) <-> ",".
const ARABIC_ZERO = 0x0660, PERSIAN_ZERO = 0x06f0;

function toWesternDigits(text, separators = true) {
  let s = String(text)
    .replace(/[٠-٩]/g, (d) => String(d.charCodeAt(0) - ARABIC_ZERO))
    .replace(/[۰-۹]/g, (d) => String(d.charCodeAt(0) - PERSIAN_ZERO));
  if (separators) s = s.replace(/([0-9])([٫٬])(?=[0-9])/g, (m, d, sep) => d + (sep === "٫" ? "." : ","));
  return s;
}

function toArabicIndicDigits(text, separators = true) {
  let s = toWesternDigits(text, false); // Persian digits become Arabic-Indic too
  if (separators) s = s.replace(/([0-9])([.,])(?=[0-9])/g, (m, d, sep) => d + (sep === "." ? "٫" : "٬"));
  return s.replace(/[0-9]/g, (d) => String.fromCharCode(ARABIC_ZERO + Number(d)));
}

toWesternDigits("السعر ١٬٢٥٠٫٥٠");   // "السعر 1,250.50"
toArabicIndicDigits("0933 123 456"); // "٠٩٣٣ ١٢٣ ٤٥٦"

20 test cases pass before we publish: both digit sets, Persian 4, 5 and 6, separators inside numbers but not at the end of a sentence, the Arabic comma, the switch that leaves separators alone, a round trip, and agreement in both directions with the browser's own Intl formatter for ar-SY with Arabic digits.

Limits

Before you rely on it

  • It changes digits only. Numbers written as words, such as «ألف» or «مئة», stay as words.
  • It does not check the number itself. A converted phone number can still be wrong; the mobile number checker tells you whether it is a valid Syrian number.
  • Groups can look reversed on screen. In a left-to-right line, Arabic-Indic digit groups separated by spaces may be drawn in reverse order, although the text you copy is in the right order. Our glossary explains why this happens.
  • A separator between two digits is read as a number separator. 1,5 becomes ١٬٥, a thousands separator. If your text uses a comma as the decimal mark, untick the box.
FAQ

Common questions

Paste the text into the box above and keep «0123 (Western)» selected. Every ٠ to ٩, and every Persian ۰ to ۹, becomes 0 to 9, and the letters stay as they are.

Sources

Where these facts come from

  1. Arabic block chart (U+0600 to U+06FF): Arabic-Indic and Extended Arabic-Indic digits, Arabic separatorsUnicode Consortium · accessed 25 Nov 2026
  2. CLDR numbering systems: arab (٠-٩), arabext (۰-۹), latn (0-9)Unicode CLDR, GitHub · accessed 25 Nov 2026
  3. Intl.NumberFormat() constructor (numberingSystem option)MDN Web Docs · accessed 25 Nov 2026

Checked 25 November 2026. The functions behind this page were tested with Node 24 against its built-in Intl formatter.

Digits coming in every shape?

We build Arabic-first apps that accept every digit set and store one. Tell us where yours trips up.