Number format playground

← All tools

Tweak Intl.NumberFormat options and see how a number renders for different locales, currencies, and notations — then copy the exact code.

Everything runs in your browser — your number never leaves this page.

Live output

Code snippet

About this tool

Intl.NumberFormat formats numbers for display — decimals, currencies, percents, and compact forms like "1.2M". Locale matters: the same number looks different in en-US vs de-DE.

Use notation: "compact" for abbreviated large numbers, style: "currency" for prices, and fraction digit bounds when you need fixed decimal places.

Read more

Free books, courses, and software

Get my programming books, course editions, and complete software.

Get the download library →