HTML Entity for Crossed Swords (⚔)

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

What Is Crossed Swords?

Crossed swords (⚔) is the Unicode character at U+2694 in the Miscellaneous Symbols block. It is a spacing symbol often used for battle, duel, or gaming labels — and is not a typographic dagger.

Remember
Character     ⚔
Unicode       U+2694
Hex entity    ⚔
Decimal       ⚔
CSS escape    \2694
Named entity  (none for U+2694)
Not the same  † U+2020 · ☨ U+2628 · ☩ U+2629

Prefer typing ⚔ in UTF-8 HTML when your editor supports it; use ⚔ or ⚔ when you need an explicit entity.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Direct character⚔HTML text (UTF-8)
Hex entity⚔HTML markup
Decimal entity⚔HTML markup
CSS escape\2694Stylesheet content
Typographic dagger† / † U+2020Footnote mark — not crossed swords

When to Use Which

SituationUse
Battle / duel / PvP label⚔ or type ⚔
Footnote dagger mark† U+2020 (†)
Cross of Lorraine☨ U+2628
Generated / numeric-only markup⚔ or ⚔
Generated text via ::before / ::aftercontent: "\2694"

Live Preview

Crossed swords rendered in common text contexts.

Inline label PvP Battle ⚔
Large glyph ⚔
Compared ⚔   †   ☨   ☩
Monospace duel: ⚔
With entities Hex: ⚔ | Decimal: ⚔

Complete HTML Example

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

Hex + Decimal + CSS + Typed

Four ways to produce ⚔ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Crossed Swords (⚔) in HTML</title>
  <style>
    #point::after {
      content: "\2694";
    }
  </style>
</head>
<body>
  <p>Crossed swords using Hex Code: &#x2694;</p>
  <p>Crossed swords using HTML Code: &#9876;</p>
  <p id="point">Crossed swords using CSS Entity: </p>
  <p>Typed directly: ⚔</p>
</body>
</html>
Try It Yourself

How It Works

1. Hex: U+2694 → &#x2694; in HTML → ⚔.

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

3. CSS: use \2694 in content (not an HTML entity). #point::after appends that ⚔ after the paragraph text.

4. Typed: in a UTF-8 page you can paste ⚔ directly. All four lines show the same glyph.

Pitfalls & Tips

Common mistakes when working with Crossed Swords.

Named?

No named entity

HTML5 has no &…; name for U+2694. Use &#x2694; or &#9876;.

†

Not a footnote dagger

† (&dagger;) is a typographic mark. Do not use it as a stand-in for crossed swords.

Emoji

Text symbol vs emoji

U+2694 is a text symbol. Some platforms may render it emoji-style; use SVG when you need a fixed icon look.

CSS vs HTML

Do not mix escapes

\2694 belongs in CSS strings. &#x2694; / &#9876; belong in HTML.

Fonts

Symbol font coverage

Some fonts omit U+2694. Prefer a font with Miscellaneous Symbols coverage for display.

Semicolon

End references

Always finish with ; — write &#9876;, not &#9876.

Browser Support

Crossed swords (U+2694) and its numeric entity forms (&#x2694;, &#9876;, CSS \\2694) are supported in all mainstream browsers. Visible glyphs depend on font coverage.

✓ Universal support

Crossed Swords (⚔)

Encode with hex, decimal, CSS escape, or type the character — same code point 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+2694 / entities Full support

Bottom line: Use &#x2694; or &#9876; in HTML when you need this glyph, and \\2694 only inside CSS content. Do not confuse with &dagger; (U+2020).

Key Takeaways

  • Unicode: crossed swords is U+2694 (decimal 9876) — glyph ⚔.
  • HTML: type ⚔, or use &#x2694; / &#9876; (no named entity).
  • CSS: use \2694 inside content for generated text.
  • Watch out: ⚔ ≠ † ≠ ☨ (swords ≠ dagger ≠ Lorraine cross).

One line: U+2694 → &#x2694; / &#9876; / CSS \2694 / type ⚔.

Frequently Asked Questions

Use &#x2694; (hex), &#9876; (decimal), type ⚔ directly in UTF-8, or the CSS escape \2694 in content. There is no named HTML entity for U+2694.
U+2694 (hex 2694, decimal 9876). It belongs to the Miscellaneous Symbols block and shows two swords crossed.
No. Use numeric references like &#9876; or &#x2694;, or type the character ⚔ in a UTF-8 document.
Use it in gaming, fantasy, or medieval-themed labels for battle or duel. Prefer SVG or an emoji/image when you need a precise icon across all devices.
HTML entities (&#9876; or &#x2694;) go in markup. The CSS escape \2694 goes in stylesheet strings (usually content on ::before/::after).
⚔ (U+2694) is crossed swords. † (U+2020 / &dagger;) is a typographic dagger footnote mark. ☨ (U+2628) is the Cross of Lorraine — a heraldic cross, not swords.

Did you know?

Crossed swords is Unicode U+2694 (decimal 9876) — glyph ⚔ in the Miscellaneous Symbols block. HTML5 has no named entity. It is a spacing symbol often used for battle, duel, or gaming labels. It is not dagger † (U+2020 / &dagger;) and not Cross of Lorraine ☨ (U+2628).

Next: Cruzeiro Sign

Learn the HTML entity for cruzeiro sign (U+20A2).

Cruzeiro Sign 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