Skip to main content

Convert TEXT to NUMBER, Free

Files convert instantly in your browser. 100% private, any file size, no account needed.

100% private No signup Unlimited size No upload

How to convert TEXT to NUMBER

Written number words like 'forty-two', 'one thousand three hundred', or 'seven point five' need to be converted to numeric digits for data processing, form parsing, accessibility interfaces, and natural language processing pipelines. The conversion follows English number word grammar: units (one to nineteen), tens (twenty, thirty), hundreds, thousands, millions, and so on, each with specific combination rules.

This converter parses English number words into their numeric equivalents in your browser using JavaScript. It handles cardinal numbers (one, two, three), hyphenated compound numbers (twenty-three), and decimal fractions (five point seven). No data is sent to any server. The conversion is instantaneous and works for numbers from zero up to the trillions.

Type the number word

Enter the written number in the text field. Examples: 'forty-two', 'one hundred and twenty-three', 'two thousand and five', 'three point fourteen'. The parser handles both 'and' as a connector and its omission.

Read the numeric result

The digit equivalent appears immediately. 'forty-two' becomes 42. 'one thousand and twenty-three' becomes 1,023. 'three point fourteen' becomes 3.14.

Check for ambiguous input

If the input contains an unusual phrasing or a word the parser does not recognize, it returns an error message rather than a guess. Correct the input and try again.

Use in your workflow

Copy the numeric result for use in spreadsheets, code, or data entry. The output is a plain number without formatting, ready for arithmetic or database insertion.

Frequently asked questions

Does the converter handle ordinal numbers like 'forty-second' or 'third'?

Ordinals (first, second, third, twenty-first) are a separate grammar pattern from cardinals (one, two, three). The converter handles cardinal numbers; ordinals may need to be converted to their base form first.

What is the difference between 'one billion' in the US and the UK?

In the US, one billion = 10^9 (one thousand millions). In the traditional British system, one billion = 10^12 (one million millions). Modern British usage has adopted the American definition, but the difference matters for historical texts. This converter uses the US (short scale) system.

Why does 'three and a half' not parse correctly?

Fractional expressions using 'and a half' or 'and a quarter' use a different grammar pattern than standard number words. Enter 'three point five' or '3.5' instead.

Can I convert a number back to words?

Use the number-to-text converter for the reverse direction, which formats any numeric value as its English word equivalent.