Gurmukhi vs Shahmukhi, Unicode vs Legacy Fonts: What Punjabi Typists Need to Know

Why Punjabi text turns into 'pMjwbI' when you paste it, why changing the font doesn't fix it, and how to choose a keyboard and font that work everywhere.

Punjabi has two scripts, and Gurmukhi text on computers exists in two incompatible forms. Mixing them up is behind most "my Punjabi text broke" problems. This guide explains both in plain terms.

Two scripts, one language

Punjabi is written in two scripts:

  • Gurmukhi (ਗੁਰਮੁਖੀ) is used in Indian Punjab and by most of the Indian Punjabi diaspora. It's written left to right and has its own letters: the 35 letters of the traditional ਪੈਂਤੀ plus additional letters with a dot underneath (ਸ਼ ਖ਼ ਗ਼ ਜ਼ ਫ਼ ਲ਼).
  • Shahmukhi (شاہ مکھی) is used in Pakistani Punjab. It's based on the Perso-Arabic script, like Urdu, written right to left and usually set in the Nastaliq style.

Spoken Punjabi on both sides of the border is largely mutually intelligible, though vocabulary differs: Indian Punjabi borrows more from Sanskrit and Hindi, Pakistani Punjabi more from Persian, Arabic and Urdu.

This tool writes Gurmukhi only. The browser's Punjabi speech recognition returns Gurmukhi text, and there's no Shahmukhi option.

Why automatic conversion between them isn't reliable

You'll find websites that convert Gurmukhi to Shahmukhi and back. They're useful for getting the gist, but the output always needs a fluent reader to check it. The main reason is that the scripts don't record the same information:

  • Shahmukhi usually leaves out short vowels. Gurmukhi always writes them (sihari, aunkar). Going from Shahmukhi to Gurmukhi, the converter has to guess which short vowel belongs, and it often guesses wrong.
  • Some sounds have several spellings in Shahmukhi. Arabic-derived letters that sound the same in Punjabi (for example several letters that are all pronounced "z") collapse into one Gurmukhi letter. Going the other way, the converter has to pick one, and the right choice depends on the word's origin.
  • Gurmukhi marks like adhak and tippi don't have exact one-to-one equivalents in everyday Shahmukhi writing.

Gurmukhi to Shahmukhi tends to be more accurate than the reverse, but neither direction is publication-ready without a human check.

Unicode vs legacy fonts: the real cause of broken text

This is the part that confuses people the most, so here's the background.

Before Unicode became universal, Punjabi typists used fonts like AnmolLipi, Asees, DRChatrik, GurbaniAkhar, Joy and Satluj. These are legacy fonts. They work by a trick: you type ordinary English letters, and the font simply draws Gurmukhi shapes in their place. The file still contains English letters underneath.

That's why legacy Punjabi text falls apart the moment it leaves the font:

Seen with a legacy font installed
ਪੰਜਾਬੀ
Same text pasted into WhatsApp
pMjwbI

Unicode fixed this. In Unicode, every Gurmukhi letter and vowel sign has its own code, separate from English. The text is genuinely Punjabi, so it displays correctly in any app with any Gurmukhi-capable font, it can be searched, and Google can index it.

Everything this tool produces is Unicode Gurmukhi. So is everything you type with the Gboard or iPhone Punjabi keyboard, and with the Punjabi keyboards built into Windows and macOS.

"I changed the font and it still looks wrong"

Changing the font doesn't change the underlying characters. If a document was typed in AnmolLipi, selecting it and choosing Raavi just shows you the English letters. You need a legacy-to-Unicode converter: paste the text, choose the original font (it matters, because each legacy font used its own mapping), and copy the Unicode result. Then proofread it, because converters sometimes misplace sihari and half-letters.

The reverse also applies: if a printing press or old software insists on a legacy font, Unicode text has to be converted to that font's encoding first.

How to tell which kind of text you have

  • Paste it into a plain text box (a browser address bar, or a WhatsApp chat to yourself). If it stays Gurmukhi, it's Unicode. If it turns into English letters and symbols, it's legacy.
  • Try searching for one word from it in Google. Unicode text finds Punjabi results; legacy text doesn't.

Why sihari looks misplaced in some programs

Sihari (ਿ) appears before the consonant it belongs to, but it's pronounced after it. In Unicode it's stored after the consonant, in pronunciation order, and the font moves it to the left when drawing. So ਕਿ is stored as ਕ + ਿ.

People who learned on legacy fonts were used to typing sihari first. If they type that way on a Unicode keyboard, the sihari attaches to the wrong letter. And very old programs that don't know how to reorder Gurmukhi will draw the sihari after the consonant, which looks wrong even though the stored text is correct. The fix in that case is a newer program or a different app, not retyping.

If you see boxes instead of letters

Empty boxes (sometimes called "tofu") mean the text is fine but the device has no font that can draw Gurmukhi. Modern phones and computers all include one, so this mostly happens on old devices, in some embedded systems, or in apps that force a specific font. Fixes: update the app or OS, choose a Unicode Gurmukhi font in the app's settings, or install a free one such as Noto Sans Gurmukhi.

Choosing a Gurmukhi font

All of these are Unicode fonts. The first five are loaded from the web in the voice tool, so they look the same on any device and in your PDF downloads.

FontStyleGood for
Noto Sans GurmukhiClean, neutralScreens, everyday documents, small text
Noto Serif GurmukhiTraditional, with contrastPrinted letters, long reading
Mukta MaheeModern, openNotices, presentations
Baloo Paaji 2Rounded, friendlyHeadings, posters, kids' material
Anek GurmukhiContemporary, slightly condensedHeadings, social media graphics
RaaviStandard Windows fontWord documents shared with Windows users

If you send a Word file to someone else, choose a font they're likely to have (Raavi on Windows, or Noto if they've installed it), or send a PDF, which keeps the font exactly as you saw it.

Typing Gurmukhi: which method should you use?

Voice typing is fastest for drafts, but you'll still need a keyboard for corrections. Here are the realistic options.

On a phone

  • Gboard (Android, also on iPhone): add Punjabi (Gurmukhi) under Languages. There's a native Gurmukhi layout, and a transliteration layout where you type punjabi in English letters and pick ਪੰਜਾਬੀ from suggestions. Transliteration is the easiest for most people who already type English.
  • iPhone keyboard: add Punjabi under Settings → General → Keyboard → Keyboards.

On a computer

  • Windows: Settings → Time & language → Language & region → Add a language → Punjabi. Switch with Windows key + Space. The layout puts Gurmukhi letters on the keys; the on-screen keyboard (search "on-screen keyboard") shows you where each letter is while you learn.
  • macOS: System Settings → Keyboard → Input Sources, add Punjabi. macOS offers a Gurmukhi layout and a QWERTY-based one where letters sit roughly on their English sound-alikes.

Which is best?

You want to…Use
Write long drafts quicklyVoice typing, then fix with a keyboard
Send occasional messagesGboard transliteration
Type a lot of Punjabi every dayLearn a native Gurmukhi layout; it's faster in the long run
Edit spellings preciselyNative layout (direct access to adhak, tippi, pair-bindi)

Summary

  • Gurmukhi and Shahmukhi are two scripts for the same language; this tool writes Gurmukhi.
  • Script converters are useful for reading, not for publishing without a check.
  • Legacy fonts store English letters; Unicode stores real Punjabi. Always work in Unicode.
  • Changing the font doesn't convert legacy text; use a converter.
  • Boxes mean a missing font, not broken text.
Try it with your own voice

Free, in your browser, no sign-up. Speak Punjabi and get editable Gurmukhi text.

Open the voice tool