How to use Intl
- 1. Pick a locale. en-IN, ja-JP, ar-EG, and more.
- 2. Set a number and ISO date. Relative time is versus now.
- 3. Read number, currency, percent, date, list, plural. All from Intl.
- 4. No CLDR download. Uses the browser’s built-in data.
About this tool
The Intl APIs are the supported way to format numbers and dates in JavaScript. This playground shows NumberFormat, DateTimeFormat, RelativeTimeFormat, ListFormat, and PluralRules so you can see what Chrome or Safari will actually emit.
Currency in the playground
The currency row uses INR as a sample. Use Money format for more ISO codes.
Engine differences
ICU data varies by browser version. Trust the user’s engine, not a screenshot from yours.
Code examples
JS
new Intl.NumberFormat("en-IN").format(123456.78)