Words to Numbers API

GET

Convert spelled-out numbers into standard numeric digits.

Words to Numbers converts spelled-out number phrases into numeric digits. Pass written words to receive the calculated number, formatted English notation, and total digit counts.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/wordstonumbers?words=seven%20thousand%20six%20hundred%20and%20twenty
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "number": "7620",
    "words": "seven thousand, six hundred twenty",
    "ordinal": "seven thousand, six hundred twentieth",
    "numberOfDigits_numeric": 4,
    "numberOfDigits_words": "four",
    "eachNumber": [
      "seven",
      "six",
      "two",
      "zero"
    ]
  }
}

About the Words to Numbers API

Words to Numbers works by converting words to numbers using a predefined set of rules. It supports a wide range of words and provides the equivalent numbers in a structured format.

What people use it for

Check Amount Extraction
When scanning physical checks or legal agreements, extract spelled-out dollar amounts and convert them into numeric totals for accounting systems.
Voice Order Intake
Food delivery ordering systems convert spoken quantity phrases captured from customer audio into integers to add items to carts.
Survey Form Normalization
To prevent database validation errors, transform written numerical survey responses into standardized digits before saving records.
Invoice Total Verification
Extract written values from scanned invoices and convert them to digits to verify purchase totals against line items.

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Words to Numbers

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Words to Numbers API.

Read the docs
Is it cheap enough to convert spelled-out numbers on every form submission?
Yes. Each request costs 2 credits, giving you 100 conversions every month on the Free plan. On the Starter plan, your monthly allowance covers 100,000 conversions, which works out to about $0.0003 per call or $0.30 per 1,000 requests.
Are the ordinal representation and digit breakdown included on the Free plan?
No. The ordinal wording and the digit array are premium fields available only on paid plans. Free plan responses include the converted numeric value, formatted words, and digit counts. Upgrading to Starter or above unlocks all response fields.
What data does the API return beyond the converted number?
Alongside the numeric representation, the response includes the input words formatted in standard English notation and the total digit count expressed in both digits and words. Paid plans add an ordinal string and an array spelling out each digit.
Can I convert compound phrases representing large numbers?
Yes. You can submit multi-word phrases through the words parameter, and the conversion rules calculate the single unified numeric equivalent.
Does the conversion support non-English number words?
No. The conversion logic expects English words and returns normalized text in standard English notation alongside the numeric output.

Ready to build with Words to Numbers? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs