Skip to main content

Convert Number Words to Digits Convert English number words back to numeric values.

Words to Number illustration
📝

Words to Number

Convert English number words back to numeric values.

1

Enter Number Words

Type number words, one per line.

2

Review Parsed Numbers

Each phrase is automatically parsed to its numeric value.

3

Copy Numeric Values

Copy the converted numeric values.

Loading tool...

What Is Words to Number?

A Words to Number converter is a tool that translates English number words into their corresponding numeric values, enabling users to parse number words and convert them to digits. Developers and data analysts use it to process textual data containing number words, solving the specific problem of converting unstructured numerical text to structured numerical data. For instance, when dealing with text files or user input containing words like "one hundred twenty-three", this tool can accurately convert such phrases to their numeric equivalents.

The tool is particularly useful for handling compound numbers and scales, including ones, tens, hundreds, thousands, millions, billions, and trillions. It ignores the word "and" as a connector and supports "negative" or "minus" prefixes, allowing it to correctly interpret phrases like "negative forty-two". What makes this tool different is its ability to handle a wide variety of input formats, thanks to features like the `wordMap` and `scaleMap` dictionaries, which define mappings for words to numbers and scales respectively. These dictionaries enable the tool to accurately convert words to numbers online, making it a reliable word number converter.

It uses regular expressions to clean the input text, removing non-alphabetic characters and replacing hyphens with spaces, before splitting the text into individual words and processing them according to their definitions in the `wordMap` and `scaleMap`. This allows it to serve as an effective number word parser, capable of converting complex phrases like "three million five hundred thousand" into their numeric equivalents.

Why Use Words to Number?

  • Parse English number words to numeric values
  • Handles compound numbers and large values
  • Understands "and" connectors and hyphens
  • Process multiple number phrases at once

Common Use Cases

Data Processing

Convert number words in text data to numeric values for analysis.

NLP

Parse numeric expressions from natural language text.

Accessibility

Convert spoken number words to numeric form.

Education

Verify number word spelling by converting back to digits.

Technical Guide

The parser normalizes input by lowercasing and removing non-alphabetic characters except spaces and hyphens. Hyphens are converted to spaces. The word "and" is filtered out. Words are matched against lookup tables for ones (0-19), tens (20-90), and scale words (hundred, thousand, million, billion, trillion). The algorithm accumulates a current value and a result. When a scale word is encountered, the current value is multiplied by the scale (for "hundred") or multiplied and added to the result (for thousand and above). The "negative" and "minus" prefix words set a flag for the final sign.

Tips & Best Practices

  • 1
    Enter one number phrase per line
  • 2
    "And" is ignored as a connector word
  • 3
    Hyphens in words like "forty-two" are handled correctly
  • 4
    Supports "negative" and "minus" prefixes

Related Tools

Frequently Asked Questions

Q What number words are supported?
All standard English number words from zero through trillions, including compound forms.
Q Does it handle "and"?
Yes, "and" is treated as a connector and ignored (e.g., "one hundred and twenty" works correctly).
Q Can it parse ordinals like "first" or "twenty-third"?
No, only cardinal number words are supported.
Q What happens with unrecognized words?
If any word cannot be matched, the result shows as "[could not parse]".
Q Does it handle decimals?
Currently only whole numbers are parsed. Decimal point words are not supported.

About This Tool

Words to Number is a free online tool by FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration or installation required.