Word to Number Converter

This word to number converter turns English number words into digits, one phrase per line, and flags bad lines.

English only. Example: twelve thousand three hundred

Twenty-first becomes 21st. Leave this off to flag ordinals.

A line it cannot read shows ? so line numbers match.

Type or paste number words, one per line.

When you need words turned into digits

Amounts arrive spelled out

Forms, letters and chat messages often give a figure in words, and a sheet, a script or a database needs digits.

Check a figure against its words

A cheque line or a contract clause states the amount twice. Convert the words and compare them with the figure.

Clean a whole list at once

Put one phrase on each line and get one number on each line, in the same order, ready to paste into a column.

What the converter accepts

It reads English number words only. It ignores capital letters, treats a hyphen like a space, and accepts "and" between two number words, so "one hundred one" and "one hundred and one" both give 101. Scales run from thousand up to decillion, and the whole part can have up to 36 digits. The scale names are read from the same table as the reverse tool, so the two cannot drift.

It never guesses. A line it cannot read keeps its place and shows a question mark in the result, and the Issues list names the line and says why it failed. Each page limit is checked before any line is read: 1,000 lines, 600 characters in one line and 100,000 characters in all, counted by code points. To go the other way, use Number to Words.

Accepted and refused forms

  • Hyphens and spacesAccepted. "forty-two" and "forty two" both give 42.
  • The word andAccepted between two number words. A leading or trailing "and" is flagged.
  • Minus and negativeAccepted as the first word. "minus seven point five" gives -7.5.
  • PointAccepted once, after a whole number and followed by single digit words. "zero point zero five" gives 0.05 with the zero kept. "point five" alone is flagged.
  • OrdinalsOff by default. Turn the option on and "twenty-first" gives 21st. Ordinals cannot be negative or decimal.
  • A hundredRefused. Write "one hundred".
  • Year styleRefused. "nineteen eighty-four" needs the full number, "one thousand nine hundred eighty-four".
  • Fractions and digitsRefused. "three quarters" and lines that mix digits with words are flagged, not guessed.
  • Other languagesNot supported. This page reads English only.

Common Use Cases

Worked example

Five lines with ordinals on: "one hundred and one" gives 101, "minus twenty-one point five" gives -21.5, "two million three hundred thousand" gives 2300000, and "twenty-first" gives 21st. The last line, "twenty banana", shows ? and the issue reads Line 5: "banana" is not a number word.

Invoice or cheque wording

Turn the amount written in words into digits and compare it with the figure beside it.

Transcripts of spoken numbers

A transcript that spells out every number becomes a column of digits, one value per line.

Puzzle and homework checks

Check a spelled-out answer, including very large ones, without counting groups of zeros by hand.

Spreadsheet preparation

Paste one value per line and copy the digits straight into a column.

How to convert words to numbers

1

Type or paste lines

Put one number phrase on each line. Blank lines stay blank in the result.

2

Choose the ordinal option if needed

Turn it on for words such as first or twenty-third. Leave it off to have them flagged.

3

Read the result

Digits appear in the second box in the same order, with a question mark where a line could not be read.

4

Fix flagged lines

Open the Issues list, correct the named word and the result updates at once. Then copy or download.

Benefits

Errors name the line and the reason

You see which line failed and why, instead of one vague message.

Same scale table as the reverse tool

Both pages read the scales from one table, up to decillion, so a figure spelled out by one converts back on the other.

Big numbers stay exact

Digits are built as text, never as a floating point number, so a 36-digit value comes out with every digit.

Tips

  • •Decimals. Write the whole part, then "point", then each digit word. "zero point four five" gives 0.45.
  • •Years. Write the whole number: "one thousand nine hundred eighty-four", not "nineteen eighty-four".
  • •Hyphens. Use hyphens or spaces. Both work.
  • •Check the reverse. Spell the result back with Number to Words to confirm it.

Paste your number words and read the digits

Type one phrase per line and copy the digits. To spell numbers out instead, use Number to Words, or write them as numerals with the Roman Numeral Converter.

To pull numbers out of a longer text, try Extract Numbers. To change the case of the words first, use the Case Converter.

Related tools

Frequently Asked Questions

Does "one hundred one" work without "and"?

Yes. Both "one hundred one" and "one hundred and one" read as 101.

Why is "nineteen eighty-four" flagged?

It is a year style, not a plain number. Write "one thousand nine hundred eighty-four" to get 1984.

What is the largest number?

36 digits, up to the decillions. That is the same ceiling as Number to Words. A larger scale word such as undecillion is flagged as not a number word.

Are other languages supported?

No. This page reads English only.

What happens to decimals?

After "point" each digit word is read in turn, so "zero point zero five" gives 0.05 and keeps the zero after the point.