Toolman

ASCII code for asterisk

42

Asterisk — *

Decimal42
Hexadecimal0x2A
Octal0052
Binary00101010
HTML entity*

What it is

Asterisk is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 42, which is why ASCII text is also valid UTF-8.

The full entry

ASCII 42 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.

Frequently asked questions

What is the ASCII code for asterisk?

The ASCII code for asterisk is 42 in decimal, 0x2A in hexadecimal and 0052 in octal.

What is asterisk in binary?

00101010 — eight bits, though ASCII only defines seven, so the top bit is always zero.

Is asterisk a printable character?

Yes. Asterisk is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.

Other characters

Every character by name · The ASCII table · Text to binary converter