HTML Entity for Right Arrow Over Left Arrow (⇄)

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

What You'll Learn

How to display the Right Arrow Over Left Arrow (⇄) in HTML using the named entity, hexadecimal, decimal, and CSS escape methods. This symbol is U+21C4 (RIGHTWARDS ARROW OVER LEFTWARDS ARROW) in the Arrows block (U+2190–U+21FF)—a right arrow stacked over a left arrow, used for bidirectional relationships, logic notation, math, and swap-style UI controls.

Render it with ⇄ (named), ⇄, ⇄, or CSS \21C4. Related: U+21C6 (⇆, left arrow over right / ⇆), U+2194 (↔, left right arrow / ↔). Do not confuse ⇄ with single arrows ← or →.

⚡ Quick Reference — Right Arrow Over Left Arrow

Unicode U+21C4

Arrows (U+2190–U+21FF)

Hex Code ⇄

Hexadecimal reference

HTML Code ⇄

Decimal reference

Named Entity ⇄

Standard HTML entity

Reference Table
Name           Value
────────────   ──────────
Unicode        U+21C4
Hex code       ⇄
HTML code      ⇄
Named entity   ⇄
CSS code       \21C4
Meaning        Rightwards arrow over leftwards arrow
Related        U+21C6 = left arrow over right (⇆, ⇆)
               U+2194 = left right arrow (↔, ↔)
Block          Arrows (U+2190–U+21FF)
1

Complete HTML Example

A simple example showing ⇄ using the named entity, hexadecimal code, decimal HTML code, and a CSS content escape:

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point::after{
   content: "\21C4";
  }
 </style>
</head>
<body>
<p>Hex: &#x21C4;</p>
<p>Decimal: &#8644;</p>
<p>Named: &rlarr;</p>
<p id="point">CSS: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

U+21C4 is widely supported in all modern browsers—it is part of the standard Arrows block:

Chrome1+
Firefox1+
Safari1+
Edge12+
Opera4+
Android4.4+
iOS Safari1+

👀 Live Preview

See the Right Arrow Over Left Arrow (⇄) in common contexts:

Bidirectional A ⇄ B (two-way relation)
Swap control Source ⇄ Target
Large glyph
Arrow comparison ⇆ ⇄ ↔
Entity refs &rlarr; &#x21C4; &#8644; \21C4

🧠 How It Works

1

Named HTML Entity

&rlarr; is the named entity for U+21C4 (rightwards arrow over leftwards arrow). It is the most readable option in HTML source.

HTML markup
2

Hexadecimal Code

&#x21C4; uses the Unicode hexadecimal value 21C4.

HTML markup
3

Decimal HTML Code

&#8644; uses the decimal Unicode value 8644 for the same character.

HTML markup
4

CSS Entity

\21C4 is used in CSS stylesheets in the content property of pseudo-elements.

CSS stylesheet
=

Same visual result

All four methods produce . Unicode U+21C4 in the Arrows block. Previous: Right Arrow Loop (↬). Next: Right Arrow Plus Below (⥥).

Use Cases

The Right Arrow Over Left Arrow (⇄) is commonly used in:

🔢 Logic & math

Bidirectional relations, equivalence, and notation in proofs and formulas.

🔀 Swap controls

UI buttons that exchange or toggle between two values or panels.

📝 Academic writing

Research papers and docs showing two-way mapping or correspondence.

🛠 Diagrams

Flowcharts and system diagrams with bidirectional data flow.

🎨 UI design

Resize handles, transfer lists, and sync indicators in interfaces.

♿ Accessibility

Pair ⇄ with plain language (e.g. “swap” or “bidirectional”) for screen readers.

💡 Best Practices

Do

  • Prefer &rlarr; in HTML for readable source markup
  • Use ⇄ when showing bidirectional or swap relationships
  • Set <meta charset="utf-8">
  • Link to Left Arrow Over Right Arrow for the paired ⇆ symbol
  • Keep one entity style consistent across your project
  • Use CSS \21C4 for decorative bidirectional arrows in pseudo-elements

Don’t

  • Confuse ⇄ (U+21C4) with ⇆ (U+21C6) or ↔ (U+2194)
  • Use padded Unicode notation like U+021C4—the correct value is U+21C4
  • Use CSS escape \21C4 in HTML text nodes
  • Substitute <-> when the stacked arrow ⇄ is intended
  • Confuse ⇄ with loop arrow ↬ (&rarrlp;)

Key Takeaways

1

Four ways to render U+21C4 in HTML and CSS

&rlarr; &#x21C4; &#8644;
2

For CSS, use \21C4 in the content property

3

Unicode U+21C4 — RIGHTWARDS ARROW OVER LEFTWARDS ARROW (⇄)

4

Paired with left-over-right ⇆ (&lrarr;); distinct from ↔ and single arrows

❓ Frequently Asked Questions

Use &rlarr; (named), &#x21C4; (hex), &#8644; (decimal), or \21C4 in CSS content. All four render ⇄.
U+21C4 (RIGHTWARDS ARROW OVER LEFTWARDS ARROW). Arrows block (U+2190–U+21FF). Hex 21C4, decimal 8644.
For logic symbols, math notation, bidirectional relationships, swap controls, academic writing, and content showing two-way flow or equivalence.
&rlarr; is more readable in source markup; &#8644; and &#x21C4; are numeric alternatives. All render ⇄ in modern browsers.
Named and numeric HTML references (&rlarr;, &#8644;, &#x21C4;) go in markup. The CSS escape \21C4 is used in stylesheets, typically on ::before or ::after. Both render ⇄.

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