The Origins of Balinese Script and the Aji Saka Legend Behind Hanacaraka
Two Ways to Answer "Where Does Balinese Script Come From?"
The question has two equally true answers. The first is historical: a long chain of script descent from India into the archipelago. The second is traditional: a legend about a king and two servants, which explains why the letter order reads ha-na-ca-ra-ka.
Both are worth knowing, and they explain different things.
The Historical Answer: A Journey from Brahmi
Balinese belongs to the Brahmic family — the group behind nearly every writing system in South and Southeast Asia. The journey was gradual:
| Stage | Approximate period | Note |
|---|---|---|
| Brahmi | 3rd century BCE | the parent script in India |
| Pallava | 4th–8th century CE | carried along trade routes into the archipelago |
| Kawi | 8th–15th century CE | developed in Java, used for Old Javanese and Sanskrit |
| Balinese | from around the 11th century CE | a Kawi descendant that developed and survived in Bali |
Coming from the Indic writing tradition, Balinese inherited its structure: an abugida with an inherent /a/ vowel, attached vowel signs, and consonants ordered by place of articulation. The details are in the complete script chart.
That inheritance shows in vocabulary too: thousands of Balinese words come from Sanskrit, some written with dedicated letters — see Balinese script and Sanskrit.
The Traditional Answer: The Aji Saka Legend
The legend is told in both Java and Bali, in several versions. The outline is the same.
A figure named Aji Saka had two equally loyal servants. Before travelling, he entrusted his heirloom weapon to one of them with an instruction: give it to no one but me.
Time passed. Aji Saka sent the other servant to fetch the heirloom. The guarding servant refused to hand it over — he held to the instruction he had been given. The sent servant refused to return empty-handed — he held to the order he had been given.
Both were loyal. Both were formidable. They fought, and both died.
Aji Saka found his two servants dead because each had followed his command. To remember them, he composed a sequence of letters telling what had happened — and that sequence is the hanacaraka order.
In the Balinese version the two servants are called I Yana and I Yalip; in the Javanese version, Dora and Sembada.
Reading the Hanacaraka Order as a Sentence
The letter order is read as a connected sentence, commonly glossed like this:
| Line | Commonly told meaning |
|---|---|
| ha na ca ra ka | there were two servants |
| da ta sa wa la | they fell into conflict |
| ma ga ba nga pa | both were equally formidable |
| ja ya nya | both of them died |
The Javanese version runs to twenty letters, while the Balinese version usually taught has eighteen — a difference that also shows in their base letter counts. The comparison is in Balinese, Javanese, and Latin scripts compared.
Because it was carried orally, the legend's details vary between regions and tellers. What stays constant is the point: the letters were born as a memorial to loyalty.
Why the Legend Survives
The Aji Saka story does something a script genealogy cannot: it turns a memorised sequence into a narrative. Children learning hanacaraka are not memorising twenty arbitrary sounds — they are remembering a story.
That is why the hanacaraka order has lasted for centuries, and why it is still the teaching order in Balinese schools today. There is a memorisation guide in the hanacaraka article.
From Lontar to Unicode
For centuries Balinese was written with a stylus on palm leaf — incised, then rubbed with soot so the letters could be read. Those manuscripts hold literature, customary law, medicine, and calendar reckoning; see the lontar article.
The most recent chapter came in 2006, when Balinese entered the Unicode Standard at block U+1B00–U+1B7F. Since then a script once incised on leaves can be typed, copied, searched, and indexed like ordinary text — including through the Balinese script converter on this site.
The road from Brahmi to lontar to keyboard took more than two thousand years. Its final stretch began only two decades ago.
This article was drafted with AI assistance and is reviewed over time. Check Balinese wording with a teacher or native speaker before using it for anything official, printed, or ceremonial.



