How to Convert Numbers Written in Words Back Into Digits

Turn written numbers like "two thousand forty-five" into digits. Learn how English number words are parsed, which forms are ambiguous and how to bulk convert.

Updated September 29, 2026 6 min read

Use the free Words to Numbers ConverterConvert written English numbers like “two thousand forty-five” to digits

Numbers written as words turn up more often than you might expect: in legal documents and cheques, in speech-to-text transcripts, in survey answers typed by hand, in older records, and in data exported from forms where people wrote "forty-five" instead of "45". Before you can sort, total or chart those values, they need to be digits.

This guide explains how English number words are built, how a converter reads them, which phrasings cause problems, and how to convert either a list of numbers or numbers buried inside ordinary sentences.

How English number words are structured

Written English numbers follow a small set of patterns, which is what makes automatic conversion possible:

  • Units and teens: zero to nineteen each have their own word.
  • Tens: twenty, thirty, forty and so on up to ninety, optionally followed by a unit with a hyphen: forty-two.
  • Hundreds: a number from one to nine followed by hundred: three hundred.
  • Scale words: thousand, million, billion, trillion. Each multiplies the group of up to three digits in front of it.

A number is read as a series of groups from the largest scale down. Take:

three million four hundred fifty thousand six hundred seven

Group Words Value
Millions three 3 × 1,000,000
Thousands four hundred fifty 450 × 1,000
Units six hundred seven 607
Total 3,450,607

A converter keeps a running total for the current group, multiplies it when it meets a scale word, and adds the groups together at the end. It also needs to check that the words appear in a sensible order: "one thousand two hundred thousand" is not a valid number.

Variations a good converter should understand

Real writing is less tidy than a textbook. These forms are all common:

Written Meaning Note
one hundred and twenty-three 123 "and" is standard in British English, often omitted in American English
a hundred, a thousand 100, 1,000 "a" stands for "one" before a scale word
twelve hundred 1,200 Common for years and round figures
minus seventeen / negative seventeen -17 Sign words at the start
zero point zero seven 0.07 Digits after "point" are read one by one
2.5 million 2,500,000 Digits mixed with a scale word

Two points often trip people up. First, after point, each digit is said separately, so 3.14 is "three point one four", not "three point fourteen". Second, billion in modern English means a thousand million (10⁹). Some older British texts and several other languages have used "billion" for a million million, so check the source when very large values matter.

Convert number words step by step

The Words to Numbers Converter works in two modes.

  1. Open the Words to Numbers Converter.
  2. Choose a Mode:
    • One number per line treats each line as a single number, which suits a column of values copied from a spreadsheet.
    • Numbers inside text finds runs of number words inside sentences and replaces only those, leaving the rest of the text alone.
  3. Paste your input, or click Sample to see an example for the selected mode.
  4. Switch on Thousands separators if you want 1,234,567 rather than 1234567. Leave it off if the result is going into a spreadsheet or database that might misread commas.
  5. Review the Digits output. In line mode, a line that cannot be understood shows a warning symbol and a short explanation, such as an unrecognised word or words in the wrong order.
  6. Copy the result or click Download to save it.

For example, in Numbers inside text mode, the sentence "The venue holds three thousand five hundred people and tickets cost forty-nine dollars" becomes "The venue holds 3500 people and tickets cost 49 dollars."

Other ways to convert words to numbers

Spreadsheets

Excel and Google Sheets have no built-in function that turns number words into values. The usual workarounds are a lookup table for a small, fixed set of words (for example, "one" to "ten" in survey responses), a custom script or macro, or converting outside the spreadsheet and pasting the results back. For short lists, the lookup approach is perfectly adequate.

Programming libraries

Most programming languages have community libraries that parse number words, for example word-to-number packages for Python and JavaScript. They are the right choice when conversion is part of an automated pipeline, such as cleaning transcripts every night. Test them against your own data, because support for "and", "a hundred", decimals and negative numbers varies.

Speech-to-text settings

If the words come from dictation, many speech recognition tools already have an option to write numbers as digits. Fixing the setting at the source is better than converting afterwards. If you are transcribing audio in the browser, see our Speech to Text tool.

Tips and troubleshooting

Ordinals are not converted

Words like first, second and twenty-fifth are ordinals, not cardinal numbers, and the converter does not change them. Convert them by hand or with Find and Replace if you have a small set.

Fractions and informal quantities are left alone

"Half", "a quarter", "a dozen" and "a couple" are not treated as numbers. Replace them with explicit values if they matter for your calculations.

A line shows "out of order"

Scale words must go from largest to smallest. "Five thousand two million" is ambiguous and is rejected. Check the original text for a typo or a missing comma between two separate numbers.

Two numbers merged into one

In inline mode, number words separated only by spaces are read as one number. A sequence that is not a valid number, such as "two three", is left unchanged rather than turned into 2 and 3. Numbers in normal prose are usually separated by other words or punctuation, which avoids this; for lists, put each number on its own line and use line mode.

Pulling digits out afterwards

Once words are digits, you may want only the numbers without the surrounding text. Extract Numbers does that, returning a clean list you can paste into a spreadsheet.

Going the other direction

For cheques, invoices and legal documents, you often need the opposite: digits written out as words. The Number to Words converter does that, and there is a separate guide on writing amounts in words for international and Indian numbering systems.

Frequently asked questions

Does "one hundred and five" mean 105?

Yes. The word "and" is ignored when it appears inside a number, so both "one hundred and five" and "one hundred five" give 105.

How do I write decimals in words so they convert?

Say each digit after "point" separately: "four point two five" converts to 4.25. "Four point twenty-five" is not a standard reading and is rejected.

How large a number can be converted?

The converter understands scale words up to quintillion (10¹⁸), which covers any number you are likely to find written out in text.

Can it handle numbers like "2.5 million"?

Yes. Digits followed by a scale word are combined, so "2.5 million" becomes 2500000, or 2,500,000 with thousands separators on.

Does it work with languages other than English?

No. It recognises English number words only. Other languages have different structures and would need their own rules.

Try it now: Words to Numbers Converter

Loading tool…