Words to Number – Convert English Number Words to Digits
Convert English number words like one hundred twenty-three into digits instantly. Handles decimals, negatives, hyphens, the word "and", and both International and Indian numbering systems. Free, private, and runs entirely in your browser.
Convert
Words → Numberand is ignored, so one hundred and twenty-three works the same as one hundred twenty-three. Hyphens in twenty-one are treated as spaces.Result
Waiting for input| Words | Number |
|---|
What does this Words to Number tool do?
This free online words to number converter translates English number words into their numeric digit form. Type one hundred twenty-three and get 123. Paste twelve lakh thirty-four thousand five hundred sixty-seven and get 1,234,567. The tool also works in reverse — switch to Numbers → Words and type a digit like 123 to get the words back.
Everything runs locally in your browser. The words you enter never leave your device, there's no signup, and there are no usage limits.
What the parser handles
The parsing algorithm scans the input from left to right, accumulating values as it encounters each number word. It handles all the common ways people write numbers in English:
| Feature | Input | Output |
|---|---|---|
| Basic numbers | forty-two | 42 |
| The word "and" | one hundred and five | 105 |
| Hyphenated tens | twenty-one | 21 |
| Decimals | three point one four | 3.14 |
| Negatives | minus forty-two | -42 |
| International scales | one million two hundred thousand | 1,200,000 |
| Indian scales | twelve lakh thirty-four thousand | 12,34,000 |
International vs Indian numbering systems
The same number is written using different scale words depending on which system you use. This tool recognises both:
| System | Scale words | Example (1,234,567) |
|---|---|---|
| International | thousand, million, billion, trillion | one million two hundred thirty-four thousand five hundred sixty-seven |
| Indian | thousand, lakh, crore, arab, kharab | twelve lakh thirty-four thousand five hundred sixty-seven |
The Indian system is used across India, Pakistan, Bangladesh, Nepal, and Sri Lanka. The International system is used in most English-speaking countries. Switching the numbering system changes how the output is grouped — with commas every three digits in the International system, and in the Indian grouping pattern (first three digits, then in twos) for the Indian system.
How the parser works
The conversion algorithm processes the input word by word, maintaining two running totals: a current value for the group being built, and a total that accumulates completed groups.
- Small numbers (one through ninety-nine) are added to
current. - The word "hundred" multiplies
currentby 100. - Scale words (thousand, million, lakh, crore, etc.) multiply the current group by the scale value and add it to the running total, then reset
currentto zero. - The word "point" signals the start of a decimal fraction. Every word after that is treated as a single digit.
- The word "and" is skipped — it's a connector with no numeric value.
This left-to-right greedy approach correctly handles every valid English number phrase, including complex combinations like one billion two hundred thirty-four million five hundred sixty-seven thousand eight hundred ninety.