U+21A6

Rightwards Arrow From Bar

Rightwards Arrow From Bar (↦) shown large, with its baseline, x-height and cap height
HTML
↦
Unicode
U+21A6
CSS
\21A6

The rightwards arrow from bar (↦) is Unicode U+21A6, HTML ↦.

The barbed tail marks this as the maps-to arrow from mathematics, read as x maps to something. It shows up in function notation such as f: x ↦ x + 1, and is distinct from the plain arrow used for flow diagrams. Reach for ↦ in flowcharts, diagrams and step-by-step interface copy, where a plain keyboard falls short. It is cataloged at Unicode code point U+21A6 in the arrows set, so it renders the same real text character in every app that supports the font, not a pasted image.

Render test

Checking whether this device has a font that can draw ↦.

Rightwards Arrow From Bar in every code representation: Unicode, HTML, CSS, JavaScript, UTF-8/UTF-16 and Windows alt code.
Symbol↦
UnicodeU+21A6
NameRightwards Arrow From Bar
HTML (decimal)↦
HTML (hex)↦
CSS content\21A6
JavaScript / JSON\u21A6
UTF-8 bytes0xE2 0x86 0xA6
UTF-16 units0x21A6

Source: Unicode Character Database. Code point verified as assigned in Unicode 17.0. Last updated . Report an error

How do you type the rightwards arrow from bar on each platform?

Find your platform in the first column.

Every way to type the rightwards arrow from bar ↦, by platform
WhereHow to type it
Any deviceClick the ↦ at the top of this page. It goes straight to your clipboard, and you paste it with Ctrl+V on Windows or Cmd+V on a Mac. This is the only method that behaves identically everywhere.
WindowsThere is no alt code for this character, because it is in neither Windows-1252 nor code page 437. Press Win and the full stop key to open the emoji and symbol panel, then use the symbols tab and search for rightwards arrow from bar. Typing the decimal code point, 8614, after Alt is not a dependable alternative: many programs read numbers above 255 against the old code page and type a different character.
macOSAdd Unicode Hex Input under Keyboard settings, switch to it, then hold Option and type 21A6. Without that input source, open the Character Viewer with Control+Command+Space and search for rightwards arrow from bar.
Linux and ChromeOSPress Ctrl+Shift+U, type 21a6, then press Enter or the space bar. This works in GTK applications and with IBus.
Microsoft WordType 21A6 in the document, then press Alt and X together with the cursor immediately after the last digit. Word replaces the digits with ↦.
Google DocsInsert, then Special characters, then paste U+21A6 or type rightwards arrow from bar in the search box. You can also draw the shape in the sketch pad on the right.
Excel and Google SheetsUse the formula UNICHAR(8614) in a cell. Copy the cell and paste it as a value if you want the character rather than the formula.
HTMLWrite ↦ or ↦. There is no standard named entity for this character. On a page served as UTF-8 the character itself also works.
CSSUse content: "\21A6" inside a ::before or ::after rule. Terminate the escape with a space if the next character is also a hexadecimal digit.
JavaScriptThe escape \u21A6 produces this character inside a string literal, and the same escape is valid in JSON.

More detail per platform: Windows alt codes, special characters on a Mac, special characters in Word and HTML entities.

Frequently asked questions

How do I copy the rightwards arrow from bar symbol?

Press the Copy ↦ button at the top of this page, or click the large ↦, and it is placed on your clipboard. Paste it anywhere with Ctrl+V or Cmd+V. It is a real text character, so it works in documents, chats and code.

What is the Unicode code point for rightwards arrow from bar?

The rightwards arrow from bar has the Unicode code point U+21A6. In HTML you can write it as ↦ or ↦.

Can I use the rightwards arrow from bar symbol in HTML and CSS?

Yes. In HTML write ↦, and in CSS use content: "\21A6" inside a ::before or ::after rule. The code table on this page has copy buttons for both.

Related symbols