Ellipsis Character (…): Alt Codes, Unicode and How to Type It
How to type the ellipsis character (…) with Alt codes, Mac and Linux shortcuts, HTML and code escapes, and how it differs from three periods (...).
The ellipsis character (…) is a single symbol that looks like three periods. It is not the same as typing three periods (...). This guide shows how to type it on different systems, what codes represent it, how to convert between the two forms, and how to check which one your text contains.
What the ellipsis character is
Unicode lists the ellipsis as U+2026 HORIZONTAL ELLIPSIS. It is one character in General Punctuation, the Unicode block for typographic marks like dashes and quotes. It takes the place of three separate full stops (U+002E each). The two forms usually look almost the same on screen, but software treats them differently:
- Character count: … counts as 1 character, while ... counts as 3. This matters for length limits and string functions.
- Line breaks: a single … can't split across two lines. Three periods sometimes can.
- Search: searching for ... won't find …, and the reverse is also true, unless the tool normalizes text first.
- Spacing: the glyph's dot spacing comes from the font. Spacing between typed periods comes from the font's period and any spaces you add.
Is there an ASCII code for the ellipsis?
No. ASCII covers codes 0 through 127, and none of them is an ellipsis. Pure ASCII text can only use three periods, each ASCII code 46 (hex 2E). People who search for an "ASCII code for ellipsis" usually need one of the codes in the next table. Those come from Unicode or from legacy 8-bit code pages.
Ellipsis codes at a glance
| System | Code for … |
| Unicode code point | U+2026 |
| Decimal Unicode value | 8230 |
| UTF-8 bytes | E2 80 A6 |
| UTF-16 code unit | 2026 |
| Windows-1252 (Windows Western code page) | 133 (hex 85) |
| Mac OS Roman (legacy) | 201 (hex C9) |
| HTML named entity | … |
| HTML numeric entities | … or … |
| CSS content escape | \2026 |
| JavaScript, Java, JSON, C# string escape | \u2026 |
| Python string escape | \u2026 or \N{HORIZONTAL ELLIPSIS} |
How to type the ellipsis on Windows (Alt code)
The usual Alt code for the ellipsis is Alt+0133. The number is the character's position in the Windows-1252 code page.
- 1. Turn on Num Lock.
- 2. Hold down the left Alt key.
- 3. Type 0133 on the numeric keypad. The number row above the letters won't work.
- 4. Release Alt. The … character appears.
Keep the leading zero. Alt+133 without the zero uses the older OEM code page instead, and on US systems that usually gives à. Alt codes also need a real numeric keypad. Many laptops don't have one, so use one of the methods below instead. Some rich-text editors also accept Alt+8230, the decimal Unicode value, but support varies by program. Alt+0133 is the more dependable choice.
Other Windows options:
- Microsoft Word: type 2026 and press Alt+X right away. Word turns the hex code into …. By default, Word's AutoCorrect also changes typed ... into … as you write.
- Character Map: search for "Horizontal Ellipsis" and copy it from there.
How to type the ellipsis on Mac, Linux and mobile
- macOS (US keyboard layout): press Option+; (semicolon). Other layouts may use a different key.
- Linux with GTK or IBus input: press Ctrl+Shift+U, type 2026, then press Space or Enter.
- Linux with a Compose key: press Compose, then . and . again. This works with many default compose tables.
- ChromeOS: press Ctrl+Shift+U, type 2026, then press Space or Enter.
- Phones and tablets: many on-screen keyboards show … when you long-press the period key. This depends on the keyboard app, so check yours.
Inserting the ellipsis in HTML and code
If your file is saved as UTF-8, you can usually paste … into it directly. Use an escape when an editor, template system or toolchain might mangle characters outside ASCII. Examples:
<!-- HTML -->
<p>Loading…</p>
<p>Loading…</p>
/* CSS */
.truncated::after { content: "\2026"; }
// JavaScript
const label = "Loading\u2026";
# Python
label = "Loading\u2026"
label = "Loading\N{HORIZONTAL ELLIPSIS}"
Converting between ... and …
Converting can go either way. It changes only how the ellipsis is stored, not what the text means. The things that can go wrong are matching periods you didn't intend to match, or changing text that has to stay exact.
Three periods to the single character: in a find-and-replace tool that supports regular expressions, search for exactly three periods and replace them with …. The pattern below avoids changing longer runs such as four periods. A run like that may be an ellipsis followed by a full stop, and you should review it by hand.
Find (regex): (?<!\.)\.{3}(?!\.)
Replace with: …
Example input: Wait... what?
Example output: Wait… what?
Lookbehind (?<!...) isn't available in every regex engine. Check that your tool supports it before you rely on this pattern.
Single character to three periods: Unicode compatibility normalization (NFKC or NFKD) breaks U+2026 into three U+002E periods. You can also do a plain find-and-replace of … with .... Use this when a system only accepts ASCII or when search results have to match both forms.
# Python
import unicodedata
unicodedata.normalize("NFKC", "Wait\u2026") # -> 'Wait...'
Skip the conversion in places where the exact characters matter: source code, file paths, command-line arguments, quoted data, and spread syntax like ...args in JavaScript. Changing three periods there breaks the code. Restrict your replacement to prose, or check each match before you replace it.
How to check which form your text contains
- Cursor test: move the cursor across the dots with the arrow keys. A single … takes one keypress, and three periods take three.
- Microsoft Word: put the cursor right after the character and press Alt+X. If you see 2026, it is the ellipsis character. Press Alt+X again to change it back.
- Character counter: paste the text into a tool that counts characters. … adds 1, ... adds 3.
- Code: check the code point directly, as shown below.
# Python
hex(ord("…")) # -> '0x2026'
"Wait…".count(".") # -> 0 (no periods present)
// JavaScript
"…".codePointAt(0).toString(16) // -> "2026"
Troubleshooting garbled ellipses
If you see … where … should be, UTF-8 text has been read as Windows-1252. The three UTF-8 bytes E2 80 A6 show up as three separate characters. To fix it, open or declare the file as UTF-8. Don't edit the garbled characters by hand. In the other direction, a byte 85 from Windows-1252 that gets read as ISO-8859-1 or as UTF-8 may turn into a control character or a replacement symbol (�). In both cases, the cure is an encoding declaration that matches how the file was actually saved.
Which form should you use?
Use … for edited prose, interface labels and tight character limits. It reads as one unit and won't break across lines. Use three periods for ASCII-only systems, plain-text formats that need maximum compatibility, and style guides that ask for spaced periods (. . .). Whichever you pick, use it consistently so searching and counting stay predictable.
Note on scope: no product-specific test data came with this guide. The codes and escapes above follow the Unicode standard and documented code-page mappings. Keyboard shortcuts and autocorrect behavior depend on your operating system version, keyboard layout and app settings, so check them on your own setup.