Number to Words API

Spell numbers and money amounts in Vietnamese or English words for invoices and receipts: VND, USD, decimals, negatives, up to 21 digits.

GETPOSThttps://apibox.io.vn/v1/number-to-words

The Number to Words API turns 1250000 into “Một triệu hai trăm năm mươi nghìn đồng” or “one million two hundred fifty thousand”. It follows the reading rules that are easy to get wrong in Vietnamese: “mốt” and “lăm” (21 → hai mươi mốt, 15 → mười lăm), “lẻ/linh” for a zero tens digit (105 → một trăm lẻ năm), “không trăm” inside large numbers (1,000,005 → một triệu không trăm lẻ năm) and the repeating “nghìn tỷ, triệu tỷ” scale.

Set currency=VND to append “đồng” (no decimals allowed) or currency=USD for “đô la Mỹ … xu” / “dollars and … cents”. Without a currency, decimals are read after “phẩy” or “point”. thousand=ngàn and odd=linh switch to the Southern / formal variants, and the first letter is capitalised unless capitalize=false.

The input is forgiving: 1250000, 1,250,000.50, 1.250.000 (Vietnamese thousand separators), 1 250 000 and a trailing đ or VND are all understood. The normalised number is returned so you can check how it was read. A single dot is always a decimal point.

Parameters

NameInTypeRequiredDefault
numberbody|querystringyesThe number, e.g. 1250000, 1,250,000.50, 1.250.000 or -12.5.
langbody|querystringnovivi or en.
currencybody|querystringnoVND or USD (empty: plain number).
thousandbody|querystringnonghìnVietnamese word for thousand: nghìn or ngàn.
oddbody|querystringnolẻVietnamese word for a zero tens digit: lẻ or linh.
capitalizebody|querybooleannotrueCapitalise the first letter.

Example

curl "https://apibox.io.vn/v1/number-to-words?number=1250000&currency=VND" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

{
  "number": "1250000",
  "lang": "vi",
  "currency": "VND",
  "text": "Một triệu hai trăm năm mươi nghìn đồng"
}

Use cases

  • Print the amount in words on invoices, receipts and payment vouchers
  • Generate contracts with the amount written in full
  • Read numbers aloud in voice and accessibility features
  • Check amounts typed in words against the figures

FAQ

How is 1,000,005 read in Vietnamese?

“Một triệu không trăm lẻ năm”. Groups below the first non-zero group are read in full (“không trăm”) and a zero tens digit becomes “lẻ” (or “linh” with odd=linh).

How large can the number be?

Up to 21 integer digits (hundreds of quintillions; “trăm tỷ tỷ” in Vietnamese) and 10 decimal digits.

Does it use “nghìn” or “ngàn”?

“nghìn” by default, as in most invoicing software; pass thousand=ngàn for the Southern form.

Related APIs

Start with 1,000 free requests every month. Get free API key →