# Words to Number

Convert English number-words into digits. Handles magnitudes, "and", decimals via "point", and hyphens, replacing the number-run in place.

> Canonical page: https://elysiatools.com/en/tools/words-to-number

- **Category:** Text Processing

- **Keywords:** words to number, number words to digits, text to number, english number parser, word to number

## Overview

Convert English number-words into digits — from "seven" up to "two billion one hundred million" and beyond, including decimals like "three point one four".

**What it parses:**
- Whole numbers: `one hundred twenty-three` → `123`
- Magnitudes: thousand, million, billion, trillion, quadrillion
- "and": `one hundred and five` → `105` (the "and" is treated as part of the hundreds group, common British/US usage)
- Decimals via "point": `three point one four one five` → `3.1415` (each digit after "point" is read individually)
- Hyphens and case: `Twenty-One`, `twenty one`, and `twenty-one` all work.

**How it works:**
- The tool finds the longest run of number-words in your input, evaluates it, and replaces just that run with digits. Surrounding text is left in place, so `"order sixty-four boxes"` becomes `"order 64 boxes"`.
- **Decimal number** output is a plain number (e.g. `142`). **With thousands separators** adds locale grouping (e.g. `1,000,000`).

**Good to know:**
- Numbers are parsed as integers where possible; "point" introduces a fractional part read digit-by-digit, matching how people dictate decimals out loud.
- If a run of words can't be parsed as a number, it's returned unchanged rather than producing garbage.
- Works on the English number-word system only. For digits-to-words, use a dedicated number-to-words tool.

## Inputs

- **Text** (textarea): Type number-words, e.g. "two hundred and fifty thousand"...
- **Format** (select)

## When to use

- When cleaning up transcribed audio or dictation text that contains written-out numbers instead of digits.
- When preparing raw text data for mathematical analysis or database entry by converting verbal numbers into standard numeric formats.
- When you need to format large written numbers into readable grouped digits with thousands separators.

## How it works

- Input your text containing English number-words into the text area.
- Choose your output format, selecting either a plain decimal number or a grouped format with thousands separators.
- The tool scans the text to identify the longest continuous run of number-words, evaluates its value, and replaces it in-place while keeping the surrounding text intact.

## Use cases

- Converting dictated measurements or quantities in text documents into standard digits.
- Standardizing financial reports by converting written values like 'four million fifty thousand' into formatted numbers.
- Preprocessing natural language datasets to normalize numeric expressions before running data analysis.

## Frequently asked questions

### Can this tool parse decimal numbers?

Yes, it parses decimals written with the word 'point', reading each subsequent digit individually, such as converting 'three point one four' to '3.14'.

### Does it support languages other than English?

No, this tool is designed exclusively for the English number-word system.

### What happens to the text surrounding the numbers?

The surrounding text remains completely unchanged; only the identified number-word sequences are replaced with digits.

### How does the tool handle the word 'and' in numbers?

It treats 'and' as part of the number group, correctly parsing phrases like 'one hundred and five' into '105'.

### What happens if a word sequence cannot be parsed as a number?

The tool returns the unparseable words unchanged rather than outputting incorrect values.

## Related tools

- [Twitter / X Thread Splitter](https://elysiatools.com/en/tools/twitter-thread-splitter): Paste a long text and split it into a numbered X thread that respects the 280-character limit. Splits on word/sentence/paragraph boundaries, auto-adds 1/N numbering, weighs CJK and full-width characters correctly, counts URLs as 23 characters, and shows a live X-style preview card for each tweet with a character meter.
- [Minimum Spanning Tree (Kruskal / Prim)](https://elysiatools.com/en/tools/minimum-spanning-tree): MST with both textbook algorithms: Kruskal's sorted accept/cycle-reject log and Prim's component growth, cross-checked to agree on the total weight; disconnected graphs rejected.
- [Adaptive 12-Point Hidden Watermark](https://elysiatools.com/en/tools/adaptive-12-point-hidden-watermark): Add a subtle text watermark to one image or every supported image in a ZIP, at all, random, or chosen perimeter positions with automatic dark/light local contrast.
- [Fractional Excretion of Sodium (FENa)](https://elysiatools.com/en/tools/fractional-excretion-sodium): Calculate the Fractional Excretion of Sodium (FENa) to differentiate prerenal from intrinsic acute kidney injury: FENa (%) = \[U_Na × S_Cr\] / \[S_Na × U_Cr\] × 100. In oliguric AKI, FENa <1% suggests prerenal azotemia (sodium-avid state: volume depletion, heart failure, hepatorenal syndrome), while FENa ≥1% suggests intrinsic injury (typically ATN). FENa >4% is sometimes cited as supportive of post-obstructive pathology. Caveats: unreliable on diuretics (use FEUrea <35%), contrast/sepsis ATN can present with low FENa, chronic CKD and glucosuria elevate FENa independently. Derived from Espinel CH, JAMA 1976. Most useful in oliguric AKI; interpret with full clinical context. Not medical advice.
- [HDR AVIF to SDR PNG Tone Mapper](https://elysiatools.com/en/tools/hdr-avif-to-sdr-png): Decode PQ or HLG AVIF, convert BT.2020 to sRGB, and tone map highlights into a viewable SDR PNG.
- [Data URI Generator](https://elysiatools.com/en/tools/data-uri-generator): Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown
- [Leet Speak Converter](https://elysiatools.com/en/tools/leet-speak-converter): Convert text to and from leet speak (1337). Encode with Basic, Full, or Caps styles, or decode leet back to plain text.
- [Text to CSV Converter](https://elysiatools.com/en/tools/text-to-csv): Convert various text formats to CSV with customizable parsing options

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Number & Currency Samples](https://elysiatools.com/en/samples/number-currency-samples): Text containing various number and currency formats for testing currency extraction
