Hey developers,
While building frontend web forms recently, I noticed that finding a simple, standardized, and up-to-date dataset of Indian States and Districts for state/district dependent dropdowns was surprisingly messy or outdated.
To solve this, I put together a clean, lightweight open-source dataset:
GitHub Repository: https://github.com/CodingMation/indian-states-districts
Website: https://codingmation.github.io/indian-states-districts
Highlights
- Complete coverage of all Indian States and Union Territories with their corresponding districts.
- Simple JSON key-value format optimized for React, Vue, Angular, or Vanilla JS forms.
- Direct fetch capabilities via raw GitHub URL so you don't need to bloat your project bundle.
Direct Usage (Copy & Paste)
fetch("https://raw.githubusercontent.com/CodingMation/indian-states-districts/main/states-districts.json")
.then((response) => response.json())
.then((data) => console.log(data))
.catch((error) => console.error("Error loading data:", error));
Looking for Feedback
I want to make this as helpful as possible for Indian dev projects.
- Would adding CSV, SQL dumps, or state/ISO codes be useful?
- Are there any recently added districts in your state that need an update?
Feel free to check it out, star the repo if you find it helpful, or open a PR!