HTML Entity for Left Right Double Arrow (⇔)

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 1 Code Example
Unicode U+21D4

What You'll Learn

How to display the Left Right Double Arrow (⇔) in HTML using the named entity, hexadecimal, decimal, and CSS escape methods. This symbol is U+21D4 (LEFT RIGHT DOUBLE ARROW) in the Arrows block (U+2190–U+21FF)—a bidirectional double arrow used for equivalence, reversible relations, logical iff, and two-way navigation in logic, mathematics, and UI.

Render it with ⇔ (named), ⇔, ⇔, or CSS \21D4. Do not confuse ⇔ with U+2194 (↔, single left right arrow / ↔) or U+21CE (⇎, left right double arrow with stroke).

⚡ Quick Reference — Left Right Double Arrow

Unicode U+21D4

Arrows block

Hex Code ⇔

Hexadecimal reference

HTML Code ⇔

Decimal reference

Named Entity ⇔

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+21D4
Hex code       ⇔
HTML code      ⇔
Named entity   ⇔
CSS code       \21D4
Meaning        Left right double arrow (equivalence)
Related        U+2194 = left right arrow (↔)
               U+21CE = double arrow with stroke (⇎)
1

Complete HTML Example

A simple example showing the Left Right Double Arrow (⇔) using the named entity, hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\21D4";
  }
 </style>
</head>
<body>
<p>Arrow (hex): &#x21d4;</p>
<p>Arrow (decimal): &#8660;</p>
<p>Arrow (named): &hArr;</p>
<p id="point">Arrow (CSS): </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Left Right Double Arrow (⇔) is universally supported in all modern browsers when the font includes Arrows block glyphs:

Chrome 1+
Firefox 1+
Safari 1+
Edge 12+
Opera 4+
Android 4.4+
iOS Safari 1+

👀 Live Preview

See the Left Right Double Arrow (⇔) rendered live in different contexts:

Inline text A ⇔ B means A is equivalent to B (iff).
Large glyph
Logic notation PQ — if and only if
Navigation UI Expand ⇔ Collapse
Arrow comparison ↔ ⇔ ⇎
Numeric refs &hArr; &#x21D4; &#8660; \21D4

🧠 How It Works

1

Hexadecimal Code

&#x21D4; uses the Unicode hexadecimal value 21D4 for the left right double arrow. The x prefix indicates hexadecimal format.

HTML markup
2

Decimal HTML Code

&#8660; uses the decimal Unicode value 8660 to display the same character.

HTML markup
3

Named Entity

&hArr; is the semantic named entity — the easiest to read in source HTML and the most self-descriptive option.

HTML markup
4

CSS Entity

\21D4 is used in CSS stylesheets in the content property of pseudo-elements like ::after.

CSS stylesheet
=

Same visual result

All four methods produce . Unicode U+21D4 is in the Arrows block. Previous: Left Right Arrow Vertical Stroke.

Use Cases

The Left Right Double Arrow (⇔) is commonly used in:

📜 Logic & Equivalence

Indicate logical equivalence (e.g. A ⇔ B) in formal logic and proofs.

📐 Mathematics

Denote “if and only if” (iff) or bidirectional implication.

💻 Navigation & UI

Show two-way navigation, expand/collapse, or bidirectional controls.

📄 Technical Documentation

Indicate reversible mappings, two-way sync, or equivalence in specs.

📚 Academic & Research

Use in papers for equivalence and bidirectional relation notation.

📊 Diagrams & Flowcharts

Represent two-way flow or symmetric relations between nodes.

💡 Best Practices

Do

  • Use &hArr; for readable source markup
  • Add aria-label or surrounding text for accessibility
  • Verify your font supports the Arrows block (U+21D4)
  • Keep one entity style per project for consistency
  • Provide context when the symbol denotes equivalence or two-way relation

Don’t

  • Confuse ⇔ (double arrow) with ↔ (single left right arrow)
  • Use CSS \21D4 inside HTML text nodes
  • Assume all fonts render the double arrow identically
  • Mix entity styles randomly in one file
  • Use the symbol without explaining equivalence meaning on first use

Key Takeaways

1

Three HTML references plus CSS all render ⇔

&#x21D4; &#8660; &hArr;
2

For CSS, use \21D4 in the content property

3

Unicode U+21D4 — LEFT RIGHT DOUBLE ARROW

4

Prefer &hArr; for readability—it’s the named HTML entity

❓ Frequently Asked Questions

Use &#x21D4; (hex), &#8660; (decimal), &hArr; (named), or \21D4 in CSS content. All four methods render ⇔ correctly.
U+21D4 (LEFT RIGHT DOUBLE ARROW). Arrows block (U+2190–U+21FF). Hex 21D4, decimal 8660. Used for bidirectional double arrows, often meaning equivalence or reversible relation.
In logic, mathematics (equivalence), technical documentation, navigation UI, and diagrams to indicate bidirectional relation, equivalence, or two-way flow.
HTML references (&#8660;, &#x21D4;, or &hArr;) go in markup. The CSS escape \21D4 is used in stylesheets, typically on ::before or ::after. Both produce ⇔.
Yes. &hArr; is the named HTML entity for U+21D4. You can also use &#8660; (decimal) or &#x21D4; (hex) and \21D4 in CSS.

Explore More HTML Entities!

Discover 1500+ HTML character references — arrows, symbols, math operators, and more.

All HTML Entities →

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