Any script digits to Western digits

When text mixes digits from different keyboards, this tool recognises 23 digit sets and turns them all into Western digits in one pass.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter text or numbers.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

Each Unicode digit set starts at a zero code Z and the next nine digits follow in order. Any character between Z and Z + 9 becomes the digit (code minus Z). The Arabic separators U+066B and U+066C become a point and a comma.

Example

Result: Converted text: رقم 050 و123 و12 و34 و56; Digits converted: 12.

رقم ٠٥٠ و۱۲۳ و१२ و๓๔ و56
رقم 050 و123 و12 و34 و56

Limits and caveats

  • It recognises 23 common sets. Styled mathematical digits and circled symbols are not converted.
  • Non-positional systems such as Chinese or Roman numerals are outside its scope.

Questions about this tool

Which scripts does it recognise?

Eastern Arabic, Persian, NKo, Devanagari, Bengali, Gurmukhi, Gujarati, Odia, Tamil, Telugu, Kannada, Malayalam, Sinhala, Thai, Lao, Tibetan, Burmese, Khmer, Mongolian, Balinese, Ol Chiki, Javanese and fullwidth.

When should I use this instead of a single-script tool?

When text is copied from several sources and mixes, say, Arabic and Persian digits, so one step converts them all.

Are letters or punctuation changed?

No. Only digits and the two Arabic number separators change.