More
More
Left Right Arrow HTML entity ↔
↔ is the HTML entity for Left Right Arrow ↔ (U+2194). Copy the decimal ↔ and hex ↔ codes plus CSS, JavaScript, Python and URL escapes.
- Entity
↔- Also written
↔↔- Code point
- U+2194
- Unicode name
- LEFT RIGHT ARROW
- Block
- Arrows
- Category
- Math symbol (Sm)
- Since
- Unicode 1.1
- Defined in
- HTML 4.01 and HTML5
Codes to copy
| HTML named | ↔Works in HTML; in XML only & < > " ' are predefined. | |
|---|---|---|
| HTML decimal | ↔Works in HTML and XML. | |
| HTML hex | ↔Works in HTML and XML. | |
| CSS | content: "\2194";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u2194"Also valid in JSON. | |
| Python | "\u2194"Python 3 string literal. | |
| Python by name | "\N{LEFT RIGHT ARROW}"Readable alternative using the Unicode name. | |
| URL | %E2%86%94Percent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | E2 86 943 bytes. | |
| UTF-16 | 21941 code unit, which is what JavaScript length counts. |
When to use it
A two-headed arrow for 'both ways' and exchanges, such as GBP ↔ EUR. The double version ⇔ means 'if and only if' in logic.
The name dates from HTML 4, so it works in every browser and in old email clients.
This character also has an emoji form: ↔️ Left-right Arrow. Add U+FE0F after it for the emoji style or U+FE0E for the text style.
More arrows
↖North West Arrow→Right Arrow↗North East Arrow↑Up Arrow↘South East Arrow←Left Arrow↙South West Arrow↚Leftwards Arrow with Stroke
All arrows · Every HTML entity · Encode or decode text
Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).