Number Formatter API
Category: text
Format numbers, convert between bases, and generate number statistics. Runs entirely in the browser.
Endpoint
N/A
Browser API (JavaScript)
No Server API
Response
Content-Type: N/A
This tool formats numbers in the browser using JavaScript. No server-side API is available.
// Browser-only: numbers formatted using Intl.NumberFormat
cURL Example
# No cURL equivalent — this tool runs in the browser
Code Samples
// Format number with locale
const formatted = new Intl.NumberFormat('en-US', {
style: 'currency', currency: 'USD'
}).format(1234.56);
// → $1,234.56
# Format number
formatted = f'{1234.56:,.2f}'
# → 1,234.56
// Format number NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US); String formatted = nf.format(1234.56); // → $1,234.56