Skip to test
Symbols20 min read

How to Type Special Characters: Dashes, Accents, Symbols

Almost every guide to typing special characters opens with a table of alt codes, and almost every one of them is giving advice that will not work on the machine most readers are using — and none of them work comfortably for single-handed keyboard use without Sticky Keys enabled.

Alt codes require a numeric keypad. Most laptops do not have one, and neither do compact keyboards, which together account for a large share of the computers in use — and if you write software, why code is so much denser in symbols than prose explains why this comes up far more often than it does for other people. The number row along the top of the keyboard does not substitute. So the standard advice fails at the first step for a great many people, and it fails silently — you hold Alt, you type the number, nothing happens, and there is no explanation.

This article covers the codes for people who can use them, the pickers that work on any keyboard, and the method that beats both for anything you type regularly. It is organized by how useful each approach actually is rather than by tradition.

The four methods, ranked

There are essentially four ways to get a character that is not printed on your keyboard, and they differ enormously in how well they work day to day.

How to type a character your keyboard does not have
How to type a character your keyboard does not have
MethodWorks without a keypad?Best forDrawback
Text replacementYesSymbols you use regularlyNeeds one-time setup
OS symbol pickerYesAnything occasional or unfamiliarInterrupts your typing flow
Dedicated key combosYesA handful you memorizeDiffers between Windows and Mac
Alt codesNoHigh-volume entry on a full keyboardRequires a numpad; arbitrary numbers

Ranked by practical usefulness rather than by how commonly each is taught. The ordering reverses the usual presentation, which leads with alt codes.

Notice that the method taught first almost everywhere sits last, and it is the only one with a hard hardware requirement. That inversion is the single most useful thing in this article: if you have been failing to type symbols, it is probably because you were following advice written for a keyboard you do not own.

The picker: the answer that always works

Before any code table, learn one keyboard shortcut. It covers every character, requires no memorization, and works on any keyboard.

On Windows, press the Windows key and the period key together. A panel opens with tabs for emoji, symbols, and more — the symbols tab contains dashes, currency, math operators, punctuation and accented letters, and the panel is searchable by name. Microsoft documents this among its Windows keyboard tips.

On macOS, press Control, Command and Space together to open the Character Viewer, which is likewise searchable and covers the full range. Apple maintains a reference for its keyboard shortcuts more broadly.

Search for what you want by name rather than hunting visually. Typing "degree" or "em dash" or "euro" finds the character immediately, which is faster than scanning a grid and considerably faster than looking up a code.

Why the picker beats a code list
1
shortcut to remember

Against hundreds of individual codes.

0
hardware requirements

Alt codes need a numeric keypad.

All
characters covered

Including ones with no alt code at all.

Name
how you search

"degree" rather than 0176.

The comparison that matters for most users: a method with no hardware requirement and nothing to memorize covers every case, while codes cover some cases on some keyboards.

The characters people actually look up

With the fallback established, here are the specific characters that account for the overwhelming majority of searches, with the direct shortcuts for each. Windows alt codes assume a numeric keypad.

Shortcuts for the most commonly needed characters
Shortcuts for the most commonly needed characters
CharacterWindowsMacNotes
— em dashAlt + 0151Option + Shift + hyphenPunctuation, not a range
– en dashAlt + 0150Option + hyphenRanges: 10–14
° degreeAlt + 0176Option + Shift + 8Temperatures, angles
… ellipsisAlt + 0133Option + semicolonOne character, not three dots
• bulletAlt + 0149Option + 8Autocorrect often handles this
© copyrightAlt + 0169Option + G
® registeredAlt + 0174Option + R
™ trademarkAlt + 0153Option + 2
€ euroAlt + 0128Option + Shift + 2
£ poundAlt + 0163Option + 3
¢ centAlt + 0162Option + 4
é e-acuteAlt + 0233Option + E, then eSame pattern for other vowels
ñ n-tildeAlt + 0241Option + N, then n
ü u-umlautAlt + 0252Option + U, then u

Windows codes are entered by holding Alt and typing the digits on the numeric keypad. Mac combinations assume a US layout. Where a Mac shortcut shows two steps, press the first combination, release, then type the letter.

The Mac accent pattern is worth understanding rather than memorizing row by row. Option plus a key sets an accent, then the letter you type receives it — so Option plus E followed by any vowel gives that vowel with an acute accent. Learn the four or five accent triggers and every accented letter follows.

The Windows codes have no such logic. Alt plus 0233 gives é for reasons rooted in a character encoding table rather than anything mnemonic, which is precisely why memorizing many of them is a poor use of effort. Their history is covered in the reference on alt codes.

Em dash, en dash, hyphen

The dash family generates more searches than anything else on this page, and the confusion is understandable because three similar-looking characters do three different jobs.

A hyphen joins words: well-known, twenty-one, e-mail. It is the key on your keyboard and needs no special handling.

An en dash — roughly the width of the letter n — spans ranges and connections: pages 10–14, Monday–Friday, the London–Paris route. It is the one most people never use, and in informal writing a hyphen is generally accepted in its place.

An em dash, the width of an m, is punctuation. It sets off a clause the way parentheses or a colon might, and it is the one worth learning a shortcut for because it appears constantly in ordinary prose. The typographic distinctions are catalogued in the reference on dashes.

  • Most word processors convert two hyphens into an em dash automatically as you type — check before setting anything else up.
  • In informal writing, a hyphen with spaces around it is widely accepted where an em dash would be correct.
  • Never use typographic dashes in code, filenames, usernames or passwords — plain hyphens only.
  • If you learn exactly one shortcut from this article, make it the em dash, because it is the one you will use most.

The method that beats all of them

For any character you type more than occasionally, both codes and pickers are the wrong tool, and the right one is text replacement.

You define a short trigger, and the system expands it into whatever you specify. Type a trigger like semicolon-em and an em dash appears. It works on any keyboard with no numeric keypad, it syncs across devices on most systems, and crucially you choose the trigger — so it is something you can actually remember rather than an arbitrary four-digit number.

Setting up replacements for the symbols you actually use
  1. 01

    Spend a week noticing what you look up

    Do not set anything up yet. Just note which characters send you to a search engine or a picker. For most people it turns out to be three or four, not thirty — usually the em dash plus a couple of accented letters or currency marks.

  2. 02

    Choose a trigger prefix that never occurs naturally

    A semicolon or a double comma works well as a prefix, because it will not appear accidentally mid-word. Consistency matters more than the specific choice: one prefix for all your replacements means one thing to remember.

  3. 03

    Add them in your system settings

    This lives in keyboard settings on macOS and iOS, in the personal dictionary on most Android keyboards, and via a small utility on Windows. Set up only the ones from your list.

  4. 04

    Include the ones with no keyboard route at all

    Text replacement is not limited to single characters. Frequently used phrases, email addresses and formatted strings work the same way, which is where the technique starts saving real time rather than just keystrokes.

  5. 05

    Keep the picker as your fallback

    Do not try to define everything. Replacements handle the frequent cases and the picker handles the rest, which is a far better division than attempting to memorize or configure a complete set.

The principle here is the same one that makes shortcuts and snippets valuable generally: reducing the keystrokes a task requires beats performing those keystrokes faster. The broader case, and the evidence behind it, is in what actually saves time at a keyboard.

What your software is already doing for you

Before configuring anything, it is worth knowing that a lot of this is handled automatically, and that some of what looks like a problem is actually a feature you did not know was switched on.

Word processors and many writing apps run substitutions as you type. Two hyphens become an em dash. Straight quotes become curly ones. A hyphen followed by a space at the start of a line becomes a bullet. Fractions like 1/2 sometimes become a single character. Ordinals get superscripted.

This is why people are sometimes surprised to find they have been producing em dashes for years without knowing how. It also explains the reverse frustration — text that keeps changing under you when you did not want it to, particularly in technical writing where a straight quote or a literal double hyphen was the point.

Automatic substitutions and where they help or hurt
Automatic substitutions and where they help or hurt
You typeYou getHelpful inHarmful in
-- (two hyphens)— em dashProseCode, command lines
" straight quote“ curly quoteProseCode, CSV, config files
- then space• bulletNotes, documentsMarkdown you want literal
1/2½ fractionRecipes, measurementsData and formulas
1st1ˢᵗ superscriptFormal prosePlain-text output
(c)© copyrightDocumentsCode comments

Common autocorrect behavior in word processors and writing apps. Specific behavior varies by application and most can be disabled individually.

The practical advice is to leave these on for prose and know how to turn them off for anything technical. Code editors do not apply them at all, which is a deliberate design decision rather than an omission — a smart quote in source code is a syntax error, and one that is nearly invisible when you look at it.

Phones already solved this

Mobile keyboards handle special characters better than desktop keyboards do, and the mechanism is worth knowing both because it is genuinely useful and because it highlights what desktops got wrong.

The rule is simple: press and hold a related key. Almost every special character on a phone is hiding behind a long press on something logically connected to it, and no memorization or configuration is involved.

  • Hold a vowel to get its accented variants — é, è, ê, ë and so on.
  • Hold the zero on the number layout for the degree symbol.
  • Hold the hyphen for en and em dashes.
  • Hold the currency key for other currencies, and the period for ellipsis and other punctuation.
  • Hold n for ñ, c for ç, and most other letters with common diacritics.

This is discoverable in a way the desktop equivalents are not — people find it by accident within days of owning a phone, whereas the Windows symbol panel goes unfound for years. The difference is that mobile designers were building a keyboard from scratch with no legacy layout to preserve, so they could put the extra characters where the related key already was.

Text replacement also works on phones and syncs across devices on most systems, which means the triggers you set up on a computer often appear on your phone automatically. That is the strongest argument for using replacements rather than memorizing platform-specific combinations.

Why alt codes need a numpad

This deserves explaining rather than merely stating, because the failure is so confusing when it happens.

The alt code mechanism reads digits specifically from the numeric keypad, which sends different key signals from the number row along the top. The two look identical on screen and are distinct to the operating system, which is why holding Alt and typing 0151 on the top row does nothing at all — no error, no character, no indication of why.

Some laptops provide a hidden numeric keypad overlaid on the letter keys, activated by a function key, and on those machines alt codes can be made to work with some effort. Many modern laptops omit this entirely. An external USB numeric keypad is inexpensive and solves it permanently for anyone who genuinely needs codes — the same accessory that matters for numeric data entry work, discussed in 10-key typing on the numeric keypad.

But for most people the honest conclusion is to stop trying. The picker and text replacement both work on every keyboard, and neither has a hardware prerequisite that half the readership cannot meet.

Accented letters and other languages

If you write regularly in Spanish, French, Portuguese, German or any language with diacritics, none of the above is the right answer. Codes and pickers are fine for the occasional accent and hopeless at volume.

The proper solution on Windows is the US International keyboard layout. It converts a few punctuation keys into dead keys, so typing an apostrophe followed by E produces é directly, in the flow of typing, with no interruption. macOS achieves the same through its Option-plus-accent pattern natively.

  • Switch layouts rather than fighting the default if diacritics are routine for you.
  • The trade-off on US International is that a literal apostrophe requires a following space, which takes a few days to adapt to.
  • Phones handle this best of all: hold a vowel and the accented variants appear as alternates.
  • Mobile long-press is the most discoverable version of this idea, and most people find it without instruction.

That last point is worth dwelling on. Phone keyboards solved special characters through long-press on a related key, which requires no memorization and no configuration. Desktop keyboards never adopted an equivalent, which is why this article needs to exist at all.

When not to use special characters

There is a category of places where typographic characters cause problems rather than solving them, and it is worth knowing before you start using them everywhere.

Where plain characters are safer
Where plain characters are safer
ContextUseNotWhy
Code and config filesStraight quotes, hyphensCurly quotes, dashesSyntax errors that look identical
Usernames and passwordsPlain ASCIIAnything typographicFields may reject or mangle them
FilenamesPlain ASCIISymbols and accentsBreaks across some systems
URLs and slugsHyphensEn or em dashesEncoding problems
Spreadsheet dataPlain charactersSmart punctuationBreaks matching and lookups
Prose for readersTypographic charactersThis is what they are for

These are practical compatibility considerations rather than style rules. The common thread is any context where a machine rather than a person reads the text.

The curly quote problem is worth singling out because it produces one of the most confusing errors a beginner programmer encounters. Copying a code snippet from a document into an editor brings smart quotes with it, the compiler rejects a character that looks exactly like the one it wanted, and nothing about the error message explains why.

Why the keyboard lacks these keys

It is reasonable to ask why characters this common are not simply on the keyboard, and the answer is the same one that explains most keyboard oddities: the layout is a mechanical artifact that outlived its constraints.

Typewriters needed a physical typebar for every character, so keys were expensive in a way they no longer are. Characters that were rare, or that could be approximated, lost the argument — an em dash was typed as two hyphens, a degree symbol was often improvised, and accented letters were handled by backspacing and overtyping. The flip side is that several keys which did win a place have since lost their purpose entirely, covered in why your keyboard has keys nobody uses.

Those constraints vanished decades ago and the layout did not change, because by then hundreds of millions of people had learned it. The same inertia explains the arrangement of the letters themselves, which is examined alongside several related claims in the typing myths that refuse to die.

The practical consequence is a keyboard optimized for a technology nobody uses, with the gaps filled by pickers, codes and replacements bolted on afterwards. Knowing that is oddly useful, because it explains why none of the solutions feel elegant — they are all workarounds for a layout that was finalized before the problem existed.

The characters worth knowing by heart

A reasonable final question is how many of these are worth committing to memory at all, given that a picker covers everything.

The answer follows the same frequency logic that governs keyboard shortcuts generally. A shortcut that saves two seconds on something you do thirty times a day is worth learning; one that saves ten seconds on something you do twice a year is not, however satisfying it feels to know it. Most people writing ordinary English need exactly one character memorized, and it is the em dash.

Beyond that it depends entirely on what you write. Someone producing technical documentation needs the degree symbol and perhaps arrows. Someone writing in Spanish needs a layout change rather than individual characters. Someone in finance needs currency marks. A list built for a general audience is a list built for nobody in particular, which is why the week of noticing beats any table including the one above.

  • Memorize what you use daily — for most people that is one or two characters.
  • Set up replacements for the next tier, the ones you reach for weekly.
  • Leave everything else to the picker, which is what it is for.
  • Switch keyboard layouts rather than memorizing anything if you write in another language regularly.

What to set up today

If you do one thing after reading this, learn your operating system's picker shortcut — Windows key plus period, or Control plus Command plus Space. That single shortcut covers every character you will ever need and requires nothing else.

Then, over the next week, notice which characters you actually reach for, and add text replacements for those specific ones. For most people the list is short: an em dash, a degree symbol, and one or two accented letters or currency marks. Five minutes of setup removes the interruption permanently.

Leave alt codes alone unless you have a numeric keypad and a genuine reason. And if the underlying frustration is that typing itself feels slow rather than that symbols are hard to reach, the constraint is elsewhere — a practice routine that actually moves the number addresses that, and what counts as an average typing speed shows where the thresholds sit.

Frequently asked questions

How do you type an em dash?

On Windows, hold Alt and type 0151 on the numeric keypad. On a Mac, press Option and Shift and the hyphen key together. If your keyboard has no numeric keypad, press the Windows key and the period key to open the emoji and symbol panel, then choose the Symbols tab — that route works on any keyboard and is the one most people should use.

What is the difference between an em dash and an en dash?

The em dash is longer and works as punctuation — it sets off a clause the way parentheses or a colon would. The en dash is shorter and mainly joins ranges, as in pages 10–14 or Monday–Friday. A plain hyphen is shorter still and joins words. Most people only need the em dash and the hyphen.

Do alt codes work on a laptop?

Usually not, and this is the single biggest problem with alt codes. They require a numeric keypad, which most laptops and all compact keyboards omit. The number row along the top does not work as a substitute. This is why the symbol picker built into the operating system is a better default recommendation than any code list.

How do I type symbols without a number pad?

Use the built-in picker. On Windows, the Windows key plus period opens a panel with an emoji tab and a symbols tab covering dashes, currency, math and accented letters. On a Mac, Control plus Command plus Space opens the Character Viewer. Both are searchable, neither requires memorizing anything, and both work on every keyboard.

How do you type a degree symbol?

Alt and 0176 on the Windows numeric keypad, or Option plus Shift plus 8 on a Mac. Without a keypad, open the Windows symbol panel with Windows key plus period and search for degree. On phones, hold the zero key on the number layout and the degree symbol appears as an alternate.

How do you type accented letters like é or ñ?

On a Mac, press Option and the accent key, release, then the letter — Option plus E then E gives é, and Option plus N then N gives ñ. On Windows the equivalent is either an alt code, the symbol picker, or switching to the US International keyboard layout, which lets you type an apostrophe followed by a letter to produce the accented version.

What is the US International keyboard layout?

A Windows layout that turns certain punctuation keys into dead keys, so typing an apostrophe then E produces é rather than two separate characters. It is the best solution for anyone who regularly writes in Spanish, French, Portuguese or German, and it is far faster than codes or pickers. The trade-off is that typing a literal apostrophe then needs a space after it.

How do you type emoji on a computer?

Windows key plus period on Windows, or Control plus Command plus Space on a Mac. Both open a searchable panel. This is the same panel that handles symbols on Windows, which is why it is worth learning one shortcut rather than a list of codes.

What are alt codes exactly?

Numeric shortcuts that insert a character by its code point when you hold Alt and type the number on the keypad. The four-digit codes beginning with zero use the Windows-1252 character set, which is why Alt plus 0151 gives an em dash. They are a holdover from an era before searchable pickers existed.

Why do my quotation marks turn curly?

Word processors and many editors apply smart quotes automatically, converting straight quotes into typographic left and right versions as you type. This is usually desirable in prose and actively harmful in code, where a curly quote is a syntax error. Most editors let you disable it, and code editors do not apply it in the first place.

How do I type a bullet point?

Alt plus 0149 on Windows with a keypad, Option plus 8 on a Mac. In most word processors and note apps, typing a hyphen or asterisk followed by a space converts to a bullet automatically, which is faster than either. That autocorrect behavior is worth knowing because it applies to several other symbols too.

Is there a faster way than memorizing codes?

Yes, and it is the main recommendation here: text replacement. Define a short trigger that expands into the symbol you want, so typing something like semicolon-em produces an em dash. It works on every keyboard, requires no numeric keypad, syncs across devices on most systems, and you choose triggers you can actually remember.

How do I set up text replacement?

It is built into most systems. On Windows and Mac the operating system or a small utility handles it, on iOS it is under keyboard settings as Text Replacement, and on Android most keyboards offer a personal dictionary. Define a handful for the symbols you actually use rather than building a large library you will forget.

How do I type currency symbols?

The euro is Alt plus 0128 on Windows or Option plus Shift plus 2 on a Mac; the pound is Alt plus 0163 or Option plus 3; the cent is Alt plus 0162 or Option plus 4. As with everything here, the symbol picker finds all of them by name if you would rather not memorize the numbers.

What about typing symbols on a phone?

Press and hold a related key. Holding the zero on the number layout gives the degree symbol, holding the hyphen gives dashes, holding a vowel gives its accented variants, and holding the currency key gives other currencies. Almost every special character on a phone is hiding behind a long press on something related.

How do I type an ellipsis?

Alt plus 0133 on Windows or Option plus semicolon on a Mac produces a single ellipsis character rather than three separate periods. The distinction matters for typesetting because the single character spaces correctly and will not break across a line, though three periods is acceptable in most informal contexts.

Do special characters work everywhere?

Mostly, but not universally. Some older systems, form fields and databases mangle characters outside the basic set, which is why plain hyphens and straight quotes remain safer in usernames, passwords, filenames and code. Save the typographic characters for prose that will be read by people.

How do I type math symbols?

The picker is the practical answer for occasional use, since there are far too many to memorize. For frequent mathematical writing, a dedicated input method or a markup system such as LaTeX is a better fit than fighting the keyboard, because those are designed for the volume and structure that mathematical notation involves.

Why is there no em dash key on the keyboard?

Because the layout descends from mechanical typewriters, where physical space was limited and every key needed a typebar. Characters that were rare or could be approximated — the em dash was often typed as two hyphens — did not earn a key. That constraint disappeared decades ago but the layout did not change.

Should I learn alt codes at all?

Learn the two or three you use constantly if you have a numeric keypad, and ignore the rest. Memorizing a long list is poor use of effort when a searchable picker exists and text replacement handles the frequent cases. The people who benefit from extensive code knowledge are those doing high-volume specialized entry on a full keyboard.

What is the Character Map on Windows?

An older utility that displays every character in a font and lets you copy one out. It still exists and still works, but the Windows key plus period panel is faster and searchable, so Character Map is now mainly useful for browsing an unusual font or finding something genuinely obscure.

Does using special characters slow down my typing?

Reaching for a picker mid-sentence interrupts your flow far more than the keystrokes themselves cost, which is exactly why text replacement is the better answer for anything you use regularly. A trigger you type inline keeps your hands on the keyboard and your attention on the sentence.

How do I type arrows and other shapes?

Through the symbol picker for occasional use, or text replacement for arrows you use often. Many chat and note applications also convert typed sequences automatically — a hyphen followed by a greater-than sign becoming an arrow is common — which is worth checking before setting anything up manually.

Are curly quotes and straight quotes actually different characters?

Yes, they are entirely different code points. This is why copying text from a word processor into a code editor breaks things: the quotes look almost identical but the compiler sees an unfamiliar character. It is one of the most common causes of a confusing syntax error in beginner programming.

What is the fastest overall method?

For symbols you use daily, text replacement with a trigger you invented. For everything else, the operating system picker. Alt codes sit in third place, useful only when you have a numeric keypad and a specific code already committed to memory.

Does this differ on Linux?

The picker equivalents vary by desktop environment, but most support a Unicode entry sequence — commonly Control plus Shift plus U, then the hexadecimal code point, then Enter or space. Compose key setups are also popular and arguably more memorable, since the sequences are mnemonic rather than numeric.

Why do some characters show as boxes or question marks?

Because the font in use does not contain a glyph for that character. The character itself is stored correctly; it simply cannot be drawn. Changing font usually fixes it, and it is a display problem rather than a data problem, so copying the text elsewhere often shows it correctly.

What should I actually set up today?

Learn the picker shortcut for your operating system, since it covers every case. Then add text replacements for the three or four symbols you personally use most — for most people that is the em dash, the degree symbol, and one or two accented letters or currency marks. That combination handles essentially everything without memorizing a list.

Put it into practice

Take a quick typing test and see your WPM, accuracy and consistency.

Start a test