About This Tool
What is Currency Formatter?
Currency Formatter is a browser-based playground for testing and previewing Intl.NumberFormat currency output. It supports 150+ currencies, 200+ locales, and comprehensive formatting options including notation (standard, scientific, engineering, compact), sign display, accounting format, grouping separators, trailing zero handling, and custom fraction digits. All processing happens locally in your browser with no server uploads or tracking.
How to use
1. Select a Currency (e.g., USD, EUR, JPY) and Locale (e.g., en-US, de-DE, ja-JP). 2. Choose Single or Bulk mode: - Single: Enter one value to preview formatting instantly. - Bulk: Paste multiple values (one per line) to format them all at once. 3. Adjust Decimal Places and other basic options in the top bar. 4. Click Advanced Settings to configure notation, sign display, accounting format, and more. 5. View the Formatted Result in the preview area. 6. Use the Code tab to generate implementation snippets for JavaScript, TypeScript, Python, Java, or PHP. 7. Use the Config tab to copy or export the Intl.NumberFormat configuration as JSON.
Core features
- •150+ currencies — Format any global currency symbol (USD, EUR, GBP, JPY, CNY, INR, etc.).
- •200+ locales — Test formatting rules for different regions and languages.
- •Notation options — Switch between standard, scientific, engineering, and compact notation.
- •Accounting format — Display negative amounts in accounting brackets: (1,234.56) instead of -1,234.56.
- •Grouping separators — Enable or disable thousands separators (1,234 vs 1234).
- •Fraction digits — Control minimum and maximum decimal places (0 to 8 digits).
- •Sign display — Show, hide, or always display the sign; exclude zero.
- •Trailing zeros — Strip zero decimals for cleaner display.
- •Single and bulk modes — Format one value or 1000+ at once.
Code generation
The Code tab generates ready-to-use implementation snippets for:
- •JavaScript — Using native Intl.NumberFormat API.
- •TypeScript — Typed wrapper examples.
- •Python — Babel.numbers for currency formatting.
- •Java — java.text.DecimalFormat or NumberFormat.
- •PHP — NumberFormatter from intl extension.
Export and sharing
In bulk mode, you can:
- •Copy All — Copy all formatted results to clipboard.
- •Export TXT — Download results as a plain-text file.
- •Export CSV — Export input and output columns for import into spreadsheets.
Parsing and limitations
The input parser handles common currency string patterns:
- •Plain numbers: 1000, 1,234.56, 1.234,56
- •Currency codes: USD 1000, 1000 EUR
- •Symbols: $1000, €1000, ¥1000
- •Negative and accounting: -$1000, ($1000)
Privacy
All number parsing, formatting, and export happen 100% in your browser. Your data is never sent to any server, stored in a database, or tracked in any analytics. You can safely use this tool with sensitive financial or business data.