Skip to main content

words-to-numbers

Converting words to numbers translates spelled-out values like "two hundred forty-two" into the numeric form 242. Common in form processing (cheques, contracts, OCR), accessibility (screen-reader output), and bilingual data cleanup. The ZTools Words to Numbers converter handles English (cardinal and ordinal), Spanish, and French up to numbers in the trillions. Decimal expressions ("two and a half"), fractions ("three quarters"), and mixed forms ("two hundred and three thousand four hundred fifty-six") are supported.

Use cases​

Parse cheque amounts​

Cheques have both numeric and written amounts. After OCR, validate that "one hundred fifty" matches "$150". Words-to-numbers does the comparison.

Clean dictation transcripts​

Transcripts say "twenty twenty-six" for years; downstream systems want 2026. Convert.

Multilingual form processing​

A French form has "trois cent vingt"; convert to 320 for analysis.

Build voice-to-data pipelines​

Voice assistant captures "five thousand"; downstream handler wants 5000.

How it works​

  1. Paste text β€” Sentence, paragraph, or just a number-word.
  2. Pick language β€” Auto-detect, or force English / Spanish / French.
  3. Convert β€” Tool tokenises, identifies number-words, replaces with digits inline. Non-number words preserved.
  4. Read result β€” Original text with numbers replaced. Edge cases (ambiguous words) flagged.

Examples​

Input: "I have two hundred forty-two apples"

Output: I have 242 apples.


Input: "Three thousand four hundred fifty-six dollars"

Output: 3456 dollars.


Input: "Two and a half"

Output: 2.5.


Input: Spanish: "ciento cincuenta"

Output: 150.

Frequently asked questions​

Does it handle ordinals (first, second, third)?

Yes β€” first β†’ 1, twenty-third β†’ 23. Toggle "ordinal mode" if you need them as ordinals (1st, 23rd) rather than cardinals.

What about millions / billions?

Up to trillions in long-scale (US/UK modern) or short-scale notation. Toggle the scale per language convention.

Decimal numbers?

"Three point one four" β†’ 3.14. "Half" / "quarter" β†’ 0.5 / 0.25.

Edge cases like "a couple"?

"A couple" β†’ 2, "a few" β†’ 3, "a dozen" β†’ 12 (toggle "loose match" for these). Strict mode rejects ambiguous words.

Privacy?

All conversion in browser.

Tips​

  • For cheque processing, validate both directions β€” words β†’ numbers AND numbers β†’ words β€” and confirm they match.
  • Multilingual? Auto-detect works for clear cases; force the language for short ambiguous strings.
  • For "ten million two hundred thousand" style, the converter parses left-to-right; complex expressions might need pre-cleaning.
  • Combine with a numbers-to-words tool to round-trip and verify accuracy.

Try it now​

The full words-to-numbers runs in your browser at https://ztools.zaions.com/words-to-numbers β€” no signup, no upload, no data leaves your device.

Open the tool β†—


Last updated: 2026-05-06 Β· Author: Ahsan Mahmood Β· Edit this page on GitHub