Kana Dash Learn カナダッシュ, learn homePractice now

How to type Japanese on Ubuntu

3 min read

Ubuntu types Japanese through an input method called Mozc. It's free, it's in Ubuntu's own packages, and it works on a normal keyboard: you type romaji and Mozc turns it into kana and kanji. These steps are for the standard Ubuntu desktop on 22.04 and later.

Install Mozc

Open a terminal and run:

sudo apt update
sudo apt install ibus-mozc

Then log out and back in, so the desktop picks it up.

Add it as an input source

  1. Open Settings, then Keyboard.
  2. Under Input Sources, click +.
  3. Choose Japanese, then Japanese (Mozc), and click Add. If Japanese isn't listed, click the three dots at the bottom of the list to see more languages.

Pick the entry that says Mozc. A plain Japanese entry is only a keyboard layout, and it won't convert anything.

Switch to Japanese

Press Super + Space to move between input sources. Super is the Windows key on most keyboards. The current source shows in the top bar, and you can click it to choose one as well.

If you've switched to Mozc and still get Latin letters, Mozc is in direct input mode. Click the indicator in the top bar, open Input Mode and choose Hiragana.

Type your first word

  1. Type nihongo. You'll see にほんご appear, underlined.
  2. Press Space to convert it to 日本語. Press Space again to see other options.
  3. Press Enter to confirm.

Press Enter without pressing Space if you want to keep the word in hiragana.

Convert to katakana and more

Before you press Enter, these keys change what you've typed:

Key Converts to
F6 Hiragana
F7 Full-width katakana
F8 Half-width katakana
F9 Full-width letters
F10 Half-width letters

How to type the tricky kana

  • ん is nn. Before a vowel or a な-row kana you need the full nn, so こんにちは is konnnichiha.
  • Small っ comes from doubling the next consonant, so kitte gives きって.
  • The long-vowel mark ー is the - key, so ko-hi- gives こーひー.
  • を is wo, づ is du, and ぢ is di.

If it doesn't work

  • Mozc isn't in the list. Check that you logged out and back in after installing.
  • It only types Latin letters, even in hiragana mode. Make sure IBus is the active input system. Run im-config -n ibus in a terminal, then log out and back in.
  • Japanese shows as empty boxes. You're missing a font. Run sudo apt install fonts-noto-cjk.
  • You use Kubuntu or another desktop that prefers Fcitx. Install fcitx5-mozc instead of ibus-mozc, and add Mozc in the Fcitx settings.

Now that you can type it

Typing goes faster once you can read kana on sight. The hiragana chart and katakana chart have every character, and the hiragana quiz times how fast you read them.

On other computers, see how to type Japanese on Windows or on Mac.