Format Code Now
/
TextWords to Number Next: Number Sorter ›

Words to Number Converter

TX-06

Paste number words such as one million two hundred thirty-four thousand and get the digits: 1234000. One number per line, exact digits with no rounding.

Runs in your browser. Nothing is uploaded.

Number words (one per line)

Digits

How to use it

  1. Type or paste number words into the input box, one number per line.
  2. Use negative or minus for a negative number, and point followed by digit words for decimals, as in seven point zero five.
  3. Tick Add thousands separators if you want 1,234,567 instead of 1234567.
  4. Read the digits in the output box. If a word is not recognized, the error names it.
  5. Copy the result or download it as a text file.

What words it understands

It reads zero to nineteen, the tens (twenty to ninety), hundred, and thousand, million, billion and so on up to vigintillion, using the short scale where a billion is 10 to the power of 9. Capital letters do not matter, hyphens and commas are treated as spaces, and the word and is skipped, so two hundred and five and two hundred five both give 205. A hundred and a thousand are read as one hundred and one thousand.

It checks the word order

The words must make a number in the usual order. Five five, twenty ten and thousand on its own are rejected because no sensible number can be built from them, and the error points at the word where the order breaks. Big numbers must go from largest to smallest, so one million two thousand is fine but two thousand one million is not. Results are built with BigInt, so a 40 digit number is exact.

What it does not read

Forms such as twelve hundred, a dozen, a couple, ordinals like first or second, fractions like three quarters, and digits mixed with words such as 5 million are not supported and are reported as unknown words or a wrong order. For decimals, only the digit words zero to nine may follow the word point, so point five is fine and point fifty is not.

Error messages and what to do

MessageWhat it meansFix
Unknown word "foo".A word on the line is not a number word the page knows.Fix the spelling or remove the word. Digits, ordinals and slang such as dozen are not understood.
The words are not in a valid order near "five".The words are all number words but cannot form one number in this order.Check for repeated words, a smaller scale before a larger one, or a hundred used after a number above nine.
No number words found.The line has no words once the word and is ignored.Add the number words you want converted.

Questions people ask

How do I convert "one hundred and five" to a number?

Paste it into the box and the output is 105. The word and is ignored, so one hundred five gives the same result. Each line is converted separately, so you can paste a whole list.

Does it handle negative numbers and decimals?

Yes. Start with negative or minus for a negative number. After the word point, use digit words one by one, so negative seven point zero five becomes -7.05. A minus sign is dropped if the value is zero.

How large a number can it convert?

The largest name it knows is vigintillion, which is 10 to the power of 63, so values up to just below 10 to the power of 66 work. The result is exact because it uses BigInt rather than floating point numbers.

Why is "twelve hundred" rejected?

The page only accepts a hundred after a single digit word from one to nine, which keeps the order checks strict. Write one thousand two hundred instead.

Is a billion 10 to the 9 or 10 to the 12 here?

10 to the 9. This page uses the short scale, so a trillion is 10 to the 12. The long scale, where a billion is 10 to the 12, is not supported.

Can it convert words in other languages?

No. Only English number words are recognized. Anything else is reported as an unknown word, with the word named in the error so you can find it in your text.

About this tool

Reads English number words, one number per line, and writes exact digits using BigInt, so there is no rounding. Words are not case sensitive, hyphens and commas count as spaces, and the word "and" is ignored. It understands zero to nineteen, the tens, hundred, and thousand up to vigintillion (short scale, a billion is 10^9). Use negative or minus for a negative number and point followed by digit words for decimals (point zero five). It checks word order, so "five five" or "thousand" on its own is rejected, and an unknown word is named in the error. Forms such as "twelve hundred", "a dozen", digits mixed with words, fractions and ordinals (first, second) are not supported.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.