1. Home
    Home Page
  2. Tax
    Income Tax & Other Taxes
  3. Forms
    Fillable Forms
  4. Finance
    Personal Finance
  5. PPF
    PPF Calculator, forms, Rules & Info
  6. SSY
    SSY Calculator, form, Rules & Info
  7. Widgets
    Complete code / Embed code
  8. Misc.
    Misc. scripts, calculators & utilities
Home  ❯  Misc.  ❯  JS to Insert Commas

JavaScript to Insert Commas in Number

Scripts to Insert Commas in Number in Indian / US Number Format

in Indian number format has commas for separating thousands, lacs, crores and so on. The format is like 11,11,11,11,111.00

The US number format has commas for separating thousands, millions, billions and so on. The format is like 11,111,111,111.00

You can use the below scripts to convert a number entered in an input field without commas to a string containing commas in Indian number format or US Number format with or without two decimal places. The script uses jQuery.

Demo

Enter any number
Updated : Aug 21, 2020