How to Type an Apostrophe on a Japanese Keyboard

On a Japanese (JIS) keyboard, the apostrophe is Shift+7. Learn how to get the plain ASCII apostrophe instead of a full-width or curly one, and how to check which character you typed.

On a Japanese keyboard, the apostrophe is not where it is on a US keyboard. Japanese input software can also turn it into a different character that looks almost the same. This guide covers where the key is, how to get the character you want, and how to confirm what actually ended up in your text.

The short answer

On a standard Japanese (JIS) keyboard, press Shift+7. The 7 key is usually printed with 7, ' and the kana や. To get the plain ASCII apostrophe ('), type it while the input method is in half-width alphanumeric (direct input) mode, not Japanese hiragana mode.

What the keyboard and input method do to your apostrophe

Two separate layers decide which character you get. The keyboard layout maps the physical key to a character, and that layout determines that Shift+7 means apostrophe on JIS hardware. The input method editor (IME) is the software that turns keystrokes into Japanese text, and it may then substitute a different apostrophe-like character depending on its current mode. A word processor's autocorrect can also change the character after you type it.

Several characters look like an apostrophe, but software treats them as different characters. This matters in code, file names, search, passwords and data that a program compares character by character.

Character | Code point | Unicode name | Typical way it appears
' | U+0027 | APOSTROPHE | Shift+7 in half-width alphanumeric or direct input mode
' | U+FF07 | FULLWIDTH APOSTROPHE | Shift+7 while the IME is in Japanese (full-width) input mode, depending on IME and settings
’ | U+2019 | RIGHT SINGLE QUOTATION MARK | Smart quotes autocorrect in word processors, or some IME settings
‘ | U+2018 | LEFT SINGLE QUOTATION MARK | Smart quotes autocorrect at the start of a word

No vendor documentation was supplied for this article, and IME behavior varies by product, version and settings. The key positions below follow the standard JIS layout. Treat the IME behavior described here as typical rather than guaranteed, and use the check at the end to confirm the result on your own system.

Step by step: typing a plain apostrophe

Before you start

  • Confirm that your operating system's keyboard layout is set to Japanese (often listed as 106/109-key or JIS) if you have a physical Japanese keyboard.
  • Decide which character you need. Use the plain apostrophe (U+0027) for code, commands, URLs typed in a terminal and most data entry. Use the curly ’ (U+2019) only if your style calls for typographic quotes in prose.

On Windows

  • 1. Switch the IME to half-width alphanumeric mode. On a JIS keyboard, press the 半角/全角 (Hankaku/Zenkaku) key at the top left. You can also click the A / あ indicator in the taskbar until it shows A.
  • 2. Press Shift+7.
  • 3. If you are already in Japanese mode and typed a full-width apostrophe before confirming it, many IMEs, including Microsoft IME, let you press F10 to convert the unconfirmed text to half-width alphanumeric. Then press Enter.
  • 4. If you get ゃ instead of an apostrophe, the IME is in kana input mode, where each key types the printed kana. Switch to romaji input. In Microsoft IME, Alt+カタカナひらがな commonly toggles kana input. You can also turn kana input off in the IME settings.

On a Mac with a JIS keyboard

  • 1. Press the 英数 (eisu) key, to the left of the space bar, to switch to alphanumeric input.
  • 2. Press Shift+7.
  • 3. Press the かな key to return to Japanese input when you need it.

If the apostrophe key seems to be in the wrong place

Suppose Shift+7 types an ampersand (&) and the apostrophe appears on the key to the right of the semicolon key. In that case, your system is using a US layout while your keyboard is physically Japanese. On JIS hardware, that key is printed with a colon (:). Either change the layout setting to Japanese so the keys match their labels, or keep the US layout and use the key to the right of semicolon for the apostrophe.

Fallback on Windows: Alt code

If the keys are not cooperating, hold Alt and type 0039 on the numeric keypad, then release Alt. This method needs a numeric keypad with Num Lock on, so it may not work on laptops without one.

Keeping word processors from changing it

Microsoft Word and similar editors often replace a straight apostrophe with a curly one as you type, a feature called smart quotes. To keep a single straight apostrophe, press Ctrl+Z immediately after the replacement happens. This undoes the autocorrect and leaves the character you typed. To stop the conversion entirely, turn off the option that replaces straight quotes with smart quotes in the editor's AutoFormat As You Type settings.

Checking which apostrophe you typed

Look-alike characters are hard to tell apart by eye, especially in some fonts. Check the code point instead.

  • In Microsoft Word, place the cursor immediately after the character and press Alt+X. The character is replaced by its code point, such as 0027 or ff07. Press Alt+X again to turn it back.
  • In any environment with Python, paste the text into a short script like the example below.
  • In a terminal, piping the text through a hex dump shows the raw bytes. In UTF-8, the plain apostrophe is the single byte 27, the full-width apostrophe is EF BC 87, and ’ is E2 80 99.

Example script. The input string is illustrative, and the expected output is written from the Unicode values above rather than from a recorded run:

text = "it's it's it’s"
for ch in text:
    if ch in "''’‘":
        print(repr(ch), f"U+{ord(ch):04X}")

Expected result: U+0027, then U+FF07, then U+2019. Only the first is the plain ASCII apostrophe. Note that the separators in this example string are full-width spaces (U+3000), another character a Japanese IME commonly inserts.

Fixing apostrophes that are already in your text

If a document already contains full-width or curly apostrophes, you can replace them in bulk. First save a copy of the original, because a blanket replacement can change text that was correct. Full-width punctuation in Japanese sentences, or curly apostrophes in typeset English, may be intentional.

Replace only the specific character you mean to change. This example converts full-width apostrophes to ASCII and leaves everything else alone:

fixed = text.replace("\uFF07", "'")

Unicode NFKC normalization also turns ' into ', but it converts other full-width characters too, such as full-width letters, digits and spaces. It also does not touch the curly ’ (U+2019). Use NFKC only if you want all of those changes. After replacing, run the check above again to confirm that the apostrophes are now U+0027 and that nothing else changed. If something unexpected changed, restore from the copy you saved.