How to Type Khmer Unicode Online: Phonetic Keys, NiDA and Word Breaks
Type Khmer without installing a keyboard, use the NiDA layout in any browser, and add the invisible word breaks that make Khmer text wrap neatly.

Khmer text has a reputation for being hard to type, and it is not undeserved. Consonants stack beneath each other, vowel signs sit above, below, before and after the letter, and words run together with no visible spaces. On a borrowed laptop, a library computer or a phone without the right keyboard, even a short message can take a long time.
The Khmer Unicode Typing page offers three tools on one screen. This guide explains when to use each.
Option 1: phonetic keys
The main editor turns short English keys into Khmer letters. Each consonant has a key: "k" for ក, "kh" for ខ, "s" for ស, "m" for ម and so on. Khmer has two series of consonants that sound alike, so the second series uses capitals: "K" is គ, "C" is ជ, "T" is ទ and "Ph" is ភ. The full chart, with a search box, sits below the editor.
Vowel signs follow the consonant: "aa" gives ា, "i" gives ិ, "ae" gives ែ and "ao" gives ោ. "M" adds the nikahit ំ and "H" adds the reahmuk ះ.
The most important rule is stacking. Type two consonants with no vowel between them and the second becomes a subscript. "kh" then "m" gives ខ្ម, and adding "ae" and "r" completes ខ្មែរ, the word Khmer itself. "s" then "r" gives ស្រ. When two consonants belong to different syllables and should not stack, type an apostrophe between them.
Some everyday words do not follow their spelling closely, so the editor knows a list of them. "suosdei" gives សួស្តី, "arkun" gives អរគុណ and "kampuchea" gives កម្ពុជា even though a letter-by-letter reading would not.
Option 2: the NiDA layout
If you already type Khmer on your phone or at work, you probably use NiDA, the standard Khmer Unicode layout. The NiDA pad below the editor lets you use those same keys on any keyboard, even one with no Khmer stickers. "k" is ក, "a" is ា, "j" is the coeng ្ that makes a subscript, and Shift gives the second layer.
Type in the order Khmer is stored: the consonant first, then the coeng and the subscript, then the vowel sign. The pad shows every key on an on-screen chart, which you can also tap on a touch screen.
Option 3: the word spacing helper
Here is the part many people do not know about. Khmer does not put visible spaces between words, but well-formed Khmer text puts an invisible character, the zero-width space, at each word boundary. Without it, browsers and word processors may break a line in the middle of a word, or refuse to break a long line at all.
The spacing helper makes this easy:
- Type or paste your text with ordinary spaces between the words.
- Press "Spaces → zero-width". Single spaces between Khmer letters become invisible breaks. A double space stays as one real space, for the places where Khmer does use one, such as between phrases.
- Check the preview, where each hidden break is shown as a dot.
- Copy the text into your document, website or message.
You can also go the other way, turning zero-width spaces into visible spaces so you can see and edit the word boundaries in text you received.
In the NiDA pad, the Space bar types a zero-width space by default, just as the real NiDA layout does. Untick the box if you want ordinary spaces while you write.
Saving, copying and exporting
The main editor keeps several documents in your browser, with undo and redo for each word. You can copy the text, download TXT or DOCX, save a PNG image, or print. Nothing is uploaded at any point.
Practice sentence
Type "suosdei! khnhom srolanh phiesa khmer. arkun!" in the main editor. You should get សួស្តី! ខ្ញុំ ស្រឡាញ់ ភាសា ខ្មែរ។ អរគុណ! Notice how the full stop became the khan ។. Then copy the sentence into the spacing helper, press "Spaces → zero-width", and watch the dots appear where the words meet.
Honest limits
The phonetic keys write letters, not sounds, so you still need to know how a word is spelt. The spacing helper converts the spaces you type rather than finding word boundaries by itself, because automatic Khmer word splitting needs a large dictionary. For most everyday writing, though, these three tools together remove the need to install anything.


&c=%23c2410c&k=education)
