U+221E

Infinity

The infinity symbol. Beyond math it is a popular tattoo and design motif for forever and endless. Most keyboards skip the infinity entirely, which is why it gets copied instead of typed. This one lives at code point U+221E and belongs to the math group; click it above to copy, or use the table below for the HTML, CSS and JavaScript equivalents.

Infinity in every code representation: Unicode, HTML, CSS, JavaScript, UTF-8/UTF-16 and Windows alt code.
Symbol∞
UnicodeU+221E
NameInfinity
HTML (named)∞
HTML (decimal)∞
HTML (hex)∞
CSS content\221E
JavaScript / JSON\u221E
UTF-8 bytes0xE2 0x88 0x9E
UTF-16 units0x221E

How do you type the infinity on each platform?

Every way to type the infinity ∞, 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 short alt code for this character. Press Win and the full stop key to open the emoji and symbol panel, then use the symbols tab and search for infinity.
macOSAdd Unicode Hex Input under Keyboard settings, switch to it, then hold Option and type 221E. Without that input source, open the Character Viewer with Control+Command+Space and search for infinity.
Linux and ChromeOSPress Ctrl+Shift+U, type 221e, then press Enter or the space bar. This works in GTK applications and with IBus.
Microsoft WordType 221E 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+221E or type infinity in the search box. You can also draw the shape in the sketch pad on the right.
Excel and Google SheetsUse the formula UNICHAR(8734) in a cell. Copy the cell and paste it as a value if you want the character rather than the formula.
HTMLWrite ∞, or the numeric reference ∞, or ∞. On a page served as UTF-8 the character itself also works.
CSSUse content: "\221E" inside a ::before or ::after rule. Terminate the escape with a space if the next character is also a hexadecimal digit.
JavaScriptThe escape \u221E 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 infinity symbol?

Click the ∞ above or the copy button 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 infinity?

The infinity has the Unicode code point U+221E. In HTML you can write it as ∞ or ∞, or with the named entity ∞.

Can I use the infinity symbol in HTML and CSS?

Yes. In HTML write ∞ or the named entity ∞, and in CSS use content: "\221E" inside a ::before or ::after rule. The code table on this page has copy buttons for both.

Related symbols

Browse the full math symbols hub, or return to the searchable symbol grid.