Left Right Arrow

Shortcodes

Copy useful codes for left right arrow symbol ↔ to use in websites, apps, blogs, and docs.

Unicode
U+2194
Alt Code
29
HTML Code
↔
HTML Entity
↔
HEX Code
↔
CSS Code
\2194
JS/JSON
\u2194
Unix/C/PHP/JAVA
0x2194
URL-encode
%E2%86%94

Customize Left Right Arrow

Customize ↔, download it as SVG or PNG, or copy the generated HTML snippet.

  

How to use Left Right Arrow Symbol in HTML, CSS, and JS

Insert in HTML

1. Direct symbol:
<span>↔</span>
HTML Code:
<span>&#8596;</span>
HTML Entity:
<span>&harr;</span>
HEX Code:
<span>&#x2194;</span>

Add with CSS

.left-right-arrow::before {
  content: '\\2194';
}

Set it in JavaScript

document.querySelector('.left-right-arrow').textContent = '↔';
copied