Words to Number Converter

Transform written words back into numerical digits instantly. Parse text like "one hundred twenty-three" into 123. Perfect for data processing, document analysis, and converting human-readable numbers into machine-readable format.

Text to Numbers
Data Processing
Document Analysis
Batch Processing

Words to Number Converter

Convert written number words back to numerical digits with intelligent parsing

Extract one number per line

Try These Examples

Click on any example to see how the converter works

twenty-three
Hyphenated number
one hundred fifty
Hundreds
two thousand five hundred
Thousands
three point five
Decimal number
a dozen eggs cost fifteen dollars
Multiple numbers

Supported Patterns

Understanding what formats the converter recognizes

Basic Patterns

Simple words:one, two, three → 1, 2, 3
Teens:eleven, twelve → 11, 12
Tens:twenty, thirty → 20, 30
Hyphenated:twenty-one → 21

Complex Patterns

Hundreds:two hundred → 200
Thousands:five thousand → 5,000
Mixed:123 thousand → 123,000
Decimals:three point five → 3.5

How to Use the Words to Number Converter

Complete guide to converting written words back to numerical digits

1Enter Written Numbers

Type or paste written numbers in any of these formats:

  • Standard: "one hundred twenty-three"
  • Mixed: "123 thousand four hundred"
  • Currency: "fifty dollars and twenty-five cents"
  • Multiple: "one, two, three, four"

2Choose Processing Mode

Select how you want the text processed:

  • Single Number: Extract one number from text
  • Multiple Numbers: Find all numbers in text
  • Batch Mode: Process multiple lines
  • Smart Parse: Auto-detect format

3Get Numerical Results

View the converted numbers immediately:

Input: "one thousand two hundred thirty-four"
Output: 1,234

4Export and Use

Get your results in various formats:

  • • Copy individual numbers or entire results
  • • Export as CSV for spreadsheet use
  • • Use in data analysis and processing workflows

Real-World Applications

Discover how professionals use words to number conversion

Document Processing

Extract numerical data from reports, contracts, and legal documents where numbers are written in words for clarity and security.

"five thousand dollars" → $5,000

Data Analysis

Convert survey responses, feedback forms, and research data where participants wrote numbers in word format.

"twenty-five percent" → 25%

Academic Research

Process historical documents, literature, and academic papers where numbers are traditionally written out in formal writing.

"two thousand and twenty-three" → 2023

Transcription Services

Convert audio transcriptions where speech-to-text software outputs numbers as words, enabling proper data processing.

"one hundred and fifty" → 150

Financial Processing

Process check amounts, financial reports, and accounting documents where amounts are written in both words and numbers.

"one thousand two hundred dollars" → $1,200

Natural Language Processing

Essential component for NLP pipelines, chatbots, and AI systems that need to understand numerical references in human text.

"thirty-seven point five" → 37.5

Supported Text Patterns

Understanding the various formats and patterns our converter recognizes

Basic Number Words

Our converter recognizes standard English number words and their variations:

Single Words

zero → 0
one → 1
twelve → 12
twenty → 20
hundred → 100
thousand → 1000

Compound Numbers

twenty-one → 21
thirty-five → 35
ninety-nine → 99

Complex Expressions

Handle sophisticated number expressions and mixed formats:

Large Numbers

"one million" → 1,000,000
"two billion three hundred thousand" → 2,000,300,000
"five and a half million" → 5,500,000

Decimal Numbers

"three point five" → 3.5
"twenty-five and three quarters" → 25.75
"one and a half" → 1.5

Mixed Format Support

Process text that combines digits and words naturally:

Hybrid Expressions

"123 thousand" → 123,000
"5 million dollars" → 5,000,000
"2.5 billion" → 2,500,000,000

Special Cases

Handle ordinals, fractions, and contextual numbers:

Advanced Patterns

"first" → 1st
"twenty-third" → 23rd
"a dozen" → 12
"a couple" → 2

How the Conversion Works

Understanding the algorithm behind text-to-number conversion

Parsing Steps

  1. 1
    Text Normalization: Convert to lowercase, handle punctuation, and standardize spacing for consistent processing.
  2. 2
    Token Recognition: Identify number words, connectors (and, point), and scale words (thousand, million, billion).
  3. 3
    Group Assembly: Combine tokens into logical groups and handle scale multiplication (e.g., "two thousand").
  4. 4
    Final Calculation: Sum all groups and handle decimal parts to produce the final numerical result.

Example Breakdown

Input: "two million three hundred fifty thousand"

Step 1:Normalize → "two million three hundred fifty thousand"
Step 2:Tokenize → [two, million, three, hundred, fifty, thousand]
Step 3:Group → [2 × 1,000,000] + [350 × 1,000]
Step 4:Calculate → 2,000,000 + 350,000 = 2,350,000

Frequently Asked Questions

Can this tool handle multiple numbers in one text?

Yes, our converter can extract multiple numbers from a single text input. For example, "I have twenty-three apples and fifteen oranges" will extract both 23 and 15. You can choose to process them as a list or focus on just the first number found.

Does it work with different English dialects and spellings?

The converter primarily follows American English conventions but recognizes common variations. It handles both "twenty-one" (hyphenated) and "twenty one" (spaced) formats, and understands context clues that help with ambiguous cases.

How does it handle fractions and decimal expressions?

The tool recognizes common fraction expressions like "one and a half" (1.5), "three quarters" (0.75), and decimal notations like "twenty-five point seven five" (25.75). It also understands "point" as a decimal separator in spoken number formats.

What's the largest number it can process?

Our converter can handle numbers up to the quadrillions (15 digits) with full accuracy. This covers virtually all real-world use cases from financial amounts to scientific measurements while maintaining precision throughout the conversion process.

Can it distinguish between ordinal and cardinal numbers?

Yes, the converter recognizes ordinal numbers (first, second, third, twenty-first, etc.) and can either convert them to their numerical position (1st, 2nd, 3rd, 21st) or to their cardinal equivalent (1, 2, 3, 21) depending on your processing preferences.

How accurate is the conversion for complex expressions?

Our algorithm achieves high accuracy by using advanced natural language processing techniques. It handles complex expressions like "two and three-quarter million" or "negative fifteen point two five" with precision, and provides confidence indicators for ambiguous cases.