កខ Khmer Keyboard

Type Khmer the way it sounds — free for Windows, Mac and Android.

  • Works offline
  • Text stays on your device
  • No Khmer keyboard needed
Latin abbreviation13 keys instead of 19

Try Khmer typing online

No install needed — just type in the box below.

Your typing stays in this browser. The demo does not send your text to Somara.

One keyboard, many ways to type

Sounds like

  • khnomខ្ញុំ
  • sousdeyសួស្តី

Abbreviations

  • khmខ្ញុំ
  • kmកម្ពុជា

Consonants only

  • ខញខ្ញុំ
  • កមពកម្ពុជា
Fewer keystrokes

Type a few letters, press Enter, and the full Khmer word is inserted. Shown: ខ្ញុំស្រឡាញ់កម្ពុជា (“I love Cambodia”).

Khmer consonant skeleton7 keys instead of 12

Download the Khmer keyboard

iOS

Coming soon

Direct downloads: v0.3.54Privacy policy

Common questions

What is កខ Keyboard?

A free Khmer keyboard for Windows, macOS and Android. It suggests the right Khmer word as you type, using either Latin letters or Khmer characters.

How can I type Khmer without a Khmer keyboard?

Type the sound in Latin letters, such as khnom, then pick ខ្ញុំ from the suggestions. You can try it in your browser without installing anything.

Does it work offline, and is my typing private?

Yes. Suggestions are worked out on your device, and what you type is not sent to Somara or anyone else.

For developers

Add Khmer input to your web app

$npm install @kkeyboard/react
Request integration access
Code examples and technical details

Use the ready-made React input or connect the headless controller to an editor adapter. Runtime data is cached in the browser and typed text is not sent to a service. កខ Keyboard is free to use but is not open source at this stage. Integration packages and usage terms are available directly from Somara.

khmer-input.tsxTSX
'use client';
import {useState} from 'react';
import {KKeyboardInput} from '@kkeyboard/react';
import '@kkeyboard/react/styles.css';

export function KhmerInput() {
  const [value, setValue] = useState('');
  return (
    <KKeyboardInput
      value={value}
      onChange={(e) => setValue(e.target.value)}
      placeholder="វាយជាខ្មែរ ឬ khnom"
    />
  );
}

@kkeyboard/react

Ready-made input, headless lifecycle hook, and compact candidate popover.

@kkeyboard/tiptap

Maps text offsets to ProseMirror positions and commits with Tiptap transactions.

@kkeyboard/lexical

Commits through Lexical updates and selections; it also supports MDXEditor integrations.

@kkeyboard/core

Matching, ranking, Unicode normalization and input sessions.

@kkeyboard/web

Browser controller, DOM suggestion list and cached runtime loader.

@kkeyboard/data-km

Versioned offline Khmer runtime bundle and context models.

Technical specifications

Execution
Local browser runtime
Query forms
Latin aliases, Khmer Unicode, prefixes, skeletons
Candidate sources
Exact, phonetic, prefix, fuzzy, contextual
Completion
Current word by default; next word is opt-in
Host contract
Range replacement and lifecycle subscription
Adapters
React, Tiptap/ProseMirror, Lexical/MDXEditor

How the engine works

The engine owns query interpretation and ranking. The host adapter owns document positions, selection, editor events, and text replacement. This editor uses the packaged Khmer runtime, the React controller, and the Tiptap adapter. Candidate selection is committed through editor transactions so formatting and undo remain intact.

  1. Query normalization

    Latin text is normalized into phonetic lookup keys. Khmer input is normalized for Unicode order, prefix lookup, and consonant-skeleton matching.

  2. Candidate retrieval

    The engine combines reviewed aliases, generated phonetic keys, exact and prefix indexes, fuzzy matches, and skeleton matches.

  3. Ranking context

    Candidate scores can include frequency and a bounded local context model. Register can be automatic, formal, or casual.

  4. Commit semantics

    Only the active composing range is replaced. Tiptap and Lexical commits use native editor transactions rather than DOM mutation.

  5. Keyboard handling

    Enter, Tab, number keys, or pointer selection commit a candidate. Space can accept the highlighted word (a second Space types a space); Shift+Space keeps the typed text. Escape dismisses suggestions.