| Symbol Name | Asterisk |
| Unicode Version | 1.1 |
| Unicode | U+002A |
| Unicode block | |
| General category | Other Punctuation (Po) |
| CSS Code | \002A |
| Hex Code | 0x002A |
| HTML Code | * |
| LaTeX | * |
| Symbol | * |
| URL encode (UTF-8 percent) | %2A |
| Spoken / screen reader name | Asterisk |
| UTF-8 | 2A |
| UTF-16 | 002A |
| UTF-32 | 0000002A |
1\documentclass{article}2\usepackage{pifont}3*4\end{document}You can type the asterisk symbol on most modern devices with the help of following methods:
Alt + 42 on Windows (numeric keypad with Num Lock), or insert via Character Map.
Edit → Emoji & Symbols, search "asterisk", or use Unicode Hex Input with 002A.
Ctrl + Shift + U, type 002a, then Enter (layout-dependent).
Paste from this page, use text replacement, or pick from the symbol keyboard.
Paste from this page or use a keyboard with punctuation support.
1span.asterisk::before { content: "\002A"; }1<span>*</span>Asterisk symbol's representation in different programming languages can be found in the table below:
| Language | Representation |
|---|---|
| JavaScript / TypeScript | '\u002A' or String.fromCodePoint(42) |
| Python | '\N{ASTERISK}' or chr(42) |
| Rust | '\u{002A}' |
| C / C++ | UTF-8 source or wchar_t with U+002A |
| Go | string(rune(0x002A)) |
| Ruby | "\u{002A}" |