Skip to content

persian — Playground

Type a value in Persian, Arabic or Latin digits and pick a mode. Every result comes from @nexload-sdk/persian running in your browser.

Try a sample

Enable JavaScript to change the sample and see the result.

ModeInputFunctions used
IRR / IRTA whole number of rialsparseMoney, formatMoney from @nexload-sdk/persian/money
mobileAn Iranian mobile number in any common formvalidateIranMobile, toE164Mobile, formatIranMobile from @nexload-sdk/persian/mobile
national-codeA 10-digit کد ملیvalidateNationalCode from @nexload-sdk/persian/identity
cardA 16-digit bank card, separators allowedvalidateCardNumber, formatCardNumber, detectBankByCard from @nexload-sdk/persian/bank
shebaA Sheba (IBAN) starting with IRvalidateSheba, formatSheba, detectBankBySheba from @nexload-sdk/persian/bank
jalaliAn ISO date-time with an offsetformatJalali from @nexload-sdk/persian/date, time zone Asia/Tehran
  • Fractional prices are invalid. When a rial amount cannot convert exactly to tomans, the formatter keeps rials: 12501 in IRT shows ۱۲٬۵۰۱ ریال.
  • Invalid identifiers show the SDK’s reason code, for example invalid_checksum. Use the same codes in your own error messages.
  • Try ۰۹۱۲۳۴۵۶۷۸۹ in mobile, ۰۰۸۴۵۷۵۹۴۸ in national-code and IR820540102680020817909002 in sheba.

API reference.