{"uid":"cap_4h8N5mJ3dWRnCus4-CIQ-","slug":"irantools-persian-digits-converter-7b052be0","name":"IranTools Persian Digits Converter","description":"Persian and Iranian utilities for AI agents, plus general text/Unicode tooling. Jalali (Solar Hijri) calendar conversion, Iranian national ID / SHEBA / bank card / postal code / economic code validation, province and city lookup, official public holidays, Persian text normalization, keyword extraction, sentence splitting, similarity, HTML stripping, RTL fixing, Unicode homoglyph folding, script detection, NFC/NFD normalization, grapheme counting, date description, business-day counting, slugify, FNV-1a hashing, Shannon entropy, format and encoding detection, byte sizes. Pay per call in USDC on Base via x402 - no signup, no API key, no KYC. The same tools are also exposed as MCP tools at /mcp.","url":"https://irantools.johnaio281.workers.dev/api/iran/persian_digits?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string"},"direction":{"type":"string"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_G0TYtvVEnmcX30W262xUL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts Arabic/Latin numerals to Persian (Farsi) digits and optionally adjusts text directionality for Persian/RTL display","exampleAgentPrompt":"Convert all the digits in this text to Persian numerals: 'Invoice 1402/06/31, total: 12500 rials' — and make sure the direction is set to RTL.","exampleUseCases":[{"title":"Farsi invoice number formatting","prompt":"I have an invoice number '20241105-0042' that needs to be displayed in a Persian-language PDF — can you convert all those digits to Persian numerals?"},{"title":"Persian UI localization for mobile app","prompt":"My app shows '375,000 تومان' but the numbers need to be in Persian digits for our Iranian users — please convert '375000' to the correct Farsi numeral format."},{"title":"RTL-safe date display in Farsi","prompt":"Convert the date '1403/08/14' so the digits appear as Persian characters, and set the direction to RTL so it renders correctly in our right-to-left layout."}],"resultDescription":"Returns the input text with Western/Arabic numerals replaced by their Persian (Farsi) Unicode equivalents (۰–۹), optionally with directionality metadata or RTL markers applied. The response is a JSON object containing the transformed text.","failureModes":["Missing required 'text' field returns a validation error","Very large text payloads may be rejected or time out","Invalid 'direction' enum value may be ignored or cause an error","Already-Persian digits in the input are passed through without double-conversion","Network or payment (x402) failures return HTTP 402 or 5xx errors"],"whenToPreferThis":"Use this endpoint when you need to localize numeric content for Persian/Farsi-language applications, documents, or displays and require Unicode-correct ۰–۹ digit substitution. Prefer this over manual regex replacement when you also need RTL direction handling or when working within an Iranian-localization pipeline alongside other IranTools endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:35.825Z","isFirstParty":false,"canonicalSlug":"irantools-persian-digits-converter-7b052be0"}