Guide
Typing Sanskrit and Hindi with an English keyboard: ITRANS and Harvard-Kyoto to Devanagari
Typing Devanagari with a standard keyboard is awkward unless you set up an input method. ITRANS and Harvard-Kyoto sidestep that: you type ordinary Latin letters in a fixed scheme and the page writes the Devanagari. This is how many Sanskrit mailing lists, mantra collections and older websites stored their texts, and it is still a fast way to enter a few lines.
The idea in one minute
Every Devanagari letter has a Roman spelling in the scheme. Consonants are typed as consonant letters (k, kh, g, gh), vowels as vowel letters, and the page puts the two together: a consonant followed by a vowel becomes the consonant with its vowel sign, a consonant followed by another consonant is joined into a conjunct with a virama, and a vowel standing alone is written as a full vowel letter. Nothing needs to be typed for the inherent a; ka is क.
The keys that surprise beginners
In ITRANS the long vowels are doubled: aa ii uu, though A I U also work. The vocalic ऋ is RRi. The nasals ङ and ञ are ~N and ~n. The retroflex letters use capitals: T Th D Dh N. The sibilants are sh, Sh and s. The sign M is the anusvara, H the visarga, .N the candrabindu, .a the avagraha, . the danda and .. the double danda. Harvard-Kyoto is shorter: A I U, R for ऋ, G and J for the nasals, z and S for the sibilants, M and H, and the bar for the danda. The letter table below the converter updates when you change the scheme.
How conjuncts and endings are decided
The page reads the text left to right and always takes the longest key that matches, so chh is छ and kh is ख. When a consonant is followed by another consonant it adds a virama between them; when a consonant ends the text or is followed by a space or punctuation it also gets a virama. This follows Sanskrit, where a word may end in a bare consonant, and it means you must type the final a of a Hindi word if you want it: hindii gives हिन्दी, while kitab gives a word ending in a virama and kitaaba gives किताब.
A worked example
Press Sample in ITRANS mode and the left box holds saMskRRitam bhaaratasya praachiinaa bhaaShaa asti. shriikRRiShNaH giitaaM akathayat.. The output is संस्कृतम् भारतस्य प्राचीना भाषा अस्ति। श्रीकृष्णः गीतां अकथयत्। The same sentence in Harvard-Kyoto is saMskRtam bhAratasya prAcInA bhASA asti| zrIkRSNaH gItAM akathayat| and produces the identical Devanagari. In ITRANS the full stop after asti is a danda, which is why it turns into ।.
Options and the digits toggle
Choose the scheme with the three buttons above the boxes. The toggle called Write digits 0-9 as Devanagari digits turns sapta 7 into सप्त ७ instead of leaving the 7 as it is. The box persists your text in this browser so a reload does not lose work; clear it with the Clear button when you are done.
Common mistakes
Typing a capital by habit at the start of a sentence changes the letter: Ta is ट, not त. Forgetting the double vowel turns आ into अ. Writing n followed by g gives न्ग, not ङ; use the nasal keys instead. The scheme has no way to type a letter with a nukta, so such letters need a manual edit afterwards.
Limits
Only the common ITRANS letters and the Harvard-Kyoto and IAST tables are built in. ITRANS extras such as embedded-text switches are not read. The result records the Roman spelling you typed, not how a word is said. Nothing you type is sent anywhere.
Related tools
- Devanagari to IAST Transliterator writes Roman letters from Devanagari, the opposite direction.
- Kruti Dev to Unicode Converter recovers old Hindi documents typed in a legacy font.
- Hindi Typing Test trains typing with a Hindi keyboard or the Remington layout.
- Unicode Inspector is the place to check a surprising character in the result.
Checked against the current version of the ITRANS to Devanagari Converter on .

