Settings

Code Theme

Theme for code blocks: OceanicNext/Github

Theme

Page theme

Toggle to hide or show Browser Details/Support

Change the color of the accent (default: purple)

Language for page. Press Confirm to reload page with selected language

Confirm language

Intl.NumberFormat Currency

Browser support

Full support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js

Input


sv-SE

Alternativ use

Intl.NumberFormat can also be used from Number.prototype.toLocaleString()
const number = 123456.789
number.toLocaleString("sv-SE")
123 456,79 €

Output


currencySign

Browser support

Available in Chrome from version 77 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 78 Firefox
Available in Opera from version 64 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 77 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 55 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 77 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.11.0 Node.js
{
currencySign: "standard",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
currencySign: "accounting",
style: "currency",
currency: "EUR"
}
123 456,79 €

currencyDisplay

Browser support

Available in Chrome from version 77 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 78 Firefox
Available in Opera from version 64 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 77 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 55 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 77 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.11.0 Node.js
{
currencyDisplay: "code",
style: "currency",
currency: "EUR"
}
123 456,79 EUR
{
currencyDisplay: "symbol",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
currencyDisplay: "narrowSymbol",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
currencyDisplay: "name",
style: "currency",
currency: "EUR"
}
123 456,79 euro

signDisplay

Browser support

Available in Chrome from version 77 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 78 Firefox
Available in Opera from version 64 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 77 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 55 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 77 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.11.0 Node.js
{
signDisplay: "auto",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
signDisplay: "never",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
signDisplay: "always",
style: "currency",
currency: "EUR"
}
+123 456,79 €
{
signDisplay: "exceptZero",
style: "currency",
currency: "EUR"
}
+123 456,79 €

useGrouping

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 13.0.0 Node.js
{
useGrouping: true,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
useGrouping: false,
style: "currency",
currency: "EUR"
}
123456,79 €

minimumIntegerDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
minimumIntegerDigits: 1,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
minimumIntegerDigits: 2,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
minimumIntegerDigits: 3,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
minimumIntegerDigits: 4,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
minimumIntegerDigits: 5,
style: "currency",
currency: "EUR"
}
123 456,79 €

minimumFractionDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
minimumFractionDigits: 1,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
minimumFractionDigits: 2,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
minimumFractionDigits: 3,
style: "currency",
currency: "EUR"
}
123 456,789 €
{
minimumFractionDigits: 4,
style: "currency",
currency: "EUR"
}
123 456,7890 €
{
minimumFractionDigits: 5,
style: "currency",
currency: "EUR"
}
123 456,78900 €

maximumFractionDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
maximumFractionDigits: 1,
style: "currency",
currency: "EUR"
}
123 456,8 €
{
maximumFractionDigits: 2,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
maximumFractionDigits: 3,
style: "currency",
currency: "EUR"
}
123 456,789 €
{
maximumFractionDigits: 4,
style: "currency",
currency: "EUR"
}
123 456,789 €
{
maximumFractionDigits: 5,
style: "currency",
currency: "EUR"
}
123 456,789 €

minimumSignificantDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
minimumSignificantDigits: 1,
style: "currency",
currency: "EUR"
}
123 456,789 €
{
minimumSignificantDigits: 2,
style: "currency",
currency: "EUR"
}
123 456,789 €
{
minimumSignificantDigits: 3,
style: "currency",
currency: "EUR"
}
123 456,789 €
{
minimumSignificantDigits: 4,
style: "currency",
currency: "EUR"
}
123 456,789 €
{
minimumSignificantDigits: 5,
style: "currency",
currency: "EUR"
}
123 456,789 €

maximumSignificantDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
maximumSignificantDigits: 1,
style: "currency",
currency: "EUR"
}
100 000 €
{
maximumSignificantDigits: 2,
style: "currency",
currency: "EUR"
}
120 000 €
{
maximumSignificantDigits: 3,
style: "currency",
currency: "EUR"
}
123 000 €
{
maximumSignificantDigits: 4,
style: "currency",
currency: "EUR"
}
123 500 €
{
maximumSignificantDigits: 5,
style: "currency",
currency: "EUR"
}
123 460 €

roundingIncrement

Browser support

Partial support

Available in Chrome from version 106 Chrome
Available in Edge from version 106 Edge
Available in Firefox from version 116 Firefox
Available in Opera from version 92 Opera
Available in Safari from version 15.4 Safari
Available in Chrome Android from version 106 Chrome Android
Available in Firefox for Android from version 116 Firefox for Android
Available in Opera Android from version 72 Opera Android
Available in Safari on iOS from version 15.4 Safari on iOS
Available in Samsung Internet from version 20.0 Samsung Internet
Available in WebView Android from version 106 WebView Android
Available in WebView on iOS from version 15.4 WebView on iOS
Not available in Deno Deno
Available in Node.js from version 19.0.0 Node.js
{
roundingIncrement: 1,
style: "currency",
currency: "EUR"
}
123 456,79 €
{
roundingIncrement: 2,
style: "currency",
currency: "EUR"
}
123 456,78 €
{
roundingIncrement: 5,
style: "currency",
currency: "EUR"
}
123 456,80 €
{
roundingIncrement: 10,
style: "currency",
currency: "EUR"
}
123 456,80 €
{
roundingIncrement: 20,
style: "currency",
currency: "EUR"
}
123 456,80 €
{
roundingIncrement: 25,
style: "currency",
currency: "EUR"
}
123 456,75 €
{
roundingIncrement: 50,
style: "currency",
currency: "EUR"
}
123 457,00 €
{
roundingIncrement: 100,
style: "currency",
currency: "EUR"
}
123 457,00 €
{
roundingIncrement: 200,
style: "currency",
currency: "EUR"
}
123 456,00 €
{
roundingIncrement: 250,
style: "currency",
currency: "EUR"
}
123 457,50 €
{
roundingIncrement: 500,
style: "currency",
currency: "EUR"
}
123 455,00 €
{
roundingIncrement: 1000,
style: "currency",
currency: "EUR"
}
123 460,00 €
{
roundingIncrement: 2000,
style: "currency",
currency: "EUR"
}
123 460,00 €
{
roundingIncrement: 2500,
style: "currency",
currency: "EUR"
}
123 450,00 €
{
roundingIncrement: 5000,
style: "currency",
currency: "EUR"
}
123 450,00 €

roundingMode

Browser support

Partial support

Available in Chrome from version 106 Chrome
Available in Edge from version 106 Edge
Available in Firefox from version 116 Firefox
Available in Opera from version 92 Opera
Available in Safari from version 15.4 Safari
Available in Chrome Android from version 106 Chrome Android
Available in Firefox for Android from version 116 Firefox for Android
Available in Opera Android from version 72 Opera Android
Available in Safari on iOS from version 15.4 Safari on iOS
Available in Samsung Internet from version 20.0 Samsung Internet
Available in WebView Android from version 106 WebView Android
Available in WebView on iOS from version 15.4 WebView on iOS
Not available in Deno Deno
Available in Node.js from version 19.0.0 Node.js
{
roundingMode: "ceil",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
roundingMode: "floor",
style: "currency",
currency: "EUR"
}
123 456,78 €
{
roundingMode: "expand",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
roundingMode: "trunc",
style: "currency",
currency: "EUR"
}
123 456,78 €
{
roundingMode: "halfCeil",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
roundingMode: "halfFloor",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
roundingMode: "halfExpand",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
roundingMode: "halfTrunc",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
roundingMode: "halfEven",
style: "currency",
currency: "EUR"
}
123 456,79 €

roundingPriority

Browser support

Partial support

Available in Chrome from version 106 Chrome
Available in Edge from version 106 Edge
Available in Firefox from version 116 Firefox
Available in Opera from version 92 Opera
Available in Safari from version 15.4 Safari
Available in Chrome Android from version 106 Chrome Android
Available in Firefox for Android from version 116 Firefox for Android
Available in Opera Android from version 72 Opera Android
Available in Safari on iOS from version 15.4 Safari on iOS
Available in Samsung Internet from version 20.0 Samsung Internet
Available in WebView Android from version 106 WebView Android
Available in WebView on iOS from version 15.4 WebView on iOS
Not available in Deno Deno
Available in Node.js from version 19.0.0 Node.js
{
roundingPriority: "auto",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
roundingPriority: "morePrecision",
style: "currency",
currency: "EUR"
}
123 456,789 €
{
roundingPriority: "lessPrecision",
style: "currency",
currency: "EUR"
}
123 456,79 €

trailingZeroDisplay

Browser support

Partial support

Available in Chrome from version 106 Chrome
Available in Edge from version 106 Edge
Available in Firefox from version 116 Firefox
Available in Opera from version 92 Opera
Available in Safari from version 15.4 Safari
Available in Chrome Android from version 106 Chrome Android
Available in Firefox for Android from version 116 Firefox for Android
Available in Opera Android from version 72 Opera Android
Available in Safari on iOS from version 15.4 Safari on iOS
Available in Samsung Internet from version 20.0 Samsung Internet
Available in WebView Android from version 106 WebView Android
Available in WebView on iOS from version 15.4 WebView on iOS
Not available in Deno Deno
Available in Node.js from version 19.0.0 Node.js
{
trailingZeroDisplay: "auto",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
trailingZeroDisplay: "stripIfInteger",
style: "currency",
currency: "EUR"
}
123 456,79 €

localeMatcher

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
localeMatcher: "best fit",
style: "currency",
currency: "EUR"
}
123 456,79 €
{
localeMatcher: "lookup",
style: "currency",
currency: "EUR"
}
123 456,79 €