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
- Open Settings, then Keyboard.
- Under Input Sources, click +.
- 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
- Type
nihongo. You'll see にほんご appear, underlined. - Press Space to convert it to 日本語. Press Space again to see other options.
- 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 fullnn, so こんにちは iskonnnichiha. - Small っ comes from doubling the next consonant, so
kittegives きって. - The long-vowel mark ー is the
-key, soko-hi-gives こーひー. - を is
wo, づ isdu, and ぢ isdi.
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 ibusin 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-mozcinstead ofibus-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.