Persian & Latin digit converter
Turn the digits in a piece of text Persian or Latin, leaving the rest of the text untouched.
Text tools
Codes & data
Check whether an Iranian national code is well formed: one code, or a whole list at a time.
This tool runs entirely inside your browser. No file or text is sent to any server.
The tool checks three things: the code has 10 digits, the digits are not all the same, and the last digit (the check digit) matches the 9 before it.
Persian and Arabic digits are accepted, and spaces and hyphens between the digits are ignored, so “۰۱۲ ۳۴۵ ۶۷۸۹” is 0123456789. Any other character, such as a letter or a dot, counts as an error.
A code with fewer than 10 digits is not valid, but if zeros in front would make it valid, the tool says so next to the reason. It never corrects anything itself.
The tool does not make codes and, for a wrong code, does not say what the right digit would be; it only checks the code you have.
Up to 5000 lines are checked at once. Empty lines are skipped, and the number of each row is the number of your line.
Turn the digits in a piece of text Persian or Latin, leaving the rest of the text untouched.
Text tools
Fix Arabic letters, Persian spacing and stray spaces in one pass.
Text tools