HTML Entity for At Symbol (@)

Beginner
5 min read
Updated: Sep 2026
1 example
Unicode U+0040

What Is the At Symbol Entity?

The commercial at (@) is Unicode U+0040 in the Basic Latin (ASCII) block. It appears in email addresses ([email protected]), social mentions (@handle), and many programming notations. HTML provides the named entity @.

Remember
Character     @
Unicode       U+0040
Hex entity    @
Decimal       @
Named entity  @
CSS escape    \0040  (or \40)
Simplest      type @ in UTF-8

All of these produce the same glyph: @. Prefer a typed @ in ordinary HTML; use @ / numeric forms when you need an explicit escape; use CSS for generated content.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character@HTML text (UTF-8) — preferred
Named entity@HTML markup
Hex entity@HTML markup
Decimal entity@HTML markup
CSS escape\0040 or \40Stylesheet content

When to Use Which

SituationUse
Email / mention in normal HTMLType @
Template treats @ as special@, @, or @
Ampersand in text / URLs& / & (different character)
ASCII asterisk* (U+002A)
Generated text via ::before / ::aftercontent: "\0040"

Live Preview

Commercial at in everyday HTML contexts.

Large glyph @
Mention Thanks @codetofun for the tip.
mailto hint mailto:[email protected]
With entities Named: @ | Hex: @ | Decimal: @

Complete HTML Example

One page that shows @ with hex, decimal, named entity, CSS escape, and a typed character. Use View Output or open the live editor.

Hex + Decimal + Named + CSS + Typed

Five ways to produce @ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>At Symbol (@) in HTML</title>
  <style>
    #point::after {
      content: "\0040";
    }
  </style>
</head>
<body>
  <p>At symbol using Hex Code: &#x40;</p>
  <p>At symbol using HTML Code: &#64;</p>
  <p>At symbol using Named Entity: &commat;</p>
  <p id="point">At symbol using CSS Entity: </p>
  <p>Typed directly: @</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+0040 → &#x40; in HTML. The browser turns it into @.

2. Decimal: same code point as 64 → &#64;. Same result as hex.

3. Named: &commat; is the standard HTML name for U+0040 — useful when @ is reserved in a tool.

4. CSS: use \0040 (or \40) in content (not an HTML entity). #point::after appends that @ after the paragraph text.

5. Typed @: fine in UTF-8 source and usually the simplest choice. All five lines show the same glyph.

Pitfalls & Tips

Common mistakes when working with the at symbol (@).

Prefer

Type @ when you can

In normal HTML text a literal @ is clearest. Entities are optional, not required.

Templates

Escape when @ is special

Some engines reserve @. Then use &commat;, &#x40;, or &#64;.

&

Not an ampersand

& is U+0026. Do not confuse it with commercial at.

CSS vs HTML

Do not mix escapes

\0040 belongs in CSS. &commat; / &#x40; belong in HTML.

mailto

Keep a real address

For mailto: links, the address still needs a real @ (literal or decoded entity).

Semicolon

End references

Always finish with ; — write &commat;, not &commat.

Browser Support

The at symbol (U+0040) and its entity forms (&commat;, &#x40;, &#64;, CSS \\0040) are supported in all mainstream browsers. It is a core ASCII character.

✓ Universal support

At Symbol (@)

Type @, or encode with named, hex, decimal, or CSS escape — same glyph everywhere encoding is supported.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer All versions
Yes
U+0040 / entities Full support

Bottom line: Prefer a typed @ for normal text. Use &commat; or numeric forms when tooling requires an escape, and \\0040 only inside CSS content.

Key Takeaways

  • Unicode: commercial at is U+0040 (decimal 64).
  • HTML: type @, or use &commat; / &#x40; / &#64;.
  • CSS: use \0040 (or \40) inside content.
  • Watch out: @ ≠ & (ampersand).

One line: U+0040 → type @ / &commat; / &#x40; / &#64; / CSS \0040.

Frequently Asked Questions

Use &#x40; (hex), &#64; (decimal), &commat; (named), a literal @ in UTF-8, or the CSS escape \0040 (or \40) in the content property. All render @.
U+0040 (hex 40, decimal 64). Unicode names it COMMERCIAL AT. It belongs to the Basic Latin (ASCII) block.
Yes. &commat; maps to U+0040. Prefer a typed @ in normal text; use &commat; or numeric forms when you need an explicit escape.
When a template engine, email preprocessor, or tooling treats @ as special. In ordinary HTML text, a plain @ is fine and usually clearest.
HTML entities (&#64;, &#x40;, or &commat;) go in markup. The CSS escape \0040 (or \40) is used in stylesheets (usually in the content property of ::before/::after). Both render @.
Yes for a valid email string (user@domain). You can write it as a literal @ or encode it with &commat; / &#64; / &#x40; — same character.

Did you know?

The commercial at is Unicode U+0040 (decimal 64) in Basic Latin (ASCII). HTML’s named reference is &commat;. A plain @ in UTF-8 HTML is usually fine — use entities when a template or tool treats @ as special.

Next: Atom Symbol

Learn the HTML entity for the atom symbol (⚛).

Next tutorial →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful