,

Comma

Unicode
U+002C
Category
Punctuation
HTML Entity
,
CSS
\002C
The comma (,) separates parts of a sentence: items in a list, clauses, an introductory phrase. In English numbers it groups thousands (1,000,000), while most of continental Europe, Latin America and Russia use it as the decimal separator (3,14) — a common source of misread prices and broken spreadsheets. It sits low on the baseline; the raised mark of the same shape is the apostrophe or closing quote ’.

On US and UK keyboards the comma has its own key right of M; Shift with the same key gives <. The decimal key on the numeric keypad types a comma when the system region uses a decimal comma. On iPhone the comma is on the 123 page; on Android keyboards such as Gboard it usually sits next to the space bar.

How to Type

Windows
, key (right of M) · Alt+44
macOS
, key (right of M)
Linux
, key · Ctrl+Shift+U 2c
HTML
&comma;

In Programming

Commas separate function arguments, array and object elements and imported names in nearly every language. JSON forbids a trailing comma after the last element, while JavaScript, Python and Rust allow one. In C and JavaScript the comma operator evaluates both sides and returns the right one; in Python a bare comma builds a tuple (x = 1,). CSV files use it as the field separator, so any field that contains a comma has to be wrapped in quotes.

Tags

comma comma symbol comma key decimal comma thousands separator alt 44 keyboard symbol punctuation ascii

Related Symbols