JavaScript 2025 · Strings

Format numbers and currency

Format with the user's locale conventions.

new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(1234.5);

Official JavaScript 2025 documentation

More strings commands

All strings commands · JavaScript 2025 cheatsheet

Was this page helpful?