HTML Entity for Long Left Right Arrow (⟷)

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

What Is the Long Left Right Arrow Entity?

Long Left Right Arrow (⟷) is the Supplemental Arrows-A character at Unicode U+27F7 (LONG LEFT RIGHT ARROW). It is a long bidirectional arrow used for equivalence, toggles, and two-way navigation.

Remember
Character     ⟷
Unicode       U+27F7
Hex entity    ⟷
Decimal       ⟷
Named entity  ⟷ · ⟷ · ⟷
CSS escape    \27F7
Not the same  ↔ (↔) · ⟺ (⟺)

Named, hex, decimal, CSS, and a typed character all produce the same glyph: ⟷. Prefer ⟷ in HTML source for clarity. Case is significant: ⟷ ≠ ⟺.

Quick Reference

One table for every form you will actually use.

FormCodeWhere it goes
Named entity⟷HTML markup (best default)
Named aliases⟷ / ⟷HTML markup (same glyph)
Hex entity⟷HTML markup
Decimal entity⟷HTML markup
CSS escape\27F7Stylesheet content
Direct character⟷UTF-8 HTML text

When to Use Which

SituationUse
Readable arrow HTML source⟷
Need a numeric entity in HTML⟷ or ⟷
Generated text via ::before / ::aftercontent: "\27F7"
Standard short left-right arrow (↔)Use ↔ (U+2194)
Long left-right double arrow (⟺)Use ⟺ (U+27FA)

Live Preview

Long Left Right Arrow in common UI and math contexts.

Toggle A ⟷ B
Large glyph ⟷
Named entity ⟷ → ⟷
vs ↔ / ⟺ ⟷  |  ↔  |  ⟺
With entities Named: ⟷ | Hex: ⟷ | Decimal: ⟷

Complete HTML Example

One page that shows this symbol with named, hex, decimal, and CSS forms. Use View Output or open the live editor.

Named + Hex + Decimal + CSS

Four ways to produce ⟷ in a single document.

html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Long Left Right Arrow (⟷)</title>
  <style>
    #point::after {
      content: "\27F7";
    }
  </style>
</head>
<body>
  <p>Using Hex Code: &#x27F7;</p>
  <p>Using HTML Code: &#10231;</p>
  <p>Using Named Entity: &xharr;</p>
  <p id="point">Using CSS Entity: </p>
  <p><code>A &xharr; B</code></p>
</body>
</html>
Try It Yourself

How It Works

1. Named: &xharr; (aliases &longleftrightarrow;, &LongLeftRightArrow;) is the clearest HTML form and renders ⟷.

2. Hex: U+27F7 → &#x27F7; in HTML. Same result as the named entity.

3. Decimal: same code point as 10231 → &#10231;. Same result as hex.

4. CSS: use \27F7 in content (not an HTML entity). #point::after appends that ⟷ after the paragraph text.

Pitfalls & Tips

Common mistakes when working with Long Left Right Arrow.

Length

⟷ ≠ ↔

The standard left-right arrow (&harr;, U+2194) is shorter. Use U+27F7 only when you need the long form.

Case

&xharr; ≠ &xhArr;

Capital A selects the long double form (U+27FA). Lowercase &xharr; is the single long left-right arrow (U+27F7).

Aliases

Three named forms

&xharr;, &longleftrightarrow;, and &LongLeftRightArrow; all map to U+27F7. Prefer one style consistently.

CSS vs HTML

Do not mix escapes

\27F7 belongs in CSS. &xharr; / &#x27F7; / &#10231; belong in HTML.

A11y

Add nearby words

Pair the glyph with labels (for example A &xharr; B) or use aria-label when it stands alone.

Semicolon

End references

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

Browser Support

Long Left Right Arrow (U+27F7) and its entity forms (&xharr;, &longleftrightarrow;, &LongLeftRightArrow;, &#x27F7;, &#10231;, CSS \\27F7) are supported in all modern browsers.

✓ Universal encoding

Long Left Right Arrow (⟷)

Encode with named, hex, decimal, or CSS escape — or type ⟷ directly in UTF-8 HTML.

100% Browser coverage
Google Chrome Supported
Yes
Microsoft Edge Supported
Yes
Mozilla Firefox Supported
Yes
Apple Safari Supported
Yes
Opera Supported
Yes
Internet Explorer IE 9+
Yes*
U+27F7 Full support

Bottom line: Prefer &xharr; for readable HTML. Use \\27F7 only inside CSS content.

Key Takeaways

  • Unicode: this symbol is U+27F7 (decimal 10231).
  • HTML: prefer &xharr; — or use &#x27F7; / &#10231;.
  • CSS: use \27F7 inside content for generated text.
  • Watch out: &xharr; ≠ &harr; ≠ &xhArr; (double).

One line: U+27F7 → &xharr; / &#x27F7; / &#10231; / CSS \27F7.

Frequently Asked Questions

Use &xharr;, &longleftrightarrow;, or &LongLeftRightArrow; (named), &#x27F7; (hex), &#10231; (decimal), or the CSS escape \27F7 in the content property. All render ⟷.
U+27F7 (LONG LEFT RIGHT ARROW). Hex 27F7, decimal 10231. It belongs to Supplemental Arrows-A (U+27F0–U+27FF).
Yes. &xharr;, &longleftrightarrow;, and &LongLeftRightArrow; are named HTML5 entities for ⟷ and are supported in all modern browsers.
Use it for bidirectional navigation, equivalence, toggle UI, and diagrams that need a longer left-right arrow than &harr;. Prefer &xharr; for readable source.
HTML entities (&xharr;, &#10231;, or &#x27F7;) go in markup. The CSS escape \27F7 is used in stylesheets (usually in the content property of ::before/::after). Both render ⟷.
No. ↔ is the standard left-right arrow (&harr;, U+2194). ⟷ (U+27F7) is the longer form. Case also matters: &xhArr; is the long double form (U+27FA).

Did you know?

Long Left Right Arrow is Unicode U+27F7 (decimal 10231) — LONG LEFT RIGHT ARROW in Supplemental Arrows-A. HTML5 provides &xharr;, &longleftrightarrow;, and &LongLeftRightArrow; — all render ⟷. Prefer &xharr; for readable source. It is longer than the standard left-right arrow &harr; (↔, U+2194).

Next: Long Left Right Double Arrow

Learn the HTML entity for Long Left Right Double Arrow — next in this sequence.

Continue 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