Convert Written Words to Digits Online

Transform spelled-out numbers into numeric digits. Parse natural English number expressions into integers instantly.

0

Examples:

  • forty-two → 42
  • one hundred and five → 105
  • two million three hundred thousand → 2,300,000
  • negative fifty → -50

Why Convert Words to Numbers?

While converting numbers to words is common for formal writing, the reverse conversion is equally important for data processing, voice recognition systems, and natural language processing (NLP) applications. This free online words-to-number converter parses English number expressions instantly.

Common Use Cases

Voice Recognition Data Processing

Voice assistants and speech-to-text systems often output numbers as words. When processing voice commands for calculations, form filling, or database entry, converting these spoken numbers to digits is essential for accurate data handling.

Document Parsing

Legal documents, contracts, and formal letters often contain numbers spelled out in words. When digitizing or analyzing these documents, converting written numbers to digits enables mathematical operations and data analysis.

Natural Language Processing

NLP applications often need to extract numerical data from text. Understanding written numbers allows chatbots, search engines, and AI systems to process quantities mentioned in natural language.

Data Entry Validation

When users input numbers in varied formats, normalizing written numbers to digits ensures consistent data storage and processing across systems.

Supported Formats

  • Basic numbers: one through nineteen
  • Tens: twenty, thirty, forty, etc.
  • Compound numbers: twenty-one, fifty-five (with or without hyphens)
  • Large numbers: thousand, million, billion, trillion
  • Combinations: "one hundred and twenty-three"
  • Negative numbers: "negative fifty" or "minus fifty"

How the Converter Works

Our algorithm processes English number words using these rules:

  • Tokenizes the input into individual words
  • Ignores connecting words like "and" and articles
  • Accumulates values for consecutive number words
  • Multiplies by scale words (hundred, thousand, million)
  • Handles compound numbers with hyphens

Parsing Rules

The converter follows standard English number conventions:

  • "Hundred" multiplies the current value and continues accumulating.
  • "Thousand/Million/Billion" multiplies and adds to total, then resets for the next group.
  • "And" is optional and ignored (both "one hundred five" and "one hundred and five" work).
  • Hyphens are treated as spaces, so "twenty-one" equals "twenty one".

Limitations

This converter handles standard English number expressions but has some limitations:

  • Decimals are not supported (use "point" notation in the number-to-words direction)
  • Fractions (one-half, three-quarters) are not parsed
  • Currency words (dollars, cents) are not processed
  • Ordinals (first, second, third) are not converted

Best Practices

  • Use standard English spelling (American or British conventions work)
  • Include or omit "and" as preferred—both are handled
  • Hyphenate compound numbers for clarity, though it's optional
  • Spell out the complete number rather than mixing words and digits