How to Convert Preeti Nepali Text to Unicode Safely
Preeti-to-Unicode conversion makes legacy Nepali text usable across modern applications, but documents still need font checks and manual proofreading.

Key takeaways
Preeti represents Nepali through English keyboard characters shaped by a specific font, while Unicode stores Devanagari characters directly.
Keep the original file before converting, then verify fonts, special letter combinations, formatting and mixed-content fields.
DOCX and PDF workflows differ: DOCX can be converted directly, selectable PDFs need comparison, and scanned PDFs require OCR first.
The npttf2utf Python package supports Preeti-style conversion for DOCX and TXT files, but bulk jobs should be tested on a copy first.
Legacy Nepali documents can look corrupted when the Preeti font is unavailable. A string such as “g]kfn” may appear where the reader should see “नेपाल”. The underlying content has not necessarily disappeared: Preeti uses familiar keyboard characters and relies on a font to render them as Nepali glyphs.
Unicode takes a different approach. Nepali characters receive stable code points in the Devanagari range U+0900 to U+097F, allowing text to display as Nepali across phones, browsers and applications that support the script without requiring the old Preeti font.
What conversion changes
A converter replaces each Preeti key sequence with its corresponding Devanagari character. The examples documented by the source include:
- “g]kfn” becomes “नेपाल”
- “gd:t]” becomes “नमस्ते”
- “sf7df08” becomes “काठमाण्डू”
- “;lag cfrf\/o” becomes “सबिन आचार्य”
The safest first step is to preserve the original text. For smaller jobs, users can paste Preeti into the input field and review the Unicode output as it is produced. After conversion, applying a Unicode font such as Kalimati, Mangal or Nirmala UI can resolve display problems in Word.
That font check matters because a visually strange result does not always indicate a failed conversion. The source also warns that choosing the wrong legacy font as the input can map characters incorrectly even when the first result appears plausible.
Working with DOCX and PDF files
For a DOCX file, a converter may accept the document and return a new Word file. Another method is to copy the complete text, convert it, paste it into a fresh document, apply a Unicode font and restore headings, bold formatting and tables.
Neither approach removes the need for review. Compare tables, text boxes, headers, footers, English passages, email addresses, URLs, dates, phone numbers and amounts with the original. Headers and footers are particularly likely to remain unconverted, and table handling varies between tools.
Selectable PDF text can be copied into a converter, but the converted result should be checked against the PDF because copying may introduce errors. A scanned PDF has no selectable text, so it needs OCR before conversion and careful proofreading afterward.
When Preeti is still required
Unicode is the practical format for web publishing and modern applications. Some print shops, newspaper layouts and older design files still expect Preeti, however. To reverse the process, paste Unicode into a Unicode-to-Preeti converter, copy the result into the target Word or design file and set that text to the Preeti font.
Other legacy Nepali fonts, including Kantipur, Sagarmatha, Kanchan and Ganesh, also use English-character mappings. They therefore require their own source mapping rather than an assumption that every old document is Preeti.
Automating larger batches
The open-source Python package npttf2utf can convert Preeti and similar font encodings in DOCX and TXT files. Its documentation describes support for DOCX body paragraphs, tables and shapes, with Kalimati used as the default font for converted text. The documented command is:
pip install npttf2utf
npttf2utf -m docx -if auto -of unicode -i "old-file.docx" -o "old-file-unicode.docx"
Bulk work should begin with a copy of one file. Read that output before processing an entire folder, paying particular attention to the ि matra, the conjuncts क्ष, त्र and द्ध, half letters, mixed English, numbers and punctuation. The source notes that no converter handles every word perfectly, so automated conversion is best treated as the first pass rather than the final editorial check.
Why it matters for your role
Pick the building you work in.

For software engineers
Unicode removes dependence on a legacy display font for Nepali text in web and application workflows. Engineers handling document migration can use npttf2utf for supported DOCX and TXT conversions, while preserving originals for verification.

For QA engineers
Conversion needs content-level checks, not just a visual pass. Test the ि matra, conjuncts, half letters, punctuation and mixed English content, and compare tables, headers, footers and PDF output with the source.

For marketers
Unicode is the appropriate format for web publishing, while legacy print and design workflows may still require Preeti. Teams should confirm the target publishing or production system before changing formats.
Based on reporting by DEV Community (source article).
Written with AI assistance and reviewed under our editorial standards. Spotted an error? Tell the desk.








Comments