How to Type an Apostrophe on a German Keyboard

Find the apostrophe on a German QWERTZ keyboard, avoid the accent-key mix-up, type the curly ’ on Windows, Mac and Linux, and check which character you typed.

On a standard German keyboard, the straight apostrophe (') is typed with Shift plus the # key, which sits next to Enter. Most problems come from reaching for the accent key beside Backspace instead. That key produces an acute accent (´) or a backtick (`), which look similar but are different characters. This guide shows where the right key is, how to type the curly typographic apostrophe (’), and how to confirm and fix the character in your text.

What You Are Actually Typing

Several characters look like an apostrophe. Software treats each one differently, so search, spell checking, code and file names can break if the wrong one ends up in your text. Each character has a Unicode code point, a unique identifier written as U+ followed by a hexadecimal number.

Character | Name | Code point | Typical use
' | Apostrophe (straight, typewriter) | U+0027 | Code, plain text, default keyboard output
’ | Right single quotation mark | U+2019 | Typographic (curly) apostrophe in edited text
´ | Acute accent | U+00B4 | Not an apostrophe; spacing accent mark
` | Grave accent (backtick) | U+0060 | Not an apostrophe; used in code and Markdown
‘ | Left single quotation mark | U+2018 | Opening quote in English; closing single quote in German
‚ | Single low-9 quotation mark | U+201A | Opening single quote in German

Type the Straight Apostrophe on a German QWERTZ Keyboard

  • 1. Make sure the active input layout is German. On Windows, Windows key + Space cycles through installed layouts; on a Mac, use the input menu in the menu bar.
  • 2. Find the # key. On a German ISO keyboard it is to the right of Ä and to the left of the tall Enter key. The key also shows a straight apostrophe above the #.
  • 3. Hold Shift and press #. The result is '.
  • 4. Check the output with the steps in the verification section below.

Example of the intended result: typing gibt's with Shift + # gives gibt's, using U+0027. Typing the same word with the accent key gives gibt´s, which contains U+00B4 and is incorrect.

Why the Key Next to Backspace Is the Wrong One

The key to the right of ß carries ´ and . On the German layout it is a dead key: pressing it shows nothing until you press another key. Followed by a vowel it produces an accented letter such as é or è. Followed by Space it produces the bare accent ´ or . Because the bare accent resembles an apostrophe, it often slips into text, but it is a separate character.

Using a German Layout on a US Keyboard

If your physical keyboard is a US (ANSI) model but the system layout is set to German, the key labels will not match the output. The key labeled ' on a US keyboard produces Ä under the German layout. The German # key is mapped to the key labeled \ on most US keyboards, so Shift + \ gives the apostrophe. If you did not intend to use the German layout, switching back to the US layout restores the apostrophe to the key next to Enter.

Type the Curly Apostrophe (’)

Edited prose often uses the typographic apostrophe ’ (U+2019). The German layout has no labeled key for it, so use one of the methods below. Shortcuts beyond the Windows method vary with system version and layout variant, so confirm the output each time.

  • Windows: With Num Lock on, hold Alt and type 0146 on the numeric keypad, then release Alt. The digits in the top row do not work for this.
  • Microsoft Word: Type 2019, then press Alt + X to convert the code into ’. Pressing Alt + X again turns it back into the code.
  • macOS with the German layout: Shift + Option + # is commonly mapped to ’. Open the Keyboard Viewer and hold Option and Shift to confirm the mapping on your system.
  • Linux with the standard German (de) XKB layout: AltGr + # and AltGr + Shift + N are usually mapped to ’. Layout variants can differ, so test them first.
  • Any system: Copy ’ from a character map or Unicode lookup tool and paste it.

Watch for Automatic Quote Conversion

Word processors and some messaging apps replace the straight ' with curly quotes as you type. The replacement depends on the proofing language set for the text. With German selected, the program applies German quotation style, which can produce ‘ or ‚ instead of the apostrophe ’. Check words that begin with an apostrophe, such as 's or 'ne, because a leading apostrophe is the case most likely to be converted wrongly. If the conversion is wrong, press Ctrl + Z (Command + Z on a Mac) immediately after it happens, or turn off smart quotes in the app's AutoCorrect or substitution settings.

Check Which Character You Typed

  • In Microsoft Word, place the cursor directly after the character and press Alt + X. The character is replaced by its code: 0027 means the straight apostrophe, 2019 means the curly apostrophe, and B4 means the acute accent. Press Alt + X again to restore the character.
  • Paste the text into a Unicode inspector or character identification tool that lists code points.
  • Use your editor's Find function to search for ´ or `. Any match in normal prose is probably a mistyped apostrophe.
  • In a terminal, a command such as the one below prints the bytes so you can identify the character, assuming the text is UTF-8.
printf '%s' "gibt´s" | od -An -tx1
# UTF-8 bytes: 27 = ', c2 b4 = ´, e2 80 99 = ’

Fix Accents Already in Your Text

If a document already contains ´ where apostrophes belong, use find and replace. Make a copy of the file before running any bulk replacement. Replacing the standalone accent U+00B4 does not affect precomposed letters such as é, but it does affect any intentional use of the bare accent. Do not replace backticks (`) in code, Markdown or shell scripts, where they have meaning.

In an editor: open Find and Replace, paste ´ into the search field, type ' (or paste ’) into the replacement field, and step through the matches before choosing Replace All.

From a Linux or macOS terminal, the commands below write the result to a new file and leave the original untouched. They assume UTF-8 text and a UTF-8 locale; with another encoding, the ´ byte sequence will not match.

# Replace acute accents with straight apostrophes
sed "s/´/'/g" input.txt > output.txt

# Or replace them with curly apostrophes
sed "s/´/’/g" input.txt > output.txt

# Review what changed before replacing the original
diff input.txt output.txt

Example, for illustration only: the line Wie geht´s? Ich hab´s gesehen. becomes Wie geht's? Ich hab's gesehen. after the first command. Use diff to confirm that only the intended characters changed.

Limits of This Guide

The key positions above apply to the standard German QWERTZ layout. Swiss German, Austrian and custom layouts can place characters differently. The macOS and Linux shortcuts for ’ are common mappings, not guaranteed on every version or variant, and are best confirmed with the system's keyboard viewer before you rely on them.