HTML Entity for Left Right Arrow (↔)

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

What You'll Learn

How to display the Left Right Arrow (↔) in HTML using the named entity, hexadecimal, decimal, and CSS escape methods. This symbol is U+2194 (LEFT RIGHT ARROW) in the Arrows block (U+2190–U+21FF)—a bidirectional horizontal arrow used in navigation, diagrams, equivalence notation, and UI controls.

Render it with ↔ (named), ↔, ↔, or CSS \2194. Related: U+2190 (←, left arrow / ←), U+2192 (→, right arrow / →).

⚡ Quick Reference — Left Right Arrow

Unicode U+2194

Arrows block

Hex Code ↔

Hexadecimal reference

HTML Code ↔

Decimal reference

Named Entity ↔

Most readable option

Reference Table
Name           Value
────────────   ──────────
Unicode        U+2194
Hex code       ↔
HTML code      ↔
Named entity   ↔
CSS code       \2194
Meaning        Left right arrow (bidirectional)
Related        U+2190 = left arrow (←)
               U+2192 = right arrow (→)
1

Complete HTML Example

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

html
<!DOCTYPE html>
<html>
<head>
 <style>
  #point:after{
   content: "\2194";
  }
 </style>
</head>
<body>
<p>Symbol using Hexadecimal: &#x2194;</p>
<p>Symbol using HTML Code: &#8596;</p>
<p>Symbol using HTML Entity: &harr;</p>
<p id="point">Symbol using CSS Entity: </p>
</body>
</html>
Try it Yourself

🌐 Browser Support

The Left Right Arrow (↔) renders in 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 Arrow (↔) in navigation and diagram contexts:

Bidirectional link Page A ↔ Page B
Equivalence x ↔ y
UI label ↔ Swap / resize
Large glyph
Arrow comparison ↔ ← → ⇔
Entity refs &harr; &#x2194; &#8596; \2194

🧠 How It Works

1

Named HTML Entity

&harr; is the named entity for the Left Right Arrow (bidirectional horizontal arrow). Easy to read in navigation and diagram markup.

HTML markup
2

Hexadecimal Code

&#x2194; uses the Unicode hexadecimal value 2194. The x prefix indicates hexadecimal format.

HTML markup
3

Decimal HTML Code

&#8596; uses the decimal Unicode value 8596 for the same symbol.

HTML markup
4

CSS Entity

\2194 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+2194 is in the Arrows block. Previous: Left Parenthesis.

Use Cases

The Left Right Arrow (↔) is commonly used in:

🚀 Navigation

Bidirectional links, swap controls, and two-way navigation in web interfaces.

📊 Flowcharts

Show two-way flow or reversible relationships in process diagrams.

📐 Math notation

Equivalence, bidirectional mappings, and horizontal arrows in technical writing.

📚 Technical docs

Illustrate bidirectional arrow symbols in guides and reference material.

🎯 UI design

Resize handles, swap buttons, and horizontal direction indicators.

🗃 Entity reference

Document and teach HTML entity usage for Arrows block symbols.

💡 Best Practices

Do

  • Prefer &harr; in HTML for readability
  • Use fonts that support the Arrows block (U+2194)
  • Set <meta charset="utf-8">
  • Pair ↔ with context (navigation, diagrams) so meaning is clear
  • Keep one encoding style per project for consistency
  • Distinguish ↔ from ← and → when bidirectional vs single direction matters

Don’t

  • Confuse &harr; (U+2194, left right) with &lrarr; (U+21C6, left arrow over right)
  • Confuse &harr; (U+2194) with &hArr; (U+21D4, double arrow)
  • Use CSS \2194 inside HTML text nodes
  • Assume all fonts render arrow glyphs identically
  • Mix named and numeric entities inconsistently in the same component

Key Takeaways

1

Four ways to render U+2194 in HTML and CSS

&harr; &#x2194; &#8596;
2

For CSS, use \2194 in the content property

3

Unicode U+2194 — LEFT RIGHT ARROW

4

Arrows block (U+2190–U+21FF) — named entity &harr;

❓ Frequently Asked Questions

Use &harr; (named), &#x2194; (hex), &#8596; (decimal), or \2194 in CSS content. All four methods render ↔ correctly.
U+2194 (LEFT RIGHT ARROW). Arrows block (U+2190–U+21FF). Hex 2194, decimal 8596. A bidirectional horizontal arrow pointing left and right.
In navigation and UI elements, flowcharts and diagrams, mathematical notation, technical documentation, and any design that needs a left-right or bidirectional arrow.
Named and numeric HTML references (&harr;, &#8596;, &#x2194;) go in markup. The CSS escape \2194 is used in stylesheets, typically on ::before or ::after. Both produce ↔.
Yes. &harr; is the named HTML entity for U+2194. You can also use &#8596; (decimal) or &#x2194; (hex) and \2194 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