Ampersand vs Asterisk
VS
Property Comparison
| Property | & 0026 | * 002A |
|---|---|---|
| Name | Ampersand | Asterisk |
| Category | Latin Extended | Latin Extended |
| Block | Basic Latin | Basic Latin |
| Script | Zyyy | Zyyy |
| General Category | Other Punctuation (Po) | Other Punctuation (Po) |
| Bidirectional | ON | ON |
Encoding Comparison
| Format | 0026 | 002A |
|---|---|---|
| Unicode | U+0026 | U+002A |
| HTML Decimal | & | * |
| HTML Hex | & | * |
| CSS | \0026 | \002A |
| JavaScript | \u{26} | \u{2A} |
| Python | \u0026 | \u002a |
| UTF-8 | 26 | 2a |
How to Distinguish
Both Ampersand and Asterisk belong to the Latin Extended category and the Basic Latin block. Compare their codepoints and visual rendering to distinguish them.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.