Asterisk

*

Shortcodes

Copy and paste codes for Asterisk symbol * to use in your websites, apps, blogs, and more.

Unicode
U+002A
Alt Code
42
HTML Code
*
HEX Code
*
CSS Code
\02A
JS/JSON
\u002A
Unix/C/PHP/JAVA
0x2A
URL-encode
%2A
copied

Customize Asterisk Symbol

Customize * symbol as you like and download Asterisk as SVG or PNG or copy its HTML code to use in your projects.

Preview helps customize symbol. Downloaded image and HTML code may have size/spacing differences.
*
 

How to type Asterisk symbol * ?

Using Asterisk Alt Code:

You can type the Asterisk symbol * using your keyboard by using the Alt Code for Asterisk. Before you begin, ensure that your Num Lock is turned on, and use the Numpad to type the code. Then, follow these simple steps:

  1. Hold down the Alt key on your keyboard.
  2. Type the number 42 using the Numpad.
  3. Release the Alt key.

This will make the * appear on your screen.

How to add Asterisk symbol in HTML, CSS, and JS?

Insert * Asterisk using HTML

1. Copy-paste Asterisk directly:
<span>*</span>
2. HTML Decimal Code:
<span>&#42;</span>
3. Hexadecimal Code:
<span>&#x002A;</span>
Preview: *

Add Asterisk symbol with CSS

.asterisk::before {
    content: '\\02A';
}
Preview: Asterisk

Asterisk JavaScript Code

1. Direct Symbol:
document.querySelector('.asterisk').textContent = '*';
2. Unicode Escape for *:
document.querySelector('.asterisk').textContent = '\u002A';
Preview: *