货币格式化器

格式化货币值

Basic Settings
Advanced Options
How Currency Formatting Works

This tool uses JavaScript's Intl.NumberFormat API to format currency according to locale and international standards. It supports hundreds of currencies and language variations automatically.

Example Usage

new Intl.NumberFormat('id-ID', {
  style: 'currency',
  currency: 'IDR',
  minimumFractionDigits: 2
}).format(1234.56)
// Output: "Rp1.234,56"

Key Features

  • Decimal Control: Choose 0-4 decimal places for precision
  • Display Styles: Symbol ($), Code (USD), or Full Name (US Dollar)
  • Negative Formats: Standard (-$100) or Accounting ($100)
  • Compact Notation: Display as $1.2K or $3.4M for large numbers
  • Grouping: Toggle thousands separators on/off
  • Auto-save: Your preferences are saved automatically

Common Use Cases

💰 E-commerce

Product pricing, cart totals, invoices

📊 Financial Reports

Balance sheets, P&L statements

🌍 Multi-currency Apps

International pricing, forex

💳 Payment Systems

Transaction displays, receipts