Skip to tool

SQL Format number Online

Format decimal values with separators.

The output updates as you type. The tool processes input in your browser.

Worked example

Choose a decimal precision and grouping separators for display. Keep the original numeric value for calculations. Use PostgreSQL’s function reference to adapt the input to SQL syntax.

Decimals
2
Decimal point
"."
Thousands separator
","
Sample input
1234567.89
Sample output
1,234,567.89

Using this operation in SQL

The interactive result uses JavaScript. Check the database dialect. PostgreSQL text functions use SQL-style one-based positions and LIKE uses its own pattern syntax.

SQL reference