Skip to content
TextArray
100% local

Words to numbers

Turn spelled-out English numbers in a text into digits, keeping everything else intact.

Input
Output

Words to numbers

Paste text and every English number written out in words is rewritten as digits, while the rest of the sentence stays exactly as you typed it. "I have twenty-one apples and one hundred and five pears" becomes "I have 21 apples and 105 pears". It reads whole numbers made of many words — cardinals from zero to nineteen, tens like forty and ninety, the scale words hundred, thousand, million, billion and trillion, and the connector "and" inside a number, so "two thousand three hundred" and "one hundred and five" both parse correctly.

The parser is deliberately careful about boundaries. A comma or a new line ends a number, so "one, two" becomes "1, 2" rather than one large figure. Words that only look numeric are left alone: "android" keeps its "and", "pointer" is never read as a decimal point, and a lone "a" or "and" is never touched. The word "a" counts as one only right before a scale word, so "a hundred" gives 100 while "a cat" stays a cat. Decimals work through "point": "three point one four" turns into 3.14.

Two options shape the output. Turn on ordinals and "first", "twenty-third" and "hundredth" become 1st, 23rd and 100th; turn it off to leave ordinals as words. The thousands separator can stay off, or add a comma or a space for large figures, so twelve thousand three hundred forty-five reads as 12,345 or 12 345.

One important limit: the tool understands English number words only. If you write on the Slovak, Czech, German, Polish or Hungarian site it still converts the English numbers in your text — handy for cleaning up English source material — but it will not parse "dvadsaťjeden" or "einundzwanzig". Everything runs in your browser and nothing you paste is ever uploaded.

FAQ

Which language of number words does it understand?
English only. It converts English words like "twenty-one" or "one hundred and five" into digits. Numbers written in Slovak, Czech, German, Polish or Hungarian are left as they are.
Does it change words that are not numbers?
No. Surrounding text stays exactly as written. Words that merely contain a number word, like "android" or "someone", are never touched, and a standalone "a" or "and" is left alone.
How do I get decimals?
Write them with "point", for example "three point one four", which becomes 3.14. A "point" with no digit words after it is left as the word.
What do the options do?
Ordinals turns "first" and "twenty-third" into 1st and 23rd. The thousands separator adds a comma or a space to figures of a thousand or more — 12,345 or 12 345 — or you can leave numbers plain.
Is my text uploaded anywhere?
No. The conversion runs entirely in your browser, so nothing you paste ever leaves your device.