Numbers to words, in 50 languages.

Cardinal, ordinal and currency conversion — BigInt-safe, tree-shakeable, and with zero dependencies. Pick a language; a region is a refinement you only need when it changes the words or the money. Everything below runs the real library in your browser.

Converter

Accepts integers, decimals, negatives, scientific notation, and arbitrarily large values.

Try

One entry per language, labelled with the code you would import.

Form

The same call in your code

One number, every language

The value above, converted by each language's own bundle. The code shown is what you would import.

Install

# Node, bundlers, Deno, Bun
npm install n2words

# or spell a number without writing any code
npx n2words 42 --lang en  # forty-two

The shipped n2words command derives its flags from whichever language you name, so the options above are flags too — the CLI section has the details.

No build step? Load a single bundle straight from a CDN — the same file this page just used. See the docs for browser, UMD and TypeScript usage, or browse all 50 languages.