Coding and Programming Symbols: Complete Reference Guide
Every programmer interacts with dozens of special characters daily, from curly braces and angle brackets to operators and escape sequences. But if you've ever struggled to find that one symbol, wondered what a particular character is called, or needed to copy a special character quickly — this guide is for you. Here's every symbol you'll encounter in programming, organized by category, with copy-paste support.
Bracket and Delimiter Symbols
Brackets are the backbone of code structure. Every programming language uses them to define blocks, group expressions, and organize data. Here are all the bracket types you'll encounter:
Parentheses ( )
Parentheses are used for function calls, grouping expressions, and defining parameters. In JavaScript, Python, and most languages, console.log() or print() wouldn't work without them.
- Left parenthesis:
( - Right parenthesis:
)
Square Brackets [ ]
Square brackets handle array indexing, list literals, and optional syntax in many languages. Access the first element of an array with array[0] or define a list with [1, 2, 3].
- Left square bracket:
[ - Right square bracket:
]
Curly Braces { }
Curly braces define code blocks, object literals, sets, and dictionaries. In C-style languages (JavaScript, Java, C++, C#), they mark the beginning and end of functions, loops, and conditionals. In Python, they're used for dictionaries and sets.
- Left curly brace:
{ - Right curly brace:
}
Angle Brackets < >
Angle brackets appear in HTML/XML tags, generic type parameters in languages like TypeScript and Java, and comparison operations. In HTML, every tag is wrapped in angle brackets: <div>, <p>, <span>.
- Left angle bracket:
< - Right angle bracket:
>
Arithmetic and Assignment Operators
These are the workhorses of any programming language. Every calculation, comparison, and assignment uses these symbols.
Basic Arithmetic
- Plus:
+— addition and string concatenation - Minus:
-— subtraction and negation - Asterisk:
*— multiplication and pointer dereference - Forward slash:
/— division - Percent:
%— modulo (remainder) - Caret:
^— bitwise XOR (or exponent in some languages)
Assignment Operators
- Equals:
=— assignment - Add assign:
+=— add and assign - Subtract assign:
-=— subtract and assign - Multiply assign:
*= - Divide assign:
/= - Modulo assign:
%=
Comparison and Logical Operators
These symbols form the backbone of conditional logic — every if statement, while loop, and comparison uses them.
Comparison Operators
- Double equals:
==— loose equality (JavaScript) - Triple equals:
===— strict equality (JavaScript) - Not equals:
!=or!== - Less than:
< - Greater than:
> - Less than or equal:
<= - Greater than or equal:
>=
Logical Operators
- Ampersand (double):
&&— logical AND - Pipe (double):
||— logical OR - Exclamation:
!— logical NOT - Question mark:
?— ternary operator - Nullish coalescing:
??— fallback operator (JavaScript) - Optional chaining:
?.— safe property access (JavaScript/TypeScript)
String and Character Symbols
Working with text requires its own set of special characters. These symbols define strings, escape sequences, and template literals across different programming languages.
Quote Characters
- Single quote:
'— character literals and strings - Double quote:
"— string literals - Backtick:
`— template literals (JavaScript), raw strings (Python)
Escape Characters
- Backslash:
\— escape character - Newline:
\n - Tab:
\t - Carriage return:
\r - Null character:
\0
Punctuation and Structural Symbols
These symbols might seem mundane, but they're essential for code structure and readability.
Semicolons and Colons
- Semicolon:
;— statement terminator (C, Java, JavaScript) - Colon:
:— key-value separator, type annotations, slices (Python) - Double colon:
::— scope resolution (C++, Ruby), method reference (Java)
Dots and Commas
- Period:
.— property access, method calls, decimal point - Comma:
,— separator in lists, arguments, arrays - Spread operator:
...— spread/rest (JavaScript), ellipsis
Special Characters
- At sign:
@— decorators (Python), annotations (Java) - Hash/Pound:
#— comments (Python, Ruby), hex colors (CSS) - Dollar sign:
$— variable interpolation (PHP, shell), jQuery selector - Underscore:
_— variable naming, placeholder (Python) - Tilde:
~— bitwise NOT, home directory (shell) - Backtick:
`— template literals, command substitution
Bitwise and Special Operators
Bitwise operators work at the binary level, manipulating individual bits within integers. They're used in low-level programming, cryptography, and performance-critical code.
- Bitwise AND:
& - Bitwise OR:
| - Bitwise XOR:
^ - Bitwise NOT:
~ - Left shift:
<< - Right shift:
>> - Unsigned right shift:
>>>(JavaScript)
Arrow Functions and Lambda Symbols
Modern programming languages use arrow notation for anonymous functions and lambdas. These have become some of the most recognizable symbols in contemporary code.
- Fat arrow:
=>— arrow functions (JavaScript/TypeScript) - Thin arrow:
->— lambda expressions (Java, C++), function types (Haskell) - Colon arrow:
: =— assignment (Pascal, Go) - Pipeline:
|>— pipeline operator (Elixir, F#)
HTML and CSS Special Characters
Web development brings its own set of essential symbols. If you're writing HTML or CSS, these are the characters you'll use constantly.
HTML Entity Symbols
- Ampersand:
& - Less than:
< - Greater than:
> - Quote:
" - Non-breaking space:
- Copyright:
© - Trademark:
™
CSS Special Symbols
- Hash:
#— ID selector - Period:
.— class selector - Asterisk:
*— universal selector - Colon:
:— pseudo-class selector - Double colon:
::— pseudo-element selector - Greater than:
>— child selector - Plus:
+— adjacent sibling selector - Tilde:
~— general sibling selector
Common Keyboard Shortcuts for Typing Code Symbols
Most coding symbols live on your keyboard, but some are harder to find than others. Here are the less obvious ones:
Mac
- Backtick (`): Located at the top left, above the Tab key
- Tilde (~): Shift + backtick key
- Curly braces: Shift + [ and Shift + ]
- Pipe (|): Shift + backslash key
- Underscore (_): Shift + minus key
Windows
- Backtick (`): Top left of keyboard, above Tab
- Curly braces: Shift + [ and Shift + ]
- Angle brackets: Shift + , and Shift + .
- Backslash: Usually above Enter or next to right Shift
- Forward slash: Bottom row, next to right Shift
Symbols by Programming Language
Different languages use symbols in unique ways. Here's a quick reference for language-specific symbol usage:
Python
#— comments:— indentation blocks, dictionary keys, type hints@— decorators**— exponentiation, dictionary unpacking//— floor division->— return type annotation
JavaScript/TypeScript
===— strict equality=>— arrow function...— spread/rest operator??— nullish coalescing?.— optional chaining`$`— template literal interpolation
C/C++
&— address-of and reference operator*— pointer dereference->— member access through pointer::— scope resolution<<and>>— stream insertion/extraction
Ruby
:— symbol prefix (:name)#— commentsdo..endand{..}— blocks| |— block parameters
Quick Copy-Paste Reference
Need a symbol fast? Here's every common coding symbol in one place:
( ) [ ] { } < > / \ | & ^ ~ ` ! @ # $ % * + - = _ . , ; : ? ' "
Combined operators: == === != !== <= >= && || += -= *= /= %= ** // << >> => -> ?? ?. ... ::
Conclusion
Programming is built on these symbols. From the humble semicolon that ends every statement to the elegant arrow that defines modern functions, every character serves a purpose. Whether you're debugging a missing curly brace, looking up the HTML entity for an ampersand, or trying to remember where the pipe character lives on your keyboard — this reference has you covered. Bookmark it and come back whenever you need it.