Nepal’s Complete Administrative Data in JSON: 7 Provinces, 77 Districts, 753 Local Levels
A zero-install, English + Nepali dataset of Nepal’s 7 provinces, 77 districts, 753 municipalities, and 6,743 wards, ready for dropdowns, APIs, and production applications.
If you have ever built an address form, e-commerce checkout, government portal, or location-based application for Nepal, you probably know the routine.
You search GitHub or a Gist for “Nepal districts municipalities JSON”, copy a random file into your project, and 20 minutes later discover problems:
- Some local levels use outdated names.
- Nepali Unicode strings are missing or inconsistent.
- You have to load one large file even when you only need a single province.
- Ward counts may not match the actual administrative structure.
- There is no automated validation to catch spelling or structural errors.
To solve this cleanly, I created and open-sourced nepal-administrative-divisions-json, a lightweight, validated, bilingual English + Nepali JSON dataset covering Nepal’s complete federal administrative hierarchy.
It can be consumed directly over a CDN with zero installation or package setup.
What’s Inside the Dataset
The repository covers Nepal’s complete federal administrative hierarchy:
- 7 Provinces (
प्रदेश) - 77 Districts (
जिल्ला) - 753 Municipalities / Local Levels (
स्थानीय तह) - 6,743 Wards (
वडा)
| Province (EN) | प्रदेश (NP) | Districts | Municipalities | Wards |
|---|---|---|---|---|
| Koshi Province | कोशी प्रदेश | 14 | 137 | 1,157 |
| Madhesh Province | मधेश प्रदेश | 8 | 136 | 1,271 |
| Bagmati Province | बागमती प्रदेश | 13 | 119 | 1,121 |
| Gandaki Province | गण्डकी प्रदेश | 11 | 85 | 759 |
| Lumbini Province | लुम्बिनी प्रदेश | 12 | 109 | 983 |
| Karnali Province | कर्णाली प्रदेश | 10 | 79 | 718 |
| Sudurpaschim Province | सुदूरपश्चिम प्रदेश | 9 | 88 | 734 |
| Total | जम्मा | 77 | 753 | 6,743 |
This makes the dataset useful for applications that need reliable location data without maintaining their own manually copied JSON files.
Designed for Real-World Consumption
Instead of forcing every developer to use one large file, the project maintains a single canonical source:
data/nepal-locations.json
From this source, multiple ready-to-use formats are generated automatically:
data/ ├── nepal-locations.json # Canonical bilingual dataset (~264 KB) ├── nepal-locations.min.json # Minified bilingual dataset (~104 KB) ├── nepal-locations.en.json # English-only (~201 KB) ├── nepal-locations.ne.json # Nepali-only (~222 KB) └── by-province/ # Lazy-loadable province slices (~26–44 KB each) ├── bagmati.json ├── gandaki.json ├── karnali.json ├── koshi.json ├── lumbini.json ├── madhesh.json └── sudurpaschim.json This structure gives developers flexibility depending on their application's requirements.
For example, a small address form may only need one province file, while an application providing a complete nationwide location selector can use the full dataset.
Why name + name_np?
Each province, district, and municipality follows a simple and predictable structure.
{ "name": "Koshi Province", "name_np": "कोशी प्रदेश", "districts": [ { "name": "Bhojpur", "name_np": "भोजपुर", "municipalities": [ { "name": "Shadanand Municipality", "name_np": "षडानन्द नगरपालिका", "wards": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] } ] } ] } Keeping name as the English field and adding name_np alongside it provides several advantages.
1. Backward compatibility
Existing applications that already expect a .name property can continue working without major changes.
2. Simple language switching
A bilingual application can switch between English and Nepali labels without downloading a second dataset.
For example:
const label = language === "ne" ? location.name_np : location.name; 3. Language-specific datasets
If an application only requires one language, developers can directly use:
nepal-locations.en.jsonnepal-locations.ne.json
This avoids unnecessary data when bilingual support is not required.
Use It in Seconds with a CDN
Because the repository consists of static JSON files, there is no npm package or installation process required.
You can fetch the dataset directly using jsDelivr.
JavaScript / TypeScript
For cascading dropdowns or location lookups:
const URL = "https://cdn.jsdelivr.net/gh/anilkumarthakur60/nepal-administrative-divisions-json@main/data/nepal-locations.min.json"; const provinces = await fetch(URL).then((res) => res.json()); // Bilingual lookup const bagmati = provinces.find( (p) => p.name === "Bagmati Province" ); console.log(bagmati.name, "-", bagmati.name_np); // Output: // Bagmati Province - बागमती प्रदेश // List districts const districts = bagmati.districts.map((d) => ({ en: d.name, ne: d.name_np, })); This can easily be connected to a province → district → municipality → ward dropdown.
Lazy-Load a Single Province
You do not always need the complete dataset.
If a user selects Bagmati Province, for example, the application can load only the Bagmati data:
const bagmati = await fetch( "https://cdn.jsdelivr.net/gh/anilkumarthakur60/nepal-administrative-divisions-json@main/data/by-province/bagmati.json" ).then((res) => res.json()); The province-specific files are significantly smaller than the complete dataset, making them useful for applications that want to reduce initial payload size.
Python
The dataset can also be consumed directly from Python:
import json import urllib.request URL = "https://cdn.jsdelivr.net/gh/anilkumarthakur60/nepal-administrative-divisions-json@main/data/nepal-locations.min.json" with urllib.request.urlopen(URL) as resp: provinces = json.load(resp) print(len(provinces)) # 7 The same JSON files can also be consumed by PHP, Laravel, Node.js, Java, Go, or any other technology that can work with JSON over HTTP.
Production tip: Instead of using
@main, pin a release tag such as@v1.0.0once a stable version is published. This keeps your production payload tied to a specific version.
The Hidden Traps in Nepali Unicode Data
Administrative data is not only about having the correct names.
Unicode consistency matters too.
While compiling and cross-checking Nepali names across multiple open datasets, several subtle problems can appear.
1. Broken Devanagari vowel combinations
Some sources may represent Devanagari characters using different Unicode sequences.
For example, a visually identical string may internally contain different character combinations.
This can cause problems with:
- String comparison
- Search
- Sorting
- Duplicate detection
- Exact-match queries
A name that looks correct in the browser may therefore still behave differently in code.
2. Invisible Zero-Width Characters
Unicode characters such as:
-
\u200c— Zero Width Non-Joiner (ZWNJ) -
\u200d— Zero Width Joiner (ZWJ)
can accidentally appear inside strings.
These characters are invisible but can cause an exact string comparison to fail.
For example:
Expected: गाउँपालिका Actual: गाउँपालिका\u200d They may look identical to a user while behaving differently in software.
3. Mismatched Local-Level Suffixes
English and Nepali names should also use consistent administrative terminology.
For example:
| English | Nepali |
|---|---|
| Metropolitan City | महानगरपालिका |
| Sub-Metropolitan City | उपमहानगरपालिका |
| Municipality | नगरपालिका |
| Rural Municipality | गाउँपालिका |
Consistency here is especially important when developers use the dataset for filtering, searching, reporting, or generating official-looking forms.
Validation Is Part of the Dataset
One of the main goals of this project is not simply to provide a JSON file.
It is to provide a JSON file that can be validated and regenerated reliably.
The repository includes automated validation tools.
JSON Schema
The project includes:
schema/nepal-locations.schema.json The schema checks the expected structure and helps ensure that required fields and data types remain consistent.
Python Validator
A zero-dependency validator is included at:
scripts/validate.py It checks important properties such as:
- Province count
- District count
- Municipality count
- Ward count
- Name uniqueness
- Nepali Unicode presence
- Sequential ward numbering
- Local-level suffix consistency
- Generated-file freshness
The expected administrative totals are:
7 provinces 77 districts 753 local levels 6,743 wards GitHub Actions
Validation is also automated through:
.github/workflows/validate.yml The workflow runs during pushes and pull requests so that changes can be checked before they become part of the main dataset.
This is particularly important for public datasets because a small manual edit can otherwise introduce an error that may remain unnoticed for a long time.
Why This Matters for Developers
A location dataset may look like a small utility, but it appears in many types of applications:
- E-commerce checkout forms
- Delivery applications
- Government portals
- School and college management systems
- Hospital systems
- Banking and financial applications
- Address registration forms
- Customer profiles
- Property platforms
- Travel applications
- REST APIs
- Mobile applications
Instead of creating a custom province/district/municipality JSON file for every project, developers can use a shared, structured source.
For example, an e-commerce application could provide:
Province ↓ District ↓ Municipality ↓ Ward The same hierarchy can then be stored with the user's address or passed through an API.
Open Source and Contributions
The project is open source under the MIT License.
If you find a spelling issue, identify an administrative data problem, want another output format, or simply find the dataset useful, contributions and feedback are welcome.
You can explore the repository here:
👉 GitHub: https://github.com/anilkumarthakur60/nepal-administrative-divisions-json
Final Thoughts
Nepal's administrative data is used in countless digital applications, but developers often end up maintaining their own copies of the same information.
The goal of this project is simple:
One structured source.
Two languages.
Multiple consumption formats.
Automated validation.
Zero installation.
By combining bilingual data with schema validation, Unicode checks, generated datasets, province-level files, and CI validation, the project aims to make Nepal's administrative location data easier and safer to use in real-world software.
If you are building an application that needs Nepal's provinces, districts, municipalities, or wards, give the dataset a try.
And if you find an issue, contribute a fix so the next developer does not have to solve the same problem again.
GitHub: https://github.com/anilkumarthakur60/nepal-administrative-divisions-json
Suggested Medium Tags: Nepal · Open Data · JSON · Web Development · Open Source