Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017.
The Intl.NumberFormat object enables language-sensitive number formatting.
Creates a new NumberFormat object.
Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
These properties are defined on Intl.NumberFormat.prototype and shared by all Intl.NumberFormat instances.
Intl.NumberFormat.prototype.constructorThe constructor function that created the instance object. For Intl.NumberFormat instances, the initial value is the Intl.NumberFormat constructor.
Intl.NumberFormat.prototype[Symbol.toStringTag]The initial value of the [Symbol.toStringTag] property is the string "Intl.NumberFormat". This property is used in Object.prototype.toString().
Getter function that formats a number according to the locale and formatting options of this Intl.NumberFormat object.
Intl.NumberFormat.prototype.formatRange()Getter function that formats a range of numbers according to the locale and formatting options of the Intl.NumberFormat object from which the method is called.
Intl.NumberFormat.prototype.formatRangeToParts()Returns an Array of objects representing the range of number strings in parts that can be used for custom locale-aware formatting.
Intl.NumberFormat.prototype.formatToParts()Returns an Array of objects representing the number string in parts that can be used for custom locale-aware formatting.
Intl.NumberFormat.prototype.resolvedOptions()Returns a new object with properties reflecting the locale and collation options computed during initialization of the object.
In basic use without specifying a locale, a formatted string in the default locale and with default options is returned.
This example shows some of the variations in localized number formats. In order to get the format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument:
The results can be customized using the options argument:
For an exhaustive list of options, see the Intl.NumberFormat() constructor page.
| ECMAScript® 2027 Internationalization API Specification # numberformat-objects |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 10, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.